Skip to content

Commit b35ff26

Browse files
authored
Merge pull request #48 from stackhpc/custom-kayobe-config
Support customising Kayobe configuration
2 parents 6534c08 + 395b68e commit b35ff26

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

ansible/deploy-openstack-config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@
120120
line: "vxlan_vni: {{ vxlan_vni }}"
121121
mode: "0644"
122122

123+
- name: Ensure custom Kayobe configuration is applied
124+
ansible.builtin.blockinfile:
125+
path: "{{ src_directory }}/{{ kayobe_config_name }}/etc/kayobe/environments/{{ kayobe_config_environment }}/{{ item.path }}"
126+
block: "{{ item.block }}"
127+
mode: "0644"
128+
create: true
129+
loop: "{{ kayobe_config_custom }}"
130+
123131
- name: Ensure Kayobe repository is present
124132
ansible.builtin.git:
125133
repo: "{{ kayobe_repo }}"

ansible/vars/defaults.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ kayobe_config_version: stackhpc/yoga
66
kayobe_config_name: kayobe-config
77
kayobe_config_environment: ci-multinode
88

9+
# Custom Kayobe configuration.
10+
# Can be used to modify a vanilla configuration to avoid creating a branch.
11+
# Paths are relative to ci-multinode environment.
12+
# Blocks are applied using the ansible.builtin.blockinfile module.
13+
# Example:
14+
# kayobe_config_custom:
15+
# - path: time.yml
16+
# block: |
17+
# timezone: Europe/London
18+
kayobe_config_custom: []
19+
920
kayobe_repo: https://github.com/stackhpc/kayobe.git
1021
kayobe_version: stackhpc/yoga
1122
kayobe_name: kayobe

0 commit comments

Comments
 (0)