forked from ukayani/cloud-init-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleUserData
55 lines (42 loc) · 1.31 KB
/
SampleUserData
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
From nobody Fri Dec 9 00:31:04 2016
Content-Type: multipart/mixed; boundary="===============2678395050260980330=="
MIME-Version: 1.0
--===============2678395050260980330==
MIME-Version: 1.0
Content-Type: text/x-shellscript; charset="us-ascii"
#!/bin/bash
echo "Part 3" >> /var/log/order.log
--===============2678395050260980330==
MIME-Version: 1.0
Content-Type: text/cloud-boothook; charset="us-ascii"
#cloud-boothook
echo "Part 4" >> /var/log/order.log
--===============2678395050260980330==
MIME-Version: 1.0
Content-Type: text/cloud-config; charset="us-ascii"
#cloud-config
runcmd:
- echo "Part 5 runcmd" >> /var/log/order.log
bootcmd:
- echo "Part 5 bootcmd" >> /var/log/order.log
--===============2678395050260980330==
MIME-Version: 1.0
Content-Type: text/upstart-job; charset="us-ascii"
#upstart-job
description "Sample upstart job"
author "Test"
start on stopped rc RUNLEVEL=[345]
script
echo "Part 6" >> /var/log/order.log
end script
--===============2678395050260980330==
MIME-Version: 1.0
Content-Type: text/upstart-job; charset="us-ascii"
#upstart-job
description "Sample upstart job which triggers at same time as rc scripts (This won't execute on first boot)"
author "Test"
start on starting rc RUNLEVEL=[345]
script
echo "Part 7" >> /var/log/order.log
end script
--===============2678395050260980330==--