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

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

Issue 29726555: #9222 - Restart service rietveld daily (Closed)
Patch Set: Add missing ticket reference in comment section Created March 18, 2018, 2:29 p.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 rietveld( 1 class rietveld(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default = false, 5 $is_default = false,
6 $secret_key = hiera('rietveld::secret_key', ''), 6 $secret_key = hiera('rietveld::secret_key', ''),
7 $admins = hiera('rietveld::admins', []), 7 $admins = hiera('rietveld::admins', []),
8 $oauth2_client_id = hiera('rietveld::oauth2_client_id', ''), 8 $oauth2_client_id = hiera('rietveld::oauth2_client_id', ''),
9 $oauth2_client_secret = hiera('rietveld::oauth2_client_secret', ''), 9 $oauth2_client_secret = hiera('rietveld::oauth2_client_secret', ''),
10 ) { 10 ) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 customservice {'rietveld': 112 customservice {'rietveld':
113 command => "/opt/wrappers/dev_appserver.py \ 113 command => "/opt/wrappers/dev_appserver.py \
114 --enable_sendmail --skip_sdk_update_check 114 --enable_sendmail --skip_sdk_update_check
115 --port 8080 ${rietveld_home}", 115 --port 8080 ${rietveld_home}",
116 user => 'rietveld', 116 user => 'rietveld',
117 require => [ 117 require => [
118 Exec['install_appengine', 'setup_rietveld'], 118 Exec['install_appengine', 'setup_rietveld'],
119 File['dev_appserver.py', '_python_runtime.py', 'config.ini'], 119 File['dev_appserver.py', '_python_runtime.py', 'config.ini'],
120 ], 120 ],
121 } 121 }
122
123 # http://hub.eyeo.com/issues/9222
124 cron {'rietveld#restart':
125 command => join([
126 'service rietveld stop | grep -v "^Stopping rietveld"',
127 'sleep 10',
128 'service rietveld start | grep -v "^Starting rietveld"',
129 ], '; '),
130 hour => 5,
131 minute => 8,
132 user => 'root',
133 }
122 } 134 }
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