forked from ciecierski/osp-heat-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathundercloud-config-13.yaml
More file actions
93 lines (82 loc) · 2.98 KB
/
undercloud-config-13.yaml
File metadata and controls
93 lines (82 loc) · 2.98 KB
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
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-13.conf}
- path: /home/stack/overcloud-environment.yaml
permissions: '0644'
content: {get_file: deploy-templates/overcloud-environment-13.yaml}
- path: /home/stack/01-undercloud-install.sh
permissions: '0755'
content: {get_file: deploy-scripts/01-undercloud-install.sh}
- path: /home/stack/05-overcloud-deploy.sh
permissions: '0755'
content: {get_file: deploy-scripts/05-overcloud-deploy-13.sh}
- path: /home/stack/overcloud-images.yaml
permissions: '0644'
content: {get_param: [ContainerImagePrepareFiles, {get_param: EnvironmentName}]}
- path: /home/stack/deploy.sh
permissions: '0755'
content: {get_file: deploy-scripts/deploy-13.sh}
- path: /home/stack/deployed-server-port-map.yaml
permissions: '0644'
content:
str_replace:
template: "value"
params:
value: {get_param: DeployedServerPortMap}
- path: /home/stack/hostname-map.yaml
permissions: '0644'
content:
str_replace:
template: "value"
params:
value: {get_param: HostnameMap}
- 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}