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

Side by Side Diff: modules/discourse/manifests/init.pp

Issue 29329427: Issue 3242 - Upgrade to Discourse 1.4.2 (Closed)
Patch Set: Created Oct. 28, 2015, 11:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class discourse( 1 class discourse(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default = false 5 $is_default = false
6 ) inherits private::discourse { 6 ) inherits private::discourse {
7 7
8 class { 'postgresql::globals': 8 class { 'postgresql::globals':
9 manage_package_repo => true, 9 manage_package_repo => true,
10 version => '9.3', 10 version => '9.3',
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 before => Exec['init-discourse'], 134 before => Exec['init-discourse'],
135 } 135 }
136 136
137 file {'/opt/discourse/config/version.rb': 137 file {'/opt/discourse/config/version.rb':
138 ensure => present, 138 ensure => present,
139 owner => discourse, 139 owner => discourse,
140 group => www-data, 140 group => www-data,
141 141
142 # This is hardcoded here so that Discourse doesn't try to extract it from 142 # This is hardcoded here so that Discourse doesn't try to extract it from
143 # the repository. Ideally, we should update it when updating Discourse. 143 # the repository. Ideally, we should update it when updating Discourse.
144 content => '$git_version = "8a3a02421a39f53b6adf3ca9a6fdba73f42bc932"', 144 content => '$git_version = "a324c71869cad20a40f7979354cd731041878276"',
145 require => Exec['fetch-discourse'], 145 require => Exec['fetch-discourse'],
146 before => Exec['init-discourse'], 146 before => Exec['init-discourse'],
147 } 147 }
148 148
149 exec {'init-discourse': 149 exec {'init-discourse':
150 command => 'rvm default do /usr/local/bin/init-discourse', 150 command => 'rvm default do /usr/local/bin/init-discourse',
151 tag => 'rvm', 151 tag => 'rvm',
152 subscribe => File['/usr/local/bin/init-discourse'], 152 subscribe => File['/usr/local/bin/init-discourse'],
153 refreshonly => true, 153 refreshonly => true,
154 timeout => 0, 154 timeout => 0,
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 global_config => ' 347 global_config => '
348 upstream discourse { 348 upstream discourse {
349 server localhost:3000; 349 server localhost:3000;
350 }', 350 }',
351 is_default => $is_default, 351 is_default => $is_default,
352 certificate => $certificate, 352 certificate => $certificate,
353 private_key => $private_key, 353 private_key => $private_key,
354 log => 'access_log_intraforum' 354 log => 'access_log_intraforum'
355 } 355 }
356 } 356 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld