diff options
author | Michael Scherer <misc@mageia.org> | 2012-02-18 17:17:15 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-02-18 17:17:15 +0000 |
commit | 8f68f36bb950456e7b88557599a2ddef628153f5 (patch) | |
tree | e6d4a81164dbd5d24829423056ba2a74dc0bc034 /modules/mgasoft | |
parent | 296c7c2ac430ea5ae21b90fe5e164b0e96f1fdd9 (diff) | |
download | puppet-8f68f36bb950456e7b88557599a2ddef628153f5.tar puppet-8f68f36bb950456e7b88557599a2ddef628153f5.tar.gz puppet-8f68f36bb950456e7b88557599a2ddef628153f5.tar.bz2 puppet-8f68f36bb950456e7b88557599a2ddef628153f5.tar.xz puppet-8f68f36bb950456e7b88557599a2ddef628153f5.zip |
some cleaning ( ie, do not repeat default values ), some puppet-lint compliance
Diffstat (limited to 'modules/mgasoft')
-rw-r--r-- | modules/mgasoft/manifests/init.pp | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/modules/mgasoft/manifests/init.pp b/modules/mgasoft/manifests/init.pp index 67a39a18..68c54ba7 100644 --- a/modules/mgasoft/manifests/init.pp +++ b/modules/mgasoft/manifests/init.pp @@ -5,41 +5,33 @@ class mgasoft( $svn_soft_publish = 'file:///svn/soft_publish', $mgasoft_login = 'mgasoft' ) { - group { $mgasoft_login: - ensure => present, - } + group { $mgasoft_login: } + user { $mgasoft_login: - ensure => present, - comment => "System user to publish software", - managehome => true, - home => "/var/lib/$mgasoft_login", - gid => $mgasoft_login, - require => Group[$mgasoft_login], + comment => 'System user to publish software', + managehome => true, + home => "/var/lib/$mgasoft_login", + gid => $mgasoft_login, + require => Group[$mgasoft_login], } - package { 'mgasoft-publish': - ensure => installed, - } + package { 'mgasoft-publish': } file { '/etc/mgasoft.conf': - ensure => present, - owner => root, - group => root, - mode => 644, - content => template('mgasoft/mgasoft.conf'), + content => template('mgasoft/mgasoft.conf'), } subversion::snapshot { $pubinfodir: - source => $svn_soft_publish, - user => $mgasoft_login, - refresh => '0', - require => User[$mgasoft_login], + source => $svn_soft_publish, + user => $mgasoft_login, + refresh => '0', + require => User[$mgasoft_login], } cron { "mgasoft-publish": - command => '/usr/bin/mgasoft-publish', - user => $mgasoft_login, - minute => '*/5', + command => '/usr/bin/mgasoft-publish', + user => $mgasoft_login, + minute => '*/5', require => User[$mgasoft_login], } } |