blob: cb551ef56851d753ffb9a00252579394cb7c69f3 [file] [log] [blame]
sgudz9c5699d2019-04-11 14:16:41 +03001#cloud-config, see http://cloudinit.readthedocs.io/en/latest/topics/examples.html
2
3ssh_pwauth: True
4users:
5 - name: root
6 sudo: ALL=(ALL) NOPASSWD:ALL
7 shell: /bin/bash
8 - name: jenkins
9 sudo: ALL=(ALL) NOPASSWD:ALL
10 shell: /bin/bash
11 ssh_authorized_keys:
12 - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSxeuXh2sO4VYL8N2dlNFVyNcr2RvoH4MeDD/cV2HThfU4/BcH6IOOWXSDibIU279bWVKCL7QUp3mf0Vf7HPuyFuC12QM+l7MwT0jCYh5um3hmAvM6Ga0nkhJygHexe9/rLEYzZJkIjP9/IS/YXSv8rhHg484wQ6qkEuq15nyMqil8tbDQCq0XQ+AWEpNpIa4pUoKmFMsOP8lq10KZXIXsJyZxizadr6Bh4Lm9LWrk8YCw7qP3rmgWxK/s8qXQh1ISZe6ONfcmk6p03qbh4H3CwKyWzxmnIHQvE6PgN/O+PuAZj3PbR2mkkJjYX4jNPlxvj8uTStaVPhAwfR9Spdx jenkins@cz8133
13
14disable_root: false
15chpasswd:
16 list: |
17 root:r00tme
18 expire: False
19
20packages:
21 - openjdk-8-jre-headless
22 - libyaml-dev
23 - libffi-dev
24 - libvirt-dev
25 - python-dev
26 - python-pip
27 - python-virtualenv
28 #- python-psycopg2
29 - pkg-config
30 - vlan
31 - bridge-utils
32 - ebtables
33
34bootcmd:
35 # Enable root access
36 - sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
37 - service sshd restart
38output:
39 all: '| tee -a /var/log/cloud-init-output.log /dev/tty0'
40
41runcmd:
42 # Create swap
43 - fallocate -l 16G /swapfile
44 - chmod 600 /swapfile
45 - mkswap /swapfile
46 - swapon /swapfile
47 - echo "/swapfile none swap defaults 0 0" >> /etc/fstab
48
49write_files:
50 - path: /etc/default/grub.d/97-enable-grub-menu.cfg
51 content: |
52 GRUB_RECORDFAIL_TIMEOUT=30
53 GRUB_TIMEOUT=3
54 GRUB_TIMEOUT_STYLE=menu
55
56 - path: /etc/network/interfaces
57 content: |
58 auto ens3
59 iface ens3 inet dhcp
60
61 - path: /etc/bash_completion.d/fuel_devops30_activate
62 content: |
63 source /home/jenkins/fuel-devops30/bin/activate