Skip to content

Commit a1e3fc9

Browse files
committed
Add scripts for fixing Ansible playbook paths
Ansible playbooks have been moved to sub-directories. This has the potential to break a lot of symlink hooks. To make the transition easier, this change includes a magic script which will fix symlink paths. Also added docs and fixed existing symlink paths
1 parent 32727b4 commit a1e3fc9

File tree

32 files changed

+228
-28
lines changed

32 files changed

+228
-28
lines changed

doc/source/operations/upgrading-openstack.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,22 @@ For example:
183183
- "pulp:http_2xx:{{ pulp_url }}/pulp/api/v3/status/"
184184
enabled: "{{ seed_pulp_container_enabled | bool }}"
185185
186+
Ansible playbook subdirectories
187+
--------------------------------------
188+
189+
The playbooks under ``etc/kayobe/ansible`` have been subdivided into different
190+
categories to make them easier to navigate. This change may result in merge
191+
conflicts where playbooks have been edited downstream, and broken hooks where
192+
symlinks have been used.
193+
194+
To mitigate the impact of these changes, two scripts have been added:
195+
196+
* ``tools/get-new-playbook-path.sh`` - Returns the new category of a given
197+
playbook. For example ``tools/get-new-playbook-path.sh
198+
deploy-os-capacity-exporter.yml`` returns ``deployment/``
199+
* ``tools/magic-symlink-fix.sh`` - Uses the previous script to attempt to fix
200+
any broken symlinks in the kayobe configuration.
201+
186202
Known issues
187203
============
188204

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../../../ansible/fix-hostname.yml
1+
../../../../../ansible/fixes/fix-hostname.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kayobe-version.yml
1+
../../../ansible/tools/check-kayobe-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kayobe-version.yml
1+
../../../ansible/tools/check-kayobe-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kayobe-version.yml
1+
../../../ansible/tools/check-kayobe-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kolla-ansible-version.yml
1+
../../../ansible/tools/check-kolla-ansible-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kayobe-version.yml
1+
../../../ansible/tools/check-kayobe-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kolla-ansible-version.yml
1+
../../../ansible/tools/check-kolla-ansible-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kayobe-version.yml
1+
../../../ansible/tools/check-kayobe-version.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../ansible/check-kolla-ansible-version.yml
1+
../../../ansible/tools/check-kolla-ansible-version.yml

0 commit comments

Comments
 (0)