aboutsummaryrefslogtreecommitdiffstats
path: root/opensteak/tools/templates_foreman/user-data
blob: 281b5d46d4a15d7e5ff8b88d8dbdeaaf72220f40 (plain)
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
#cloud-config
#############################################
# OPENSTEAK VM '${name}'
#############################################
password: ${password}
chpasswd: { expire: False }
ssh_pwauth: True
dsmode: net
hostname: ${name}
#############################################
# FIRST BOOT COMMAND
# - reload main interface
# - install puppet from puppetlabs
# - remove cloud-init
#############################################
runcmd:
 - [ sh, -c, "mount /dev/vdb /mnt"]
 - [ sh, -c, "sudo bash /mnt/install.sh"]
# This is the id_rsa.sansmotdepasse key
ssh_authorized_keys:
  - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDY15cdBmIs2XOpe4EiFCsaY6bmUmK/GysMoLl4UG51JCfJwvwoWCoA+6mDIbymZxhxq9IGxilp/yTA6WQ9s/5pBag1cUMJmFuda9PjOkXl04jgqh5tR6I+GZ97AvCg93KAECis5ubSqw1xOCj4utfEUtPoF1OuzqM/lE5mY4N6VKXn+fT7pCD6cifBEs6JHhVNvs5OLLp/tO8Pa3kKYQOdyS0xc3rh+t2lrzvKUSWGZbX+dLiFiEpjsUL3tDqzkEMNUn4pdv69OJuzWHCxRWPfdrY9Wg0j3mJesP29EBht+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D sansmotdepasse
#############################################
# FINAL MESSAGE AT END OF BOOT
#############################################
final_message: "The system '${name}' is finally up, after $$UPTIME seconds"