Installs a gitolite git repository service, with optional hooks to r10k for managing puppet environments.
Administrators public ssh key for setting up the system. Defaoult value is undef
.
Name for the admin user that the key will be associated with. Default value is admin
.
The type of key for the administrator (defaults to ssh-rsa
)
root directory for the repository. Defaults to the git users home direcotry (/home/git
)
Adds an auto incremental serial tag to each commit. Defaults to false
.
Run r10k after git commit to deploy both environments and modules
This determins what needs to be done and runs either deploy module or
deploy environment. It will run both if a Puppetfile
is changed.
Defaults to false
.
Location of the r10k executable that the hook will call.
Used to populate the sudoers file correctly. If the module puppet/r10k
is installed
it will use the value for the $r10k_path
fact, otherwise defaults to /bin/r10k
.
In order to manage repositories that have no connection to puppet, all you need to provide
is an ssh key value. Note that this uses the ssh_key
resource type underneath, so it should
only be the key and not the key type prefix, nor the comment.
class { gitolite:
git_key => 'some key val',
}
If this is installed on your puppet master machine, then the repository can be integrated with r10k. Hooks will be added to repositories so that any pushes to these repositories result in r10k pulling the updates immediately.
class { gitolite:
git_key => 'some key val',
r10k_update => true,
}
Jason Cox j_cox@bigpond.com
Copyright 2014 - 2017 Jason Cox, unless otherwise noted.