/[adm]/puppet/manifests/nodes/alamut.pp
ViewVC logotype

Contents of /puppet/manifests/nodes/alamut.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3412 - (show annotations) (download)
Mon Feb 10 09:25:52 2014 UTC (7 years, 7 months ago) by colin
File size: 3611 byte(s)
alamut: Remove rsyncing from git.

Add in notification of the 'on-the-pull' system for mirroring
in post-commit hook.
1 # web apps
2 node alamut {
3 # Location: IELO datacenter (marseille)
4 #
5 # TODO:
6 # - Review board
7 # - api
8 # - pastebin
9 # - LDAP slave
10 #
11 include common::default_mageia_server_no_smtp
12 include postgresql::server
13 postgresql::tagged { 'default': }
14
15 timezone::timezone { 'Europe/Paris': }
16
17 include catdap
18 include mga-mirrors
19
20 class {'epoll::var':
21 db_password => extlookup('epoll_pgsql','x'),
22 }
23 include epoll
24 include epoll::create_db
25
26 include bugzilla
27 include sympa::server
28 include postfix::server::primary
29
30 # temporary, just the time the vm is running there
31 host { 'friteuse':
32 ensure => 'present',
33 ip => '192.168.122.131',
34 host_aliases => [ "friteuse.$domain", "forums.$domain" ],
35 }
36
37 # to create all phpbb database on alamut
38 phpbb::databases { $fqdn: }
39
40 apache::vhost::redirect_ssl { "forums.$domain": }
41 apache::vhost_redirect { "forum.$domain":
42 url => "https://forums.$domain/",
43 }
44 apache::vhost_redirect { "ssl_forum.$domain":
45 url => "https://forums.$domain/",
46 vhost => "forum.$domain",
47 use_ssl => true,
48 }
49
50 # connect to ssl so the proxy do not shoke if trying to
51 # enforce ssl ( note that this has not been tested, maybe this
52 # is uneeded )
53 apache::vhost::reverse_proxy { "ssl_forums.$domain":
54 url => "https://forums.$domain/",
55 vhost => "forums.$domain",
56 use_ssl => true,
57 content => '
58 RewriteEngine On
59 RewriteCond %{QUERY_STRING} mode=register
60 RewriteRule .*ucp.php - [forbidden]
61 ',
62 }
63
64 include tld_redirections
65
66 include libvirtd::kvm
67 include lists
68 include dns::server
69 include repositories::svn_mirror
70 include viewvc
71
72 # disabled until fixed
73 #Enable back to test.
74 include repositories::git_mirror
75 include cgit
76 include gitmirror
77
78 include xymon::server
79 apache::vhost_simple { "xymon.$domain":
80 location => '/var/lib/xymon/www',
81 }
82
83 youri-check::report_www { 'check': }
84
85 youri-check::config {'config_cauldron':
86 version => 'cauldron',
87 }
88 youri-check::report { 'report_cauldron':
89 version => 'cauldron',
90 hour => '*',
91 minute => '24'
92 }
93
94 youri-check::config {'config_1':
95 version => '1',
96 }
97 youri-check::report {'report_1':
98 version => '1',
99 hour => '*',
100 minute => '54'
101 }
102
103 youri-check::config {'config_2':
104 version => '2',
105 }
106 youri-check::report {'report_2':
107 version => '2',
108 hour => '*',
109 minute => '9'
110 }
111
112 include wikis
113 include websites::perl
114 include websites::www
115
116 class { 'mgapeople':
117 ldap_server => 'ldap.mageia.org',
118 binddn => 'cn=mgapeople-alamut,ou=System Accounts,dc=mageia,dc=org',
119 bindpw => extlookup('mgapeople_ldap','x'),
120 vhost => 'people.mageia.org',
121 vhostdir => '/var/www/vhosts/people.mageia.org',
122 maintdburl => 'http://pkgsubmit.mageia.org/data/maintdb.txt',
123 }
124
125 class { 'mga-treasurer':
126 vhost => 'treasurer.mageia.org',
127 vhostdir => '/var/www/vhosts/treasurer.mageia.org',
128 }
129
130 # Forward ports to arm1 and arm2 ssh, to access them from outside
131 xinetd::port_forward {"forward_arm1":
132 target_ip => 'arm1.mageia.org',
133 target_port => '22',
134 port => '4251',
135 proto => 'tcp',
136 }
137 xinetd::port_forward {"forward_arm2":
138 target_ip => 'arm2.mageia.org',
139 target_port => '22',
140 port => '4252',
141 proto => 'tcp',
142 }
143 }

Properties

Name Value
svn:keywords ID Date Rev

  ViewVC Help
Powered by ViewVC 1.1.28