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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2700 - (hide annotations) (download)
Mon Apr 2 11:05:21 2012 UTC (12 years ago) by misc
File size: 3321 byte(s)
split variable from main sympa module
1 dmorgan 234 class sympa {
2 misc 562 class server inherits variable {
3 misc 551 # perl-CGI-Fast is needed for fast cgi
4     # perl-Socket6 is required by perl-IO-Socket-SSL
5     # (optional requirement)
6 misc 2612 package {['sympa',
7     'sympa-www',
8     'perl-CGI-Fast',
9     'perl-Socket6']: }
10 misc 2295
11 misc 551 # sympa script start 5 differents script, I am not
12     # sure that puppet will correctly handle this
13 misc 2612 service { 'sympa':
14     subscribe => [ Package['sympa'], File['/etc/sympa/sympa.conf']]
15 misc 551 }
16 misc 2605
17 misc 2612 $pgsql_password = extlookup('sympa_pgsql','x')
18     $ldap_password = extlookup('sympa_ldap','x')
19 misc 2605
20 misc 1356 postgresql::remote_db_and_user { 'sympa':
21 misc 2612 password => $pgsql_password,
22     description => 'Sympa database',
23 misc 551 }
24 misc 2296
25     File {
26     require => Package['sympa'],
27     }
28    
29 misc 551 file { '/etc/sympa/sympa.conf':
30 misc 2612 # 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 misc 551 }
37 misc 2605
38 misc 551 file { '/etc/sympa/auth.conf':
39 misc 2612 content => template('sympa/auth.conf'),
40     notify => Service['httpd'],
41 misc 551 }
42 misc 2605
43    
44 misc 2682 include apache::mod::fcgid
45 misc 2612 apache::webapp_other { 'sympa':
46     webapp_file => 'sympa/webapp_sympa.conf',
47 misc 551 }
48 misc 2605
49 misc 2691 apache::vhost::redirect_ssl { $sympa::variable::vhost: }
50 misc 2605
51 misc 2691 apache::vhost::base { $sympa::variable::vhost:
52 misc 2295 use_ssl => true,
53 misc 2612 content => template('sympa/vhost_ml.conf'),
54 misc 551 }
55 misc 2605
56 misc 2612 subversion::snapshot { '/etc/sympa/web_tt2':
57     source => 'svn://svn.mageia.org/svn/web/templates/sympa/trunk',
58 misc 551 }
59 misc 553
60 misc 2612 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 misc 635 recurse => true,
67 misc 2612 force => true,
68 misc 553 }
69 misc 569
70 misc 2299 file {
71 misc 2612 '/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 misc 588 }
82    
83 misc 2605 # add each group that could be used in a sympa ml either as
84 misc 574 # - owner
85     # - editor ( moderation )
86 misc 2612 sympa::datasource::ldap_group { 'mga-sysadmin': }
87     sympa::datasource::ldap_group { 'mga-ml_moderators': }
88 misc 574
89 misc 576
90 misc 569 # directory that will hold the list data
91     # i am not sure of the name ( misc, 09/12/10 )
92 misc 2612 file { '/var/lib/sympa/expl/':
93 misc 569 ensure => directory,
94 misc 2612 owner => 'sympa',
95 misc 569 }
96 dmorgan 234 }
97     }

  ViewVC Help
Powered by ViewVC 1.1.30