OLD | NEW |
1 class discourse inherits private::discourse { | 1 class discourse inherits private::discourse { |
2 include postgresql::server | 2 include postgresql::server |
3 | 3 |
4 postgresql::database {'discourse':} | 4 postgresql::database {'discourse':} |
5 | 5 |
6 postgresql::role {'discourse': | 6 postgresql::role {'discourse': |
7 password_hash => $database_password, | 7 password_hash => $database_password, |
8 db => 'discourse', | 8 db => 'discourse', |
9 login => true, | 9 login => true, |
10 superuser => true | 10 superuser => true |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 type => 1, | 155 type => 1, |
156 value => 'Eyeo' | 156 value => 'Eyeo' |
157 } | 157 } |
158 | 158 |
159 discourse::sitesetting {'company_domain': | 159 discourse::sitesetting {'company_domain': |
160 ensure => present, | 160 ensure => present, |
161 type => 1, | 161 type => 1, |
162 value => 'eyeo.com' | 162 value => 'eyeo.com' |
163 } | 163 } |
164 | 164 |
165 discourse::sitesetting {'secret_token': | 165 discourse::sitesetting {'restrict_access': |
| 166 ensure => present, |
| 167 type => 5, |
| 168 value => 't' |
| 169 } |
| 170 |
| 171 discourse::sitesetting {'access_password': |
166 ensure => present, | 172 ensure => present, |
167 type => 1, | 173 type => 1, |
168 value => $cookie_secret | 174 value => $access_password |
169 } | 175 } |
170 | 176 |
171 Discourse::Postactiontype <| |> { | 177 Discourse::Postactiontype <| |> { |
172 require => Exec['/usr/local/bin/init-discourse'] | 178 require => Exec['/usr/local/bin/init-discourse'] |
173 } | 179 } |
174 | 180 |
175 discourse::postactiontype {'bookmark': | 181 discourse::postactiontype {'bookmark': |
176 ensure => present, | 182 ensure => present, |
177 id => 1, | 183 id => 1, |
178 position => 1 | 184 position => 1 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 source => 'puppet:///modules/discourse/intraforum.adblockplus.org', | 282 source => 'puppet:///modules/discourse/intraforum.adblockplus.org', |
277 enabled => true | 283 enabled => true |
278 } | 284 } |
279 | 285 |
280 file {'/etc/logrotate.d/nginx_intraforum.adblockplus.org': | 286 file {'/etc/logrotate.d/nginx_intraforum.adblockplus.org': |
281 ensure => file, | 287 ensure => file, |
282 require => Nginx::Hostconfig['intraforum.adblockplus.org'], | 288 require => Nginx::Hostconfig['intraforum.adblockplus.org'], |
283 source => 'puppet:///modules/discourse/logrotate' | 289 source => 'puppet:///modules/discourse/logrotate' |
284 } | 290 } |
285 } | 291 } |
OLD | NEW |