Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: modules/discourse/manifests/init.pp

Issue 6221863587938304: Issue 212 - Update Discourse (Closed)
Left Patch Set: Fixed ordering issue, somewhat organized packages Created March 27, 2014, 10:15 p.m.
Right Patch Set: Disabled mini profiler Created March 28, 2014, 11:51 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « modules/discourse/manifests/admin.pp ('k') | modules/discourse/manifests/postactiontype.pp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 class discourse( 1 class discourse(
2 $domain, 2 $domain,
3 $is_default = false 3 $is_default = false
4 ) inherits private::discourse { 4 ) inherits private::discourse {
5 5
6 include postgresql::server 6 include postgresql::server
7 7
8 postgresql::database {'discourse':} 8 postgresql::database {'discourse':}
9 9
10 postgresql::role {'discourse': 10 postgresql::role {'discourse':
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 type => 5, 249 type => 5,
250 value => 't' 250 value => 't'
251 } 251 }
252 252
253 discourse::sitesetting {'white_listed_spam_host_domains': 253 discourse::sitesetting {'white_listed_spam_host_domains':
254 ensure => present, 254 ensure => present,
255 type => 1, 255 type => 1,
256 value => 'adblockplus.org,eyeo.com' 256 value => 'adblockplus.org,eyeo.com'
257 } 257 }
258 258
259 Discourse::Postactiontype <| |> {
260 require => Exec['/usr/local/bin/init-discourse']
261 }
262
263 discourse::postactiontype {'bookmark':
264 ensure => present,
265 id => 1,
266 position => 1
267 }
268
269 discourse::postactiontype {'like':
270 ensure => present,
271 id => 2,
272 position => 2,
273 icon => 'heart'
274 }
275
276 discourse::postactiontype {'off_topic':
277 ensure => present,
278 id => 3,
279 position => 3,
280 is_flag => true
281 }
282
283 discourse::postactiontype {'inappropriate':
284 ensure => present,
285 id => 4,
286 position => 4,
287 is_flag => true
288 }
289
290 discourse::postactiontype {'vote':
291 ensure => present,
292 position => 5,
293 id => 5
294 }
295
296 discourse::postactiontype {'custom_flag':
297 ensure => present,
298 id => 6,
299 position => 7,
300 is_flag => true
301 }
302
303 discourse::postactiontype {'spam':
304 ensure => present,
305 id => 7,
306 position => 6,
307 is_flag => true
308 }
309
310 Discourse::Customservice <| |> { 259 Discourse::Customservice <| |> {
311 user => 'discourse', 260 user => 'discourse',
312 workdir => '/opt/discourse', 261 workdir => '/opt/discourse',
313 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000', 262 env => ['RAILS_ENV=production', 'RUBY_GC_MALLOC_LIMIT=90000000',
314 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'], 263 'UNICORN_WORKERS=2', 'LD_PRELOAD=/usr/lib/libjemalloc.so.1'],
315 require => Exec['/usr/local/bin/init-discourse'] 264 require => Exec['/usr/local/bin/init-discourse']
316 } 265 }
317 266
318 discourse::customservice {'discourse': 267 discourse::customservice {'discourse':
319 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb', 268 command => 'bundle exec config/unicorn_launcher -c config/unicorn.conf.rb',
(...skipping 30 matching lines...) Expand all
350 content => template('discourse/site.erb'), 299 content => template('discourse/site.erb'),
351 enabled => true 300 enabled => true
352 } 301 }
353 302
354 file {"/etc/logrotate.d/nginx_$domain": 303 file {"/etc/logrotate.d/nginx_$domain":
355 ensure => file, 304 ensure => file,
356 require => Nginx::Hostconfig[$domain], 305 require => Nginx::Hostconfig[$domain],
357 source => 'puppet:///modules/discourse/logrotate' 306 source => 'puppet:///modules/discourse/logrotate'
358 } 307 }
359 } 308 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld