-
Notifications
You must be signed in to change notification settings - Fork 4
/
undercloud-config.yaml
119 lines (108 loc) · 4.5 KB
/
undercloud-config.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
heat_template_version: 'rocky'
parameters:
EnvironmentName:
type: string
default: osp17
PrivateKeyContents:
type: string
description: |
SSH private key absolute file path used to connect to the created
servers. The private key is needed so that the undercloud can SSH to the
overcloud nodes. Do not use a key that should be otherwise protected.
PublicKeyContents:
type: string
description: |
SSH public key contents used to connect to the created servers.
BaremetalDeployInput:
type: json
default: {}
DeployedServerPortMap:
type: json
default: {}
HostnameMap:
type: json
default: {}
ContainerImagePrepareFiles:
type: json
default: {}
resources:
UndercloudConfig:
type: OS::Heat::CloudConfig
properties:
cloud_config:
write_files:
# We can't use owner:stack here b/c write_files runs before users
# See https://bugs.launchpad.net/cloud-init/+bug/1486113
- path: /home/stack/undercloud.conf
permissions: '0644'
content: {get_file: deploy-templates/undercloud.conf}
- path: /home/stack/undercloud-environment.yaml
permissions: '0644'
content: {get_file: deploy-templates/undercloud-environment.yaml}
- path: /home/stack/container-image-prepare.yaml
permissions: '0644'
content: {get_param: [ContainerImagePrepareFiles, {get_param: EnvironmentName}]}
- path: /home/stack/vip-data-default.yaml
permissions: '0644'
content: {get_file: deploy-templates/vip-data-default.yaml}
- path: /home/stack/overcloud-environment.yaml
permissions: '0644'
content: {get_file: deploy-templates/overcloud-environment.yaml}
- path: /home/stack/network-config-update.yaml
permissions: '0644'
content: {get_file: deploy-templates/network-config-update.yaml}
- path: /home/stack/net_config_static_bridge.j2
permissions: '0644'
content: {get_file: deploy-templates/net_config_static_bridge.j2}
- path: /home/stack/net_config_multiple_nics.j2
permissions: '0644'
content: {get_file: deploy-templates/net_config_multiple_nics.j2}
- path: /home/stack/vip-data-network-isolation.yaml
permissions: '0644'
content: {get_file: deploy-templates/vip-data-network-isolation.yaml}
- path: /home/stack/default-network-isolation.yaml
permissions: '0644'
content: {get_file: deploy-templates/default-network-isolation.yaml}
- path: /home/stack/01-undercloud-install.sh
permissions: '0755'
content: {get_file: deploy-scripts/01-undercloud-install.sh}
- path: /home/stack/02-network-provision.sh
permissions: '0755'
content: {get_file: deploy-scripts/02-network-provision.sh}
- path: /home/stack/03-vip-provision.sh
permissions: '0755'
content: {get_file: deploy-scripts/03-vip-provision.sh}
- path: /home/stack/04-node-provision.sh
permissions: '0755'
content: {get_file: deploy-scripts/04-node-provision.sh}
- path: /home/stack/05-overcloud-deploy.sh
permissions: '0755'
content: {get_file: deploy-scripts/05-overcloud-deploy.sh}
- path: /home/stack/06-external-compute.sh
permissions: '0755'
content: {get_file: deploy-scripts/06-external-compute.sh}
- path: /home/stack/deploy.sh
permissions: '0755'
content: {get_file: deploy-scripts/deploy.sh}
- path: /home/stack/overcloud-baremetal-deploy.yaml
permissions: '0644'
content:
str_replace:
template: "value"
params:
value: {get_param: BaremetalDeployInput}
- path: /home/stack/.ssh/id_rsa
permissions: '0600'
content: {get_param: PrivateKeyContents}
- path: /home/stack/.ssh/id_rsa.pub
permissions: '0600'
content: {get_param: PublicKeyContents}
- path: /home/stack/.tmux.conf
permissions: '0644'
content: {get_file: deploy-files/tmux.conf}
- path: /root/cloud-init-timedatectl.avc
permissions: '0644'
content: {get_file: deploy-files/cloud-init-timedatectl.avc}
outputs:
OS::stack_id:
value: {get_resource: UndercloudConfig}