Ian Wienand ee7faefe08 Create ansible roles to install puppet
Currently our puppet-requiring hosts (all !bridge) do not manage their
puppet installs.  This is OK for existing servers, but new servers
come up without puppet installed.

This is playbooks to manage puppet installs on hosts.  It is mostly a
port of the relevant parts of ./install_puppet.sh for our various
control-plane platforms.

Basic testing with zuul-integration jobs is added.  Using this in the
control-plane base.yaml playbooks will be a follow-on.

Change-Id: Id5b2f5eb0f1ade198acf53a7c886dd5b3ab79816
2018-08-28 16:42:45 +10:00

27 lines
635 B
YAML

# Prior versions not supported on Bionic
- fail:
msg: "Unsupported puppet version '{{ puppet_install_version }}' on this platform"
when: puppet_install_version not in [5,]
- name: Install puppet 5 packages
when: puppet_install_version == 5
become: true
block:
- name: Install puppetlabs repo
apt:
deb: https://apt.puppetlabs.com/puppet5-release-bionic.deb
- name: Install puppet packages
apt:
name:
- puppet-agent
- ruby
update_cache: yes
- name: Stop and disable puppet service
service:
name: puppet
state: stopped
enabled: no
become: yes