blob: 953ceb851588310c03eed6cb9c4eb376777119f7 [file] [log] [blame]
Ivan Berezovskiyc46e7c02018-10-29 18:22:09 +04001# If this is set, 'root' will not be able to ssh in and they
2# will get a message to login instead as the above $user (ubuntu)
3disable_root: false
4
5# This will cause the set+update hostname module to not operate (if true)
6preserve_hostname: false
7apt_preserve_sources_list: true
8
9# Better let managing of /etc/hosts on salt and others
10# manage_etc_hosts: localhost
11
12# The modules that run in the 'init' stage
13cloud_init_modules:
14 - migrator
15 - seed_random
16 - bootcmd
17 - write-files
18 - growpart
19 - resizefs
20 - set_hostname
21 - update_hostname
22 - update_etc_hosts
23 - ca-certs
24 - rsyslog
25 - users-groups
26 - ssh
27
28# The modules that run in the 'config' stage
29cloud_config_modules:
30# Emit the cloud config ready event
31# this can be used by upstart jobs for 'start on cloud-config'.
32 - emit_upstart
33 - disk_setup
34 - mounts
35 - ssh-import-id
36 - locale
37 - set-passwords
38 - grub-dpkg
39 - apt-pipelining
40 - apt-configure
41 - package-update-upgrade-install
42 - landscape
43 - timezone
44 - puppet
45 - chef
46 - salt-minion
47 - mcollective
48 - disable-ec2-metadata
49 - runcmd
50 - byobu
51
52# The modules that run in the 'final' stage
53cloud_final_modules:
54 - rightscale_userdata
55 - scripts-vendor
56 - scripts-per-once
57 - scripts-per-boot
58 - scripts-per-instance
59 - scripts-user
60 - ssh-authkey-fingerprints
61 - keys-to-console
62 - phone-home
63 - final-message
64 - power-state-change
65
66datasource_list: [ NoCloud, ConfigDrive, Ec2, OpenStack, OVF, MAAS, None ]
67datasource:
68 Ec2:
69 timeout: 5 # (defaults to 50 seconds)
70 max_wait: 10 # (defaults to 120 seconds)
71 OpenStack:
72 timeout: 5 # (defaults to 50 seconds)
73 max_wait: 10 # (defaults to 120 seconds)
74 MAAS:
75 timeout: 5 # (defaults to 50 seconds)
76 max_wait: 10 # (defaults to 120 seconds)
77
78hostname: cfg01.try-mcp.local
79runcmd:
80 - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
81 - service sshd restart
82 - salt-call --timeout=120 test.ping
83 - salt-call saltutil.sync_all
84 - systemctl restart docker
85 - sleep 20
86 - salt-call state.sls docker.swarm
87 - sleep 60
88 - salt-call state.sls nginx
89 - sleep 25
90 - salt-call state.sls keycloak
91 - sleep 20
92 - salt-call state.sls docker.client
93 - sleep 60
94 - salt-call state.sls openldap
95 - sleep 20
96 - salt-call state.sls gerrit
97 - sleep 25
98 - salt-call state.sls jenkins