mirror of
https://github.com/krislamo/pup-tests
synced 2024-11-13 02:00:34 +00:00
Kris Lamoureux
03bacd745b
Development moved to VirtualBox due to work's custom vagrant box only supporting the VirtualBox provider. Development may eventually end up back on libvirt. Version numbers were updated, some broken code was removed and more instructions were added on the readme.
19 lines
386 B
YAML
19 lines
386 B
YAML
- name: Install Puppet Agent
|
|
apt: name=puppet state=present
|
|
register: agent_install
|
|
|
|
- name: Deploy puppet.conf
|
|
template:
|
|
src: puppet.conf.j2
|
|
dest: /etc/puppet/puppet.conf
|
|
|
|
- name: Start Puppet
|
|
service: name=puppet state=started
|
|
|
|
- name: Request Puppet Master
|
|
command: puppet agent -t
|
|
register: send_csr
|
|
failed_when: send_csr.rc > 1
|
|
when: agent_install.changed
|
|
|