Skip to content

Commit

Permalink
auto add kalauser to www-data
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 15, 2012
1 parent 9b3fd6f commit a882317
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions modules/nginx/manifests/config.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
*
* add kala_user to www-data
*
*/
class nginx::config {

# add kalauser to www-data group
exec { "www-data":
path => "/bin:/usr/bin",
unless => "id ${::kala_user} | grep www-data",
command => "sudo usermod -g www-data ${::kala_user}",
require => Class["nginx::install"],
notify => Class["nginx::service"],
}

}
2 changes: 1 addition & 1 deletion modules/nginx/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
*/
class nginx {

include nginx::install, nginx::service
include nginx::install, nginx::config, nginx::service

}

0 comments on commit a882317

Please sign in to comment.