# The location to use for storing cached Git repos
:cachedir: '/var/cache/r10k'
# A list of git repositories to create
:sources:
# This will clone the git repository and instantiate an environment per
# branch in /etc/puppet/environments
:plops:
remote: 'git@git.$job.$tld:$user/puppet-environments-r10k.git'
basedir: '/etc/puppet/environments'
# This directory will be purged of any directory that doesn't map to a
# git branch
#:purgedirs:
# - '/etc/puppet/environments'
$ pwd
/etc/puppet/environments
$ ln -s ../../../etc/puppet/environments/master/ production
$ ll
total 8
drwxr-sr-x 5 root puppetadmin 4096 Jun 2 14:42 develop
drwxr-sr-x 5 root puppetadmin 4096 Jun 2 14:43 master
lrwxrwxrwx 1 root puppetadmin 40 Jun 2 15:10 production -> ../../../etc/puppet/environments/master/
$ r10k deploy environment
$ ll
total 8
drwxr-sr-x 5 root puppetadmin 4096 Jun 2 14:42 develop
drwxr-sr-x 5 root puppetadmin 4096 Jun 2 14:43 master