I think what you're asking for though is for just including -e environments/net-single-nic-with-vlans.yaml to apply that config to all roles automatically?
That is probably possible, but for now copying the file and passing the resource_registry as described above should work fine.
So I think this is possibly a duplicate of https:/ /bugs.launchpad .net/tripleo/ +bug/1625558 ?
Basically in environments/ net-single- nic-with- vlans.yaml you have this:
resource_registry: :BlockStorage: :Net::SoftwareC onfig: ../network/ config/ single- nic-vlans/ cinder- storage. yaml :Compute: :Net::SoftwareC onfig: ../network/ config/ single- nic-vlans/ compute. yaml :Controller: :Net::SoftwareC onfig: ../network/ config/ single- nic-vlans/ controller. yaml :ObjectStorage: :Net::SoftwareC onfig: ../network/ config/ single- nic-vlans/ swift-storage. yaml :CephStorage: :Net::SoftwareC onfig: ../network/ config/ single- nic-vlans/ ceph-storage. yaml
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
OS::TripleO:
So when defining a custom role you'll need to pass an environment which references the configuration you want for that role:
resource_registry: :TheCustomRole: :Net::SoftwareC onfig: path/to/ the/config. yaml
OS::TripleO:
The config can be copied from whatever is in use for the other roles (all the templates are basically the same for each role in the tht examples).
If you don't pass any extra environment file, the role will simply get the default noop config:
https:/ /github. com/openstack/ tripleo- heat-templates/ blob/master/ overcloud- resource- registry- puppet. j2.yaml# L35
I think what you're asking for though is for just including -e environments/ net-single- nic-with- vlans.yaml to apply that config to all roles automatically?
That is probably possible, but for now copying the file and passing the resource_registry as described above should work fine.