diff options
Diffstat (limited to 'ci-prod-programs.ick')
-rw-r--r-- | ci-prod-programs.ick | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ci-prod-programs.ick b/ci-prod-programs.ick index dc388c5..ae88a32 100644 --- a/ci-prod-programs.ick +++ b/ci-prod-programs.ick @@ -810,6 +810,28 @@ projects: - ick/get_sources - ickui +- project: effi-reg + parameters: + sources: + - name: code + repo: git://git.liw.fi/ick2-ansible + ref: master + location: src + - name: helper + repo: git://git.qvarnlabs.net/debian-ansible + ref: master + location: debian-ansible + - name: vars + repo: ssh://git@git.liw.fi/private/liw/ci-prod-vars + ref: master + location: vars + systree_name: systrees-debian-stretch-build-essential + notify: [liw@liw.fi] + pipelines: + - ick/setup_container + - ick/get_sources + - run_ansible + pipelines: - pipeline: ickui @@ -828,3 +850,28 @@ pipelines: - action: rsync where: host + +- pipeline: run_ansible + parameters: + - notify + actions: + - where: host + shell: | + cp -a /home/_ickwm/.ssh dot-ssh + + - where: container + shell: | + mv dot-ssh /root/.ssh + chown -R root:root /root/.ssh + + - where: container + shell: | + sha1sum /root/.ssh/id_rsa + find /root /workspace -ls + + echo StrictHostKeyChecking no >> /etc/ssh/ssh_config + + export ANSIBLE_ROLES_PATH=/workspace/debian-ansible/roles + apt install -y ansible + cd src + ansible-playbook -i hosts.effi effi.yml -e reg_domain=effi-reg.vm.liw.fi -e @/workspace/vars/effi-reg.yml |