added new vmtest.cfg.example
authorvarac <varacanero@zeromail.org>
Tue, 16 Oct 2012 12:45:58 +0000 (14:45 +0200)
committervarac <varacanero@zeromail.org>
Tue, 16 Oct 2012 12:45:58 +0000 (14:45 +0200)
user-data.example [deleted file]
vmtest.cfg.example [new file with mode: 0644]

diff --git a/user-data.example b/user-data.example
deleted file mode 100644 (file)
index 5c9fa18..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-#cloud-config
-
-cloud_init_modules:
-# - bootcmd
- - resizefs
- - set_hostname
- - update_hostname
- - update_etc_hosts
-# - ca-certs
-# - rsyslog
- - ssh
-
-cloud_config_modules:
-# - mounts
- - ssh-import-id
- - set-passwords
-#- ssh
-#- grub-dpkg
- - apt-update-upgrade 
- - timezone
-#- puppet
-#- updates-check
-#- disable-ec2-metadata
-# - runcmd
-
-
-cloud_final_modules:
- - rightscale_userdata
- - scripts-per-once
- - scripts-per-boot
- - scripts-per-instance
- - [scripts-user, always] 
- - keys-to-console
-# - phone-home
- - final-message
-
-#######
-# Optional settings
-#######
-
-apt_preserve_sources_list: true
-
-manage_etc_hosts: true
-
-##runcmd:
-# - [ ls, -l, / ]
-
-#packages:
-# - pwgen
-
-# set the timezone
-timezone: Etc/UTC
-
-# allow root login through ssh
-disable_root: false
-
-# set the correct local
-locale: en_US.UTF-8 UTF-8 
-
-######
-# Change these setings !!!
-######
-
-hostname: cloudinit-test
-fqdn: cloudinit-test.leap.se
-
-user: root
-password: 
-chpasswd: { expire: False }
-
-# paste ssh_authorized_keys at the end because config can get easily corrupted when pasting shit
-ssh_authorized_keys:
-  - ssh-rsa AAAAB3NzaC1yc2EAAdABIwAAAGEA3FSyQwBI6Z+nCSjUUk8EEAnnkhXlukKoppND/RRClWz2s5TCzIkd3Ou5+Cyz71X0XmazM3l5WgeErvtIwQMyT1KjNoMhoJMrJnWqQPOt5Q8zWd9qG7PBl9+eiH5qV7NZ mykey@host
-
-# Dont's edit below this line 
diff --git a/vmtest.cfg.example b/vmtest.cfg.example
new file mode 100644 (file)
index 0000000..f327a0b
--- /dev/null
@@ -0,0 +1,63 @@
+instance-id: cloudinit-test 
+# end of meta-data1
+
+# Do not remove comment below, as it defines the division between meta-data and user-data
+#cloud-config
+cloud_init_modules:
+ - bootcmd
+ - resizefs
+ - set_hostname
+ - update_hostname
+ - update_etc_hosts
+ - ssh
+
+cloud_config_modules:
+ - ssh-import-id
+ - apt-update-upgrade 
+ - timezone
+
+cloud_final_modules:
+ - rightscale_userdata
+ - scripts-per-once
+ - scripts-per-boot
+ - scripts-per-instance
+ - [scripts-user, always] 
+ - keys-to-console
+ - final-message
+
+#######
+# Optional settings
+#######
+
+apt_preserve_sources_list: true
+manage_etc_hosts: true
+timezone: Etc/UTC
+# allow root login through ssh
+disable_root: false
+locale: en_US.UTF-8 UTF-8 
+user: root
+
+######
+# Change these setings !!!
+######
+
+hostname: cloudinit-test
+fqdn: cloudinit-test.leap.se
+
+# dirty workaround to configure eth1, as it didn't work with meta-data
+# eth0 can be configured via dhcp, optionally
+# populate /etc/resolv.conf with german/swiss privacy foundation nameservers
+bootcmd:
+ - ifdown eth0
+ - export PREFIX=94.103.39
+ - export IP=${PREFIX}.13
+ - echo "auto lo\niface lo inet loopback\n\nallow-hotplug eth1\niface eth1 inet static\n  address $IP\n  netmask 255.255.255.0\n  network ${PREFIX}.0\n  broadcast ${PREFIX}.255\n  gateway ${PREFIX}.1\n" > /etc/network/interfaces
+ - ifup eth1
+ - echo "nameserver 87.118.100.175\nnameserver 62.141.58.13" > /etc/resolv.conf 
+
+# paste ssh_authorized_keys at the end because config can get easily corrupted when pasting shit
+ssh_authorized_keys:
+ - ssh-rsa AAAAB3NzaC1yc2EAAdABIwAAAGEA3FSyQwBI6Z+nCSjUUk8EEAnnkhXlukKoppND/RRClWz2s5TCzIkd3Ou5+Cyz71X0XmazM3l5WgeErvtIwQMyT1KjNoMhoJMrJnWqQPOt5Q8zWd9qG7PBl9+eiH5qV7NZ mykey@host
+
+# Dont's edit below this line 
+