infra-ansible/roles/bootstrap_puppetmaster/tasks/configure_puppetmaster.yml
Ricardo Carrillo Cruz 8511a4bc57 Trigger puppet agent after puppetmaster bootstrap
This is to apply config from site.pp, that is not fed on
initial puppet apply bootstrap
2015-04-18 22:46:33 +02:00

22 lines
611 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
# Trigger a puppet agent --test to apply config from repo
- command: puppet agent --test
ignore_errors: True