mirror of
https://github.com/krislamo/pup-tests
synced 2025-01-09 18:00:36 +00:00
33 lines
746 B
YAML
33 lines
746 B
YAML
- name: Install Puppet Master
|
|
apt: name=puppetmaster state=present
|
|
register: pup_install
|
|
|
|
- name: Install NTP
|
|
apt: name=ntp state=present
|
|
register: ntp_status
|
|
|
|
- name: Restart NTP
|
|
service: name=ntp state=restarted
|
|
when: ntp_status.changed
|
|
|
|
- name: Install R10K
|
|
apt: name=r10k state=present
|
|
register: r10k_install
|
|
|
|
- name: Install Puppet Modules
|
|
shell:
|
|
cmd: r10k puppetfile install
|
|
chdir: /etc/puppet/code/environments/production
|
|
when: r10k_install.changed
|
|
|
|
- name: Wait for Webserver Key
|
|
wait_for:
|
|
path: /var/lib/puppet/ssl/ca/requests/webserver.pem
|
|
when: pup_install.changed
|
|
|
|
- name: Sign Webserver Key
|
|
command: puppet cert sign webserver
|
|
args:
|
|
removes: /var/lib/puppet/ssl/ca/requests/webserver.pem
|
|
|