Ubuntu Pastebin

Paste from Diplomat at Wed, 18 Nov 2015 19:08:04 +0000

Download as text
 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#cloud-config

users:
 - name: root
 - name: customer
   groups: sudo
   shell: /bin/bash
   sudo: ['ALL=(ALL:ALL) ALL']
   lock-passwd: false

chpasswd:
 list: |
  root:password
  customer:password
 expire: True

ssh_pwauth: True

manage-resolv-conf: True
resolv-conf:
 nameservers:
  - '8.8.8.8'
  - '8.8.4.4'
 options:
  rotate: true

growpart:
 mode: auto
 devices: ["/"]
 resize_rootfs: True
 resize_rootfs_tmp: /dev

#package_upgrade: true

runcmd:
  - sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
  - service ssh restart
  - service sshd restart
#  - yum -y upgrade

cloud_init_modules:
 - migrator
 - bootcmd
 - write-files
 - growpart
 - resizefs
 - set_hostname
 - update_hostname
 - update_etc_hosts
 - rsyslog
 - users-groups
 - ssh

cloud_config_modules:
 - mounts
 - locale
 - set-passwords
 - yum-add-repo
 - package-update-upgrade-install
 - timezone
 - puppet
 - chef
 - salt-minion
 - mcollective
 - disable-ec2-metadata
 - runcmd

cloud_final_modules:
 - rightscale_userdata
 - scripts-per-once
 - scripts-per-boot
 - scripts-per-instance
 - scripts-user
 - ssh-authkey-fingerprints
 - keys-to-console
 - phone-home
 - final-message
Download as text