Run puppet apply against site.pp

No point on constructing a -e argument for puppet apply, since
site.pp is already generated and present on puppetmaster
we can simply use it as an argument for puppet apply.
Removed also puppet agent --test, since the puppet apply runs
the same config.
This commit is contained in:
Ricardo Carrillo Cruz 2015-04-29 22:00:22 +02:00
parent 0ad9920df1
commit 1b2aeebdbf
1 changed files with 1 additions and 7 deletions

View File

@ -9,13 +9,7 @@
# Puppet apply the puppetmaster manifest
- command: >
puppet apply --modulepath='/opt/system-config/production/modules:/etc/puppet/modules'
-e 'class {"openstack_project::puppetmaster"':'
puppetmaster_server => "{{ inventory_hostname }}",
puppetdb => false }'
/opt/system-config/production/manifests/site.pp
tags: puppet_apply
- service: name=puppet enabled=yes state=started
# Trigger a puppet agent --test to apply config from repo
- command: puppet agent --test
ignore_errors: True