|
|
f6b82d |
stages:
|
|
|
aa384d |
- test
|
|
|
f6b82d |
- deploy
|
|
|
f6b82d |
|
|
Theo Chatzimichos |
1f0a34 |
test_roles:
|
|
|
aa384d |
stage: test
|
|
|
aa384d |
before_script:
|
|
|
aa384d |
- zypper -qn in --no-recommends python3 python3-PyYAML
|
|
|
aa384d |
script: bin/test_roles.py
|
|
|
aa384d |
tags:
|
|
|
aa384d |
- docker
|
|
|
aa384d |
|
|
Theo Chatzimichos |
02fadf |
test_custom_grains:
|
|
Theo Chatzimichos |
02fadf |
stage: test
|
|
Theo Chatzimichos |
02fadf |
before_script:
|
|
Theo Chatzimichos |
02fadf |
- zypper -qn in --no-recommends python3 python3-PyYAML
|
|
Theo Chatzimichos |
02fadf |
script: bin/test_custom_grains.py
|
|
Theo Chatzimichos |
02fadf |
tags:
|
|
Theo Chatzimichos |
02fadf |
- docker
|
|
Theo Chatzimichos |
02fadf |
|
|
Theo Chatzimichos |
1f0a34 |
test_show_highstate:
|
|
Theo Chatzimichos |
1f0a34 |
stage: test
|
|
Theo Chatzimichos |
1f0a34 |
before_script:
|
|
Theo Chatzimichos |
1f0a34 |
- zypper -qn in --no-recommends salt git python3 python3-PyYAML
|
|
Theo Chatzimichos |
1f0a34 |
- rm -rf /srv/{salt,pillar}
|
|
Theo Chatzimichos |
1f0a34 |
- ln -s $PWD/salt /srv/salt
|
|
Theo Chatzimichos |
1f0a34 |
- ln -s $PWD/pillar /srv/pillar
|
|
Theo Chatzimichos |
1f0a34 |
- sed -i -e 's/^production:$/base:/' /srv/{salt,pillar}/top.sls
|
|
Theo Chatzimichos |
1f0a34 |
- bin/get_formulas.py -c /srv/formula -s
|
|
Theo Chatzimichos |
1f0a34 |
script: bin/test_show_highstate.py
|
|
Theo Chatzimichos |
1f0a34 |
tags:
|
|
Theo Chatzimichos |
1f0a34 |
- docker
|
|
Theo Chatzimichos |
1f0a34 |
|
|
|
f6b82d |
deploy_job:
|
|
|
f6b82d |
stage: deploy
|
|
|
fb6a2a |
script: sudo salt-call event.fire_master update salt/fileserver/gitfs/update
|
|
|
f6b82d |
only:
|
|
|
f6b82d |
- production
|
|
|
f6b82d |
tags:
|
|
|
f6b82d |
- shell
|