
This adds firmware definition into the hostgenerator-m3 function, along with a default hardwareProfile/firmware definition; it also adds a hardwareprofile-example function that can be used as an example for creating and consuming hardwareProfiles. In the future, other things will be added to hardwareProfiles in addition to firmware, for consumption by hostgenerator-m3 and/or by other functions. Closes: #291 Change-Id: I586284f07e5b98353af06ecb7559a64771297e44
20 lines
660 B
YAML
20 lines
660 B
YAML
# These rules inject host-specific information from the `host-catalogue`
|
|
# into the hostgenerator-m3 function's Template plugin config.
|
|
apiVersion: airshipit.org/v1alpha1
|
|
kind: ReplacementTransformer
|
|
metadata:
|
|
# NOTE: change this when copying this example
|
|
name: hardwareprofile-example-replacements
|
|
replacements:
|
|
- source:
|
|
objref:
|
|
# NOTE: change this to match your hardwareProfile's metadata.name
|
|
name: hardwareprofile-example
|
|
fieldref: hardwareProfile
|
|
target:
|
|
objref:
|
|
kind: Templater
|
|
name: m3-host-template
|
|
# NOTE: change "example" below when copying this example
|
|
fieldrefs: [values.hardwareProfiles.example]
|