aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-19 16:21:10 +0000
committerMichael Scherer <misc@mageia.org>2012-03-19 16:21:10 +0000
commit935dc7ca41160ba3109b263f1b5200cea0a74253 (patch)
treeaeda6d8c431b59a82f70d6515f2247a441c51147 /modules/sympa
parent1bc53788a7a1118ab14327e5a56fd9a0c6f2b2c8 (diff)
downloadpuppet-935dc7ca41160ba3109b263f1b5200cea0a74253.tar
puppet-935dc7ca41160ba3109b263f1b5200cea0a74253.tar.gz
puppet-935dc7ca41160ba3109b263f1b5200cea0a74253.tar.bz2
puppet-935dc7ca41160ba3109b263f1b5200cea0a74253.tar.xz
puppet-935dc7ca41160ba3109b263f1b5200cea0a74253.zip
style cleaning of the module
Diffstat (limited to 'modules/sympa')
-rw-r--r--modules/sympa/manifests/init.pp92
1 files changed, 47 insertions, 45 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp
index 939cfbd8..3f569a45 100644
--- a/modules/sympa/manifests/init.pp
+++ b/modules/sympa/manifests/init.pp
@@ -1,27 +1,29 @@
class sympa {
class variable {
- $vhost = "ml.$domain"
+ $vhost = "ml.$::domain"
}
class server inherits variable {
# perl-CGI-Fast is needed for fast cgi
# perl-Socket6 is required by perl-IO-Socket-SSL
# (optional requirement)
- package { ['sympa', 'sympa-www', 'perl-CGI-Fast',
- 'perl-Socket6']: }
+ package {['sympa',
+ 'sympa-www',
+ 'perl-CGI-Fast',
+ 'perl-Socket6']: }
# sympa script start 5 differents script, I am not
# sure that puppet will correctly handle this
- service { "sympa":
- subscribe => [ Package["sympa"], File['/etc/sympa/sympa.conf']]
+ service { 'sympa':
+ subscribe => [ Package['sympa'], File['/etc/sympa/sympa.conf']]
}
- $pgsql_password = extlookup("sympa_pgsql",'x')
- $ldap_password = extlookup("sympa_ldap",'x')
+ $pgsql_password = extlookup('sympa_pgsql','x')
+ $ldap_password = extlookup('sympa_ldap','x')
postgresql::remote_db_and_user { 'sympa':
- password => $pgsql_password,
- description => "Sympa database",
+ password => $pgsql_password,
+ description => 'Sympa database',
}
File {
@@ -29,57 +31,57 @@ class sympa {
}
file { '/etc/sympa/sympa.conf':
- # 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"),
+ # 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 => '0640',
+ content => template('sympa/sympa.conf'),
}
file { '/etc/sympa/auth.conf':
- content => template("sympa/auth.conf"),
- notify => Service['httpd'],
+ content => template('sympa/auth.conf'),
+ notify => Service['httpd'],
}
include apache::mod_fcgid
- apache::webapp_other{"sympa":
- webapp_file => "sympa/webapp_sympa.conf",
+ apache::webapp_other { 'sympa':
+ webapp_file => 'sympa/webapp_sympa.conf',
}
- apache::vhost_redirect_ssl { "$vhost": }
+ apache::vhost_redirect_ssl { $sympa::variable::vhost: }
- apache::vhost_base { "$vhost":
+ apache::vhost_base { $sympa::variable::vhost:
use_ssl => true,
- content => template("sympa/vhost_ml.conf"),
+ content => template('sympa/vhost_ml.conf'),
}
- subversion::snapshot { "/etc/sympa/web_tt2":
- source => "svn://svn.mageia.org/svn/web/templates/sympa/trunk"
+ subversion::snapshot { '/etc/sympa/web_tt2':
+ source => 'svn://svn.mageia.org/svn/web/templates/sympa/trunk',
}
- file { ["/etc/sympa/lists_xml/",
- "/etc/sympa/scenari/",
- "/etc/sympa/data_sources/",
- "/etc/sympa/search_filters/"]:
- ensure => directory,
- purge => true,
+ file { ['/etc/sympa/lists_xml/',
+ '/etc/sympa/scenari/',
+ '/etc/sympa/data_sources/',
+ '/etc/sympa/search_filters/']:
+ ensure => directory,
+ purge => true,
recurse => true,
- force => true,
+ force => true,
}
file {
- "/etc/sympa/scenari/subscribe.open_web_only_notify":
- source => "puppet:///modules/sympa/scenari/open_web_only_notify";
- "/etc/sympa/scenari/unsubscribe.open_web_only_notify":
- source => "puppet:///modules/sympa/scenari/open_web_only_notify";
- "/etc/sympa/scenari/send.subscriber_moderated":
- source => "puppet:///modules/sympa/scenari/subscriber_moderated";
- "/etc/sympa/scenari/create_list.forbidden":
- source => "puppet:///modules/sympa/scenari/forbidden";
- "/etc/sympa/topics.conf":
- source => "puppet:///modules/sympa/topics.conf";
+ '/etc/sympa/scenari/subscribe.open_web_only_notify':
+ source => 'puppet:///modules/sympa/scenari/open_web_only_notify';
+ '/etc/sympa/scenari/unsubscribe.open_web_only_notify':
+ source => 'puppet:///modules/sympa/scenari/open_web_only_notify';
+ '/etc/sympa/scenari/send.subscriber_moderated':
+ source => 'puppet:///modules/sympa/scenari/subscriber_moderated';
+ '/etc/sympa/scenari/create_list.forbidden':
+ source => 'puppet:///modules/sympa/scenari/forbidden';
+ '/etc/sympa/topics.conf':
+ source => 'puppet:///modules/sympa/topics.conf';
}
define ldap_search_filter {
@@ -91,15 +93,15 @@ class sympa {
# add each group that could be used in a sympa ml either as
# - owner
# - editor ( moderation )
- sympa::datasource::ldap_group { "mga-sysadmin": }
- sympa::datasource::ldap_group { "mga-ml_moderators": }
+ sympa::datasource::ldap_group { 'mga-sysadmin': }
+ sympa::datasource::ldap_group { 'mga-ml_moderators': }
# directory that will hold the list data
# i am not sure of the name ( misc, 09/12/10 )
- file { "/var/lib/sympa/expl/":
+ file { '/var/lib/sympa/expl/':
ensure => directory,
- owner => sympa,
+ owner => 'sympa',
}
}
}