/[adm]/puppet/modules/sympa/manifests/server.pp
ViewVC logotype

Annotation of /puppet/modules/sympa/manifests/server.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2701 - (hide annotations) (download)
Mon Apr 2 11:05:23 2012 UTC (9 years, 5 months ago) by misc
File size: 3006 byte(s)
finish to clean sympa module
1 misc 2701 class sympa::server {
2     include sympa::variable
3     # perl-CGI-Fast is needed for fast cgi
4     # perl-Socket6 is required by perl-IO-Socket-SSL
5     # (optional requirement)
6     package {['sympa',
7     'sympa-www',
8     'perl-CGI-Fast',
9     'perl-Socket6']: }
10    
11     # sympa script start 5 differents script, I am not
12     # sure that puppet will correctly handle this
13     service { 'sympa':
14     subscribe => [ Package['sympa'], File['/etc/sympa/sympa.conf']]
15     }
16    
17     $pgsql_password = extlookup('sympa_pgsql','x')
18     $ldap_password = extlookup('sympa_ldap','x')
19    
20     postgresql::remote_db_and_user { 'sympa':
21     password => $pgsql_password,
22     description => 'Sympa database',
23     }
24    
25     File {
26     require => Package['sympa'],
27     }
28    
29     file { '/etc/sympa/sympa.conf':
30     # should be cleaner to have it root owned, but puppet do not support acl
31     # and in any case, config will be reset if it change
32     owner => 'sympa',
33     group => 'apache',
34     mode => '0640',
35     content => template('sympa/sympa.conf'),
36     }
37    
38     file { '/etc/sympa/auth.conf':
39     content => template('sympa/auth.conf'),
40     notify => Service['httpd'],
41     }
42    
43    
44     include apache::mod::fcgid
45     apache::webapp_other { 'sympa':
46     webapp_file => 'sympa/webapp_sympa.conf',
47     }
48    
49     apache::vhost::redirect_ssl { $sympa::variable::vhost: }
50    
51     apache::vhost::base { $sympa::variable::vhost:
52     use_ssl => true,
53     content => template('sympa/vhost_ml.conf'),
54     }
55    
56     subversion::snapshot { '/etc/sympa/web_tt2':
57     source => 'svn://svn.mageia.org/svn/web/templates/sympa/trunk',
58     }
59    
60     file { ['/etc/sympa/lists_xml/',
61     '/etc/sympa/scenari/',
62     '/etc/sympa/data_sources/',
63     '/etc/sympa/search_filters/']:
64     ensure => directory,
65     purge => true,
66     recurse => true,
67     force => true,
68     }
69    
70     file {
71     '/etc/sympa/scenari/subscribe.open_web_only_notify':
72     source => 'puppet:///modules/sympa/scenari/open_web_only_notify';
73     '/etc/sympa/scenari/unsubscribe.open_web_only_notify':
74     source => 'puppet:///modules/sympa/scenari/open_web_only_notify';
75     '/etc/sympa/scenari/send.subscriber_moderated':
76     source => 'puppet:///modules/sympa/scenari/subscriber_moderated';
77     '/etc/sympa/scenari/create_list.forbidden':
78     source => 'puppet:///modules/sympa/scenari/forbidden';
79     '/etc/sympa/topics.conf':
80     source => 'puppet:///modules/sympa/topics.conf';
81     }
82    
83     # add each group that could be used in a sympa ml either as
84     # - owner
85     # - editor ( moderation )
86     sympa::datasource::ldap_group { 'mga-sysadmin': }
87     sympa::datasource::ldap_group { 'mga-ml_moderators': }
88    
89    
90     # directory that will hold the list data
91     # i am not sure of the name ( misc, 09/12/10 )
92     file { '/var/lib/sympa/expl/':
93     ensure => directory,
94     owner => 'sympa',
95     }
96     }

  ViewVC Help
Powered by ViewVC 1.1.28