blob: 31958642de2ec90e96e3bc79898aaf89ccfbfd3e [file] [log] [blame]
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -04001#cloud-config
2
3# run commands
4# default: none
5# runcmd contains a list of either lists or a string
6# each item will be executed in order at rc.local like level with
7# output to the console
8# - if the item is a list, the items will be properly executed as if
9# passed to execve(3) (with the first arg as the command).
10# - if the item is a string, it will be simply written to the file and
11# will be interpreted by 'sh'
12#
13# Note, that the list has to be proper yaml, so you have to escape
14# any characters yaml would eat (':' can be problematic)
15runcmd:
16 - [ ls, -l, / ]
17
18salt_minion:
19 conf:
20 master: {master_ip}
21 id: {lxcname}
22 acceptance_wait_time: 1
23 recon_default: 100
24 recon_max: 1000
25 recon_randomize: False
26 log_level: debug
27
28# For some unknown reason, the minion sometimes does not start
29# (and doesn't even leave a log file). Force a start just in case
30runcmd:
31 - echo Sleeping for 5 seconds and attempting to start minion
32 - sleep 5
33 - /bin/systemctl start salt-minion.service