- apt-get install -y cmake libldap-dev libsasl2-dev
- bundle install --binstubs bin --with octocatalog
- - git branch -f base $REF_BASE
- - git branch -f test $CI_BUILD_REF
-
- - echo -n "$R10K" > r10k.yaml
- - bundle exec r10k deploy environment --verbose debug base test
+ - echo -n "$FILE_R10K" > r10k.yaml
+ - git branch -f $ENV_BASE origin/$ENV_BASE
+ - git branch -f $ENV_TEST $CI_BUILD_REF
+ - bundle exec r10k deploy environment --puppetfile --verbose debug $ENV_BASE $ENV_TEST
- spec/octocatalog/init-system
- - spec/octocatalog/init-env base test
- - spec/octocatalog/run-octocatalog base test
+ - spec/octocatalog/init-env
+ - spec/octocatalog/run-octocatalog
test-octocatalog/master:
<<: *test-octocatalog
- master
variables:
- REF_BASE: origin/master
- R10K: |
+ ENV_BASE: master
+ ENV_TEST: test_octocatalog
+ FILE_R10K: |
cachedir: 'cache'
sources:
plain:
#!/bin/bash
set -euE
-for env in "$@"; do
+for env in $ENV_BASE $ENV_TEST; do
mkdir -p environments/$env/modules/nagios/files/dsa-nagios/generated/
touch environments/$env/modules/nagios/files/dsa-nagios/generated/nrpe_dsa.cfg