system-config/playbooks/update_puppet_version.yaml
Andreas Jaeger 173118e471 Fix URLs after OpenDev rename
As part of OpenDev rename, a lot of links were changed.
A couple of URLs point to old locations, update them.

This list was done while grepping for "openstack-infra" and fixing
locations that are wrong.

Change-Id: I313d76284bb549f1b2c636ce17fa662c233c0af9
2020-03-18 18:23:17 +01:00

21 lines
749 B
YAML

- hosts: 'puppet4'
name: "Puppet-version: install puppet-4 on puppet-4 hosts"
gather_facts: false
tasks:
- name: "Check if puppet 4 is already installed"
stat:
path: /opt/puppetlabs/puppet/bin/puppet
register: puppet4_bin_path
- name: "Get puppet installation script"
get_url:
url: https://opendev.org/opendev/system-config/raw/branch/master/install_puppet.sh
dest: /tmp/install_puppet.sh
mode: 0755
checksum: sha256:741b8cfdc039e817bd598511dd7203da16701f213775e639994e8bb278a68239
when: not puppet4_bin_path.stat.exists
- name: "Install puppet 4 if not already installed"
shell: /tmp/install_puppet.sh
environment:
PUPPET_VERSION: 4
when: not puppet4_bin_path.stat.exists