Remove hardcoded hostvars reference from configure_puppemaster role
Instead of referencing hostvars, just set it as a var and pass the needed value outside of the role
This commit is contained in:
parent
fc93fc4464
commit
8ec2095533
@ -9,4 +9,4 @@
|
||||
# Puppet apply the puppetmaster manifest
|
||||
- command: >
|
||||
puppet apply --modulepath='/opt/git/system-config/modules:/etc/puppet/modules'
|
||||
-e 'class {"openstack_project::puppetmaster"':' puppetdb_server => "{{ hostvars[groups['puppetdb'][0]]['openstack']['name'] }}" }'
|
||||
-e 'class {"openstack_project::puppetmaster"':' puppetdb_server => "{{ puppetdb_server }}" }'
|
||||
|
Loading…
x
Reference in New Issue
Block a user