Skip to content
Browse files

added jetty user and added default to start jetty with this user

  • Loading branch information...
1 parent 8ddaf8d commit 2f9f9b95c1123a7ca3c1116de01ab6d6a1673c65 Marcel Haerry committed Jul 15, 2008
Showing with 19 additions and 0 deletions.
  1. +1 −0 files/config/jetty.default
  2. +18 −0 manifests/init.pp
View
1 files/config/jetty.default
@@ -0,0 +1 @@
+export JETTY_USER=jetty
View
18 manifests/init.pp
@@ -24,6 +24,24 @@
ensure => present,
}
+ user{'jetty':
+ ensure => present,
+ allowdupe => false,
+ comment => 'Jetty User',
+ shell => '/bin/bash',
+ home => '/usr/share/jetty6',
+ require => Package['jetty6'],
+ }
+
+ file{'/etc/default/jetty':
+ source => [ "puppet://$server/files/jetty/config/${fqdn}/jetty.default",
+ "puppet://$server/files/jetty/config/jetty.default",
+ "puppet://$server/jetty/config/jetty.default" ],
+ require => Package['jetty6'],
+ notify => Service['jetty6'],
+ owner => root, group => 0, mode => 0644;
+ }
+
file{'/etc/jetty6/jetty.xml':
source => [ "puppet://$server/files/jetty/config/${fqdn}/jetty.xml",
"puppet://$server/files/jetty/config/jetty.xml",

0 comments on commit 2f9f9b9

Please sign in to comment.
Something went wrong with that request. Please try again.