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:
parent
19ea4603f4
commit
b3c01b30b3
@ -119,21 +119,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: 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
|
- name: Copy yamlgroup inventory in place
|
||||||
copy:
|
copy:
|
||||||
src: inventory_plugins/yamlgroup.py
|
src: inventory_plugins/yamlgroup.py
|
||||||
|
@ -4,6 +4,19 @@
|
|||||||
ansible_roles:
|
ansible_roles:
|
||||||
- puppet
|
- 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
|
- name: Run puppet module install on bridge
|
||||||
command:
|
command:
|
||||||
cmd: bash install_modules.sh
|
cmd: bash install_modules.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user