Skip to content

Commit d6bc9ed

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 e45ae59 commit d6bc9ed

File tree

32 files changed

+238
-28
lines changed

32 files changed

+238
-28
lines changed

doc/source/operations/upgrading-openstack.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,22 @@ For example:
165165
- "pulp:http_2xx:{{ pulp_url }}/pulp/api/v3/status/"
166166
enabled: "{{ seed_pulp_container_enabled | bool }}"
167167
168+
Ansible playbook subdirectories
169+
--------------------------------------
170+
171+
The playbooks under ``etc/kayobe/ansible`` have been subdivided into different
172+
categories to make them easier to navigate. This change may result in merge
173+
conflicts where playbooks have been edited downstream, and broken hooks where
174+
symlinks have been used.
175+
176+
To mitigate the impact of these changes, two scripts have been added:
177+
178+
* ``tools/get-new-playbook-path.sh`` - Returns the new category of a given
179+
playbook. For example ``tools/get-new-playbook-path.sh
180+
deploy-os-capacity-exporter.yml`` returns ``deployment/``
181+
* ``tools/magic-symlink-fix.sh`` - Uses the previous script to attempt to fix
182+
any broken symlinks in the kayobe configuration.
183+
168184
Known issues
169185
============
170186

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)