install-ansible: move install_modules.sh to puppet-setup-ansible

Modules are collected on bridge and then synchronized to remote hosts
where puppet is run.  This is done to ensure an atomic run of puppet
across affected hosts.

These modules are described in modules.env and cloned by
install_modules.sh.  Currently this is done in install-ansible, but
after some recent refactoring
(I3b1cea5a25974f56ea9202e252af7b8420f4adc9) the best home for it
appears to now be in puppet-setup-ansible; just before the script is
run.

Change-Id: I4b1d709d7037e2851d73be4bc7a202f52858ad4f
This commit is contained in:
Ian Wienand 2020-09-03 09:28:16 +10:00
parent 19ea4603f4
commit b3c01b30b3
4 changed files with 13 additions and 15 deletions

View File

@ -119,21 +119,6 @@
owner: root
group: root
# Yeah. This is install-ansible. But we need to do this and doing it when
# we install the ansible stuff seems like the right time workflow-wise.
- name: Ensure puppet directory
file:
state: directory
path: /etc/puppet
- name: Install puppet module management scripts
copy:
src: '{{ item }}'
dest: '/etc/puppet/{{ item }}'
loop:
- install_modules.sh
- modules.env
- name: Copy yamlgroup inventory in place
copy:
src: inventory_plugins/yamlgroup.py

View File

@ -4,6 +4,19 @@
ansible_roles:
- puppet
- name: Ensure puppet directory
file:
state: directory
path: /etc/puppet
- name: Install puppet module management scripts
copy:
src: '{{ item }}'
dest: '/etc/puppet/{{ item }}'
loop:
- install_modules.sh
- modules.env
- name: Run puppet module install on bridge
command:
cmd: bash install_modules.sh