infra-ansible/roles/bootstrap_puppetmaster/tasks/configure_puppetmaster.yml
Ricardo Carrillo Cruz 6ec7d2c6d4 Set puppet service enabled on boot and remove puppet agent --test
I noticed that running puppet agent --test on puppetmaster during
bootstrap failures pop up about getting puppet related locks,
probably a race condition.
Better run puppet agent on puppetmaster at the end of plays.
2015-04-14 09:32:42 +02:00

18 lines
499 B
YAML

---
# Install puppetmaster packages
- apt: name={{ item }} state=installed
with_items:
- puppetmaster-passenger
- hiera
- hiera-puppet
# 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 }'
tags: puppet_apply
- service: name=puppet enabled=yes state=started