Copy all_nodes.json instead of rendering template
Rendering all_nodes.json on each node is proving to be a performance bottleneck. Given that it is the same data on each node and it has already been rendered as group_vars/overcloud.json on the control node (undercloud), it can just be copied to each node. Change-Id: Ic10858ce7eaa5353d546e75b26e7149df2e1aa2a
This commit is contained in:
parent
5c06ffdcd5
commit
f0cbd236a4
|
@ -0,0 +1 @@
|
|||
{}
|
|
@ -14,8 +14,13 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
- name: Copy overcloud.json to all_nodes.json
|
||||
copy:
|
||||
src: "{{ playbook_dir }}/group_vars/overcloud.json"
|
||||
dest: "{{ dest_path | default('/etc/puppet/hieradata/all_nodes.json') }}"
|
||||
|
||||
- name: Render hieradata from template
|
||||
template:
|
||||
src: templates/{{ item }}.j2
|
||||
dest: "{{ dest_path | default('/etc/puppet/hieradata/' ~ item ~ '.json') }}"
|
||||
loop: "{{ hieradata_templates_list }}"
|
||||
loop: "{{ hieradata_templates_list | difference(['all_nodes']) }}"
|
||||
|
|
Loading…
Reference in New Issue