Remove external package, service, class references from manifests
Bug #1489897 reported by
Bogdan Dobrelya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-neutron |
Opinion
|
Undecided
|
Unassigned |
Bug Description
When deploying classes foo (init.pp) and foo::bar (bar.pp) from PO modules in separate puppet runs, there should be no external packages, services, classes references, like Service[foo], Package[foo] for some class foo::bar. At least for packages and services, this issue may be resolved
with <||> collectors instead.
Not sure how to resolve this for Class[foo] references from a class foo::bar
Changed in puppet-openstack: | |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
Changed in puppet-neutron: | |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
no longer affects: | puppet-openstack |
Changed in puppet-neutron: | |
status: | In Progress → Opinion |
assignee: | Bogdan Dobrelya (bogdando) → nobody |
To post a comment you must log in.
To be more clear, here is example: server' :}, class {'neutron: :plugins: :ml2':} class { 'neutron: :agents: :ml2::ovs' :}
If user wants to deploy by separate puppet runs the following classes:
class {'neutron':}, class {'neutron-
she will have to 'unbind' external Class['Neutron'] reference with very ugly hack like this: ovs-agent- service' |> { plugin_ ml2<||> ~> Service[ 'neutron- ovs-agent- service' ] etc/neutron/ plugins/ openvswitch/ ovs_neutron_ plugin. ini'] ~> ovs-agent- service' |>
# Remove external class dependency and restore required ones
Service <| title == 'neutron-
require => undef
}
Neutron_
File['/
Service<| title == 'neutron-