-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloud-init.yaml
48 lines (41 loc) · 1.41 KB
/
cloud-init.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
heat_template_version: 2021-04-16
parameters:
logstash_host:
type: string
api_branch:
type: string
wc_notify:
type: string
environment:
type: string
resources:
cloud_config:
type: OS::Heat::CloudConfig
properties:
cloud_config:
write_files:
- path: /tmp/nginx.conf
content: { get_file: nginx.conf }
- path: /tmp/filebeat.yml
content:
str_replace:
template: { get_file: filebeat.yml }
params:
$logstash_host: { get_param: logstash_host }
$environment: { get_param: environment }
- path: /tmp/get-austraits-data.sh
content: { get_file: get-austraits-data.sh }
permissions: "0740"
- path: /tmp/userdata.sh
permissions: "0740"
content:
str_replace:
template: { get_file: userdata.sh }
params:
$api_branch: { get_param: api_branch }
$wc_notify: { get_param: wc_notify }
runcmd:
- /tmp/userdata.sh
outputs:
cloud_config:
value: { get_resource: cloud_config }