
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.
16 lines
418 B
YAML
16 lines
418 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'
|
|
/opt/system-config/production/manifests/site.pp
|
|
tags: puppet_apply
|
|
|
|
- service: name=puppet enabled=yes state=started
|