File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
Original file line number Diff line number Diff line change @@ -6,6 +6,17 @@ kayobe_config_version: stackhpc/yoga
66kayobe_config_name : kayobe-config
77kayobe_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+
920kayobe_repo : https://github.com/stackhpc/kayobe.git
1021kayobe_version : stackhpc/yoga
1122kayobe_name : kayobe
You can’t perform that action at this time.
0 commit comments