Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 1 | # 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) |
| 3 | disable_root: false |
| 4 | |
| 5 | # This will cause the set+update hostname module to not operate (if true) |
| 6 | preserve_hostname: false |
| 7 | apt_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 |
| 13 | cloud_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 |
| 29 | cloud_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 |
| 53 | cloud_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 | |
| 66 | datasource_list: [ NoCloud, ConfigDrive, Ec2, OpenStack, OVF, MAAS, None ] |
| 67 | datasource: |
| 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 | |
| 78 | hostname: cfg01.try-mcp.local |
| 79 | runcmd: |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame^] | 80 | # TODO : add model update |
| 81 | #- salt-call state.apply reclass |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 82 | - salt-call --timeout=120 test.ping |
Ivan Berezovskiy | e36406d | 2018-11-26 17:03:37 +0400 | [diff] [blame] | 83 | - salt-call saltutil.clear_cache |
| 84 | - salt-call saltutil.refresh_pillar |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 85 | - salt-call saltutil.sync_all |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame^] | 86 | #- salt-call state.sls salt.minion.ca |
| 87 | #- sleep 5 |
| 88 | #- salt-call state.apply salt |
| 89 | - salt-call --timeout=120 test.ping |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 90 | - systemctl restart docker |
| 91 | - sleep 20 |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame^] | 92 | - salt-call state.sls linux.system.user,openssh |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 93 | - salt-call state.sls docker.swarm |
| 94 | - sleep 60 |
| 95 | - salt-call state.sls nginx |
| 96 | - sleep 25 |
| 97 | - salt-call state.sls keycloak |
| 98 | - sleep 20 |
| 99 | - salt-call state.sls docker.client |
| 100 | - sleep 60 |
Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 101 | - salt-call state.sls jenkins |
Denis Egorenko | 96e8b06 | 2019-04-03 18:05:50 +0400 | [diff] [blame^] | 102 | - bash /opt/add_keycloak_service_user.sh |
Ivan Berezovskiy | 23035a2 | 2018-11-14 13:25:51 +0400 | [diff] [blame] | 103 | - touch /done_cloud_init_bootstrap |