diff options
author | Thomas Backlund <tmb@mageia.org> | 2016-03-05 20:59:53 +0200 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2016-03-05 20:59:53 +0200 |
commit | 6526d16276395667193eae7c2bf758f2c0c86a9e (patch) | |
tree | 8688ebbe20003790189d1c1f4200da9262ee85e9 /modules | |
parent | 89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa (diff) | |
download | puppet-6526d16276395667193eae7c2bf758f2c0c86a9e.tar puppet-6526d16276395667193eae7c2bf758f2c0c86a9e.tar.gz puppet-6526d16276395667193eae7c2bf758f2c0c86a9e.tar.bz2 puppet-6526d16276395667193eae7c2bf758f2c0c86a9e.tar.xz puppet-6526d16276395667193eae7c2bf758f2c0c86a9e.zip |
gitmirror: ensure git repo dir and on-the-pull run dir is available
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gitmirror/manifests/init.pp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp index fe137cf9..1cff535b 100644 --- a/modules/gitmirror/manifests/init.pp +++ b/modules/gitmirror/manifests/init.pp @@ -1,7 +1,9 @@ class gitmirror { - $git_login = 'git' - $git_homedir = "/var/lib/${git_login}" + $git_dir = '/git' + $git_login = 'git' + $git_homedir = "/var/lib/${git_login}" + $git_rundir = '/var/run/on-the-pull' group { $git_login: ensure => present, @@ -12,6 +14,18 @@ class gitmirror { home => $git_homedir, } + file { $git_dir: + ensure => directory, + owner => $git_login, + group => $git_login, + mode => '0755', + } + + file { $git_rundir: + ensure => directory, + mode => '0755', + } + mga_common::local_script { 'on-the-pull': content => template('gitmirror/on-the-pull'), } |