[Mageia-sysadm] [551] - move everything in a subclass
root at mageia.org
root at mageia.org
Thu Dec 9 13:34:17 CET 2010
Revision: 551
Author: misc
Date: 2010-12-09 13:34:17 +0100 (Thu, 09 Dec 2010)
Log Message:
-----------
- move everything in a subclass
Modified Paths:
--------------
puppet/modules/sympa/manifests/init.pp
Modified: puppet/modules/sympa/manifests/init.pp
===================================================================
--- puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:16 UTC (rev 550)
+++ puppet/modules/sympa/manifests/init.pp 2010-12-09 12:34:17 UTC (rev 551)
@@ -1,66 +1,67 @@
class sympa {
+ class server {
+ # perl-CGI-Fast is needed for fast cgi
+ # perl-Socket6 is required by perl-IO-Socket-SSL
+ # (optional requirement)
+ $package_list = ['sympa', 'sympa-www', 'perl-CGI-Fast',
+ 'perl-Socket6']
- # perl-CGI-Fast is needed for fast cgi
- # perl-Socket6 is required by perl-IO-Socket-SSL
- # (optional requirement)
- $package_list = ['sympa', 'sympa-www', 'perl-CGI-Fast',
- 'perl-Socket6']
-
- package { $package_list:
- ensure => installed;
+ package { $package_list:
+ ensure => installed;
+ }
+
+ # sympa script start 5 differents script, I am not
+ # sure that puppet will correctly handle this
+ service { "sympa":
+ ensure => running,
+ hasstatus => true,
+ subscribe => [ Package["sympa"]]
+ }
+
+ $password = extlookup("sympa_password",'x')
+ $ldap_passwd = extlookup("sympa_ldap",'x')
+
+ @@postgresql::user { 'sympa':
+ password => $password,
+ }
+
+ file { '/etc/sympa/sympa.conf':
+ ensure => present,
+ # should be cleaner to have it root owned, but puppet do not support acl
+ # and in any case, config will be reset if it change
+ owner => sympa,
+ group => apache,
+ mode => 640,
+ content => template("sympa/sympa.conf")
+ }
+
+ file { '/etc/sympa/auth.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("sympa/auth.conf")
+ }
+
+
+ include apache::mod_fcgid
+ apache::webapp_other{"sympa":
+ webapp_file => "sympa/webapp_sympa.conf",
+ }
+
+ apache::vhost_other_app { "ml.$domain":
+ vhost_file => "sympa/vhost_ml.conf",
+ }
+
+ @@postgresql::database { 'sympa':
+ description => "Sympa database",
+ user => "sympa",
+ require => Postgresql::User["sympa"]
+ }
+
+ subversion::snapshot { "/etc/sympa/web_tt2":
+ source => "svn://svn.mageia.org/svn/web/templates/sympa/trunk"
+ }
}
-
- # sympa script start 5 differents script, I am not
- # sure that puppet will correctly handle this
- service { "sympa":
- ensure => running,
- hasstatus => true,
- subscribe => [ Package["sympa"]]
- }
-
- $password = extlookup("sympa_password",'x')
- $ldap_passwd = extlookup("sympa_ldap",'x')
-
- @@postgresql::user { 'sympa':
- password => $password,
- }
-
- file { '/etc/sympa/sympa.conf':
- ensure => present,
- # should be cleaner to have it root owned, but puppet do not support acl
- # and in any case, config will be reset if it change
- owner => sympa,
- group => apache,
- mode => 640,
- content => template("sympa/sympa.conf")
- }
-
- file { '/etc/sympa/auth.conf':
- ensure => present,
- owner => root,
- group => root,
- mode => 644,
- content => template("sympa/auth.conf")
- }
-
-
- include apache::mod_fcgid
- apache::webapp_other{"sympa":
- webapp_file => "sympa/webapp_sympa.conf",
- }
-
- apache::vhost_other_app { "ml.$domain":
- vhost_file => "sympa/vhost_ml.conf",
- }
-
- @@postgresql::database { 'sympa':
- description => "Sympa database",
- user => "sympa",
- require => Postgresql::User["sympa"]
- }
-
- subversion::snapshot { "/etc/sympa/web_tt2":
- source => "svn://svn.mageia.org/svn/web/templates/sympa/trunk"
- }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101209/5f692f08/attachment.html>
More information about the Mageia-sysadm
mailing list