Permalink
Browse files

Merge pull request #133 from mbacovsky/usergroups_the_puppet_way

refactoring - adding members to katello system group more puppet friendly way
  • Loading branch information...
2 parents e279dc6 + 2c4782a commit e45e014ff1cf53ba83cfb45c82070905d6d329ea @lzap committed May 24, 2012
View
6 puppet/modules/apache2/manifests/config.pp
@@ -1,8 +1,8 @@
class apache2::config {
- exec { "add-apache-user-to-katello-group":
- command => "usermod -a -G katello apache",
- path => "/usr/sbin"
+ user { 'apache':
+ ensure => present,
+ groups => ['katello']
}
# support RHEL5/RHEL6 only
View
6 puppet/modules/candlepin/manifests/config.pp
@@ -1,8 +1,8 @@
class candlepin::config {
- exec { "add-tomcat-user-to-katello-group":
- command => "usermod -a -G katello tomcat",
- path => "/usr/sbin",
+ user { 'tomcat':
+ ensure => present,
+ groups => ['katello'],
before => Exec["cpsetup"]
}
View
7 puppet/modules/qpid/manifests/config.pp
@@ -1,9 +1,8 @@
class qpid::config {
- exec { "add-qpidd-user-to-katello-group":
- command => "usermod -a -G katello qpidd",
- path => "/usr/sbin",
- before => [Class["qpid::service"]],
+ user { 'qpidd':
+ ensure => present,
+ groups => ['katello']
}
file { "/etc/qpidd.conf":
View
6 puppet/modules/thumbslug/manifests/config.pp
@@ -1,8 +1,8 @@
class thumbslug::config {
- exec { "add-thumbslug-user-to-katello-group":
- command => "usermod -a -G katello thumbslug",
- path => "/usr/sbin"
+ user { 'thumbslug':
+ ensure => present,
+ groups => ['katello']
}
file { "/etc/thumbslug/thumbslug.conf":

0 comments on commit e45e014

Please sign in to comment.