This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
defaults.rb
34 lines (33 loc) · 1.7 KB
/
defaults.rb
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
$config = {
"hostname" => ENV['INSTANCE_NAME'].sub(/\..*$/,''),
"fqdn" => ENV['INSTANCE_NAME'],
"instance-id" => ENV['INSTANCE_NAME'],
"user" => "root",
"disable_root" => 0,
"lock-passwd" => true,
"ssh_authorized_keys" => ["ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAwkyYVN6PZlvdfFm8jqR1SFi8L6E6ba3GCo2Zpf3p09ePiPll7PsVm6+yrimvnxwQ9iy0C\
QtlzMW8ISbRV9MszTukkDfYumfgKIgq6UyVxSQDF5CXryUOxkOGvmKI8VdJcWK4BEF6woFqIc7Uck/hwy/6+57AJJU2G5EAD6/bYuoo26ZBkaG07G+sY5Qil9Zq+EmjtPqwWrPA\
vMsWz8r+N+28OOCzFfc5CLyTec5bQakDTpp+iTJPrtKK3L7MsJNwTxoiG6PynrZhKrrdxOvEl9qPFx88qc2LTjYYNOhuT2BwVKzCO9xFS3Bb2rQ1ZFD2s/ou+HTgGP35Rgilh6D\
l/7KPNbxlEZ0pYbH8iiZYLg3ZtxuS1u+MHo4zir2RUHHBarQ8wDTnFsvKTG+pQ5xodfso/I9mDXKrrlFl94/rx6cZIe0hum3Id5dTR+9EwNKlVnRFDFXERWe7pZ8SSVKd3tfAoL\
t4DsLwyQhXmqGfGSirgTO7/BPGAJlFxVDLL93kMkWs0YsrFudL+QMeCFC8lkINpbnT2BYhsv6D/kpNmnvIKwGFkBbImBkY4XDswE4xM38MN8+p6533DI2gnKFW9EfQZVJy3sJxX\
U16lY2HCicQrinR7wLUdKNIlFpd+UdasfJAd3381WAhsNUbRI5yAYhELc/VvQ11Qhkt090UKaU= [email protected]"],
"chpasswd" => {"expire" => false},
"ssh_pwauth" => false,
"runcmd" => [
"mkdir -p /disk/trump || true",
"/bin/bash /tmp/post || true",
],
"package_upgrade" => true,
"write_files" => [
{ "encoding" => "b64",
"owneer" => "root:root",
"path" => "/tmp/post",
"permissions" => "0655",
"content" => Base64.encode64($kickstart["post"])
}
],
"phone_home" => {
"url" => 'http://web.cecs.pdx.edu/~sage/notify2.cgi?message=The%20vm%20$INSTANCE_ID%20is%20ready'
},
"timezone" => "US/Pacific"
}