diff options
| author | Thomas Backlund <tmb@mageia.org> | 2016-03-05 20:10:08 +0200 |
|---|---|---|
| committer | Thomas Backlund <tmb@mageia.org> | 2016-03-05 20:10:08 +0200 |
| commit | 89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa (patch) | |
| tree | cf89b9ebdce69bbfec3dc125fea7ea6203e71764 /modules/gitmirror | |
| parent | 52f1f951e403a86097aa5e5e2eddf4761355d60b (diff) | |
| download | puppet-89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa.tar puppet-89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa.tar.gz puppet-89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa.tar.bz2 puppet-89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa.tar.xz puppet-89d6c7e1c7a9a9ee9f879a3598a11114fc0a59aa.zip | |
gitmirror: ensure git user/group is present
Diffstat (limited to 'modules/gitmirror')
| -rw-r--r-- | modules/gitmirror/manifests/init.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/gitmirror/manifests/init.pp b/modules/gitmirror/manifests/init.pp index 8861d1fe..fe137cf9 100644 --- a/modules/gitmirror/manifests/init.pp +++ b/modules/gitmirror/manifests/init.pp @@ -1,7 +1,21 @@ class gitmirror { + + $git_login = 'git' + $git_homedir = "/var/lib/${git_login}" + + group { $git_login: + ensure => present, + } + + user { $git_login: + ensure => present, + home => $git_homedir, + } + mga_common::local_script { 'on-the-pull': content => template('gitmirror/on-the-pull'), } + file { '/etc/init.d/on-the-pull': content => template('gitmirror/on-the-pull.init'), mode => '0755', |
