-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_configurations.yml
52 lines (47 loc) · 1.13 KB
/
make_configurations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- name: generate ironic json file
hosts: all
gather_facts: false
tasks:
- name: generate json file
template:
src: ironic_hosts.j2
dest: ironic_hosts.json
mode: '0644'
delegate_to: localhost
run_once: True
- name: generate ironic json file
hosts: all
gather_facts: false
tasks:
- name: generate json file
template:
src: config_user.j2
dest: config_$KNIUSER.sh
mode: '0755'
delegate_to: localhost
run_once: True
- name: generate install-config.yaml file
hosts: all
gather_facts: false
tasks:
- name: generate yaml file
template:
src: install-config.j2
dest: install-config.yaml
mode: '0644'
delegate_to: localhost
run_once: True
- name: generate host patch json
hosts: masters
gather_facts: false
tasks:
- name: pull in hw profile
set_fact:
hardware_json: "{{ lookup('file', '{{ inventory_hostname }}.hwprofile.json') | from_json }}"
- name: make_host_patch_json with jinga2
template:
src: host_patch.j2
dest: host_patch.{{ inventory_hostname }}.json
mode: '0755'
delegate_to: localhost