Paste #472810

 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
cat meta-data
instance-id: test
local-hostname: testhost
network-interfaces: |
  auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet dhcp

  auto eth1
  iface eth1 inet static
  address 10.0.0.5
  netmask 255.255.255.0
  gateway 10.0.0.1
  dns-nameserver 8.8.8.8
bootcmd:
  - ifdown eth0
  - ifup eth0
  - ifdown eth1
  - ifup eth1


cat user-data 
#cloud-config
password: coelabvm123
ssh_pwauth: True
chpasswd: { expire: False }