Skip to content

sciurus/r10k-git-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Introduction

This repository contains a git post-receive hook for running r10k via gitolite3. I've only tested it on Fedora 19 with the configuration below.

Configuration

/etc/r10k.yaml

# 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
  :puppet:
    remote: 'file:///var/lib/gitolite3/repositories/puppet.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'

Permissions

chown gitolite3:gitolite3 /var/cache/r10k
chown gitolite3:puppet /etc/puppet/environments
chown gitolite3:puppet /var/lib/gitolite3/.puppet
chmod g+s /etc/puppet/environments
chmod g+s /var/lib/gitolite3/.puppet

About

git post-receive hook for running r10k via gitolite3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published