-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuserdata.tpl
33 lines (27 loc) · 887 Bytes
/
userdata.tpl
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
#cloud-config
packages:
- ntp
- ntpdate
# Override ntp with chrony configuration on Ubuntu
ntp:
enabled: true
ntp_client: chrony # Uses cloud-init default chrony configuration
# Add yum repository configuration to the system
#yum_repos:
# # The name of the repository
# epel-testing:
# # Any repository configuration options
# # See: man yum.conf
# #
# # This one is required!
# baseurl: http://download.fedoraproject.org/pub/epel/testing/5/$basearch
# enabled: false
# failovermethod: priority
# gpgcheck: true
# gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
# name: Extra Packages for Enterprise Linux 5 - Testing
runcmd:
- date >/root/cloudinit.log
- hostnamectl set-hostname ${HOSTNAME}
- echo ${HELLO} >>/root/cloudinit.log
- echo "Done tf cloud-init" >>/root/cloudinit.log