Commit 44f2fbde authored by Cool Fire's avatar Cool Fire

Initial commit

parents
Pipeline #97 passed with stages
in 1 minute and 23 seconds
before_script:
- apt-get update -qq
stages:
- test
- deploy
lint:
stage: test
script:
- apt-get install -y -qq ruby
- gem install --no-ri --no-rdoc puppet-lint
- ruby -v
- puppet-lint -v
- puppet-lint .
tags:
- puppet
deploy:
stage: deploy
script:
- 'which ssh-agent || (apt-get install -y -qq openssh-client)'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- bash deploy.sh
tags:
- puppet
only:
- master
All puppet manifests live here.
#!/usr/bin/bash
for c in {1..4}
do
ssh puppet.insomnia247.nl "cd /etc/puppetlabs/code/environments/production/manifests && git pull && systemctl reload puppetserver" && break || sleep 3 && echo "retry"
done
\ No newline at end of file
node 'puppet.insomnia247.nl' {
include profile::base::puppetagent
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment