Compare commits
No commits in common. "e5e9685113f2fe56555e72ca97a80cf04e2a4275" and "50c638a00024141cea7dfc445fa17bf336d5db83" have entirely different histories.
e5e9685113
...
50c638a000
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -Ceu
|
||||
|
||||
FORMULASDIR='/srv/formulas'
|
||||
|
||||
if [ ! -d "$FORMULASDIR" ]
|
||||
then
|
||||
git clone --recurse-submodules --single-branch -b production https://git.com.de/LibertaCasa/salt-formulas.git "$FORMULASDIR"
|
||||
exit "$?"
|
||||
fi
|
||||
|
||||
git -C "$FORMULASDIR" pull --recurse-submodules
|
@ -9,7 +9,6 @@ import socket
|
||||
roles = roles.get()
|
||||
grainsfile = '/etc/salt/grains'
|
||||
idfile = 'pillar/id/' + socket.gethostname() + '.sls'
|
||||
configfile = '/etc/salt/minion.d/local.conf'
|
||||
mypwd = os.getcwd()
|
||||
|
||||
grainsdata = {'roles': roles}
|
||||
@ -20,13 +19,5 @@ with open(grainsfile, mode='w') as grainsfh:
|
||||
with open(idfile, mode='w') as idfh:
|
||||
idfh.write('# empty')
|
||||
|
||||
with open(configfile, mode='w') as configfh:
|
||||
configfh.write('''# written by prepare_minion.py
|
||||
file_roots:
|
||||
production:
|
||||
- /srv/salt
|
||||
- /srv/formulas/salt-formula
|
||||
''')
|
||||
|
||||
os.symlink(mypwd + '/salt', '/srv/salt')
|
||||
os.symlink(mypwd + '/pillar', '/srv/pillar')
|
||||
|
@ -1 +0,0 @@
|
||||
# empty
|
Loading…
x
Reference in New Issue
Block a user