LEFT | RIGHT |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 122 |
123 # | 123 # http://hub.eyeo.com/issues/9222 |
124 cron {'rietveld#restart': | 124 cron {'rietveld#restart': |
125 command => join([ | 125 command => join([ |
126 'service rietveld stop | grep -v "^Stopping rietveld"', | 126 'service rietveld stop | grep -v "^Stopping rietveld"', |
127 'sleep 10', | 127 'sleep 10', |
128 'service rietveld start | grep -v "^Starting rietveld"', | 128 'service rietveld start | grep -v "^Starting rietveld"', |
129 ], '; '), | 129 ], '; '), |
130 hour => 5, | 130 hour => 5, |
131 minute => 8, | 131 minute => 8, |
132 user => 'root', | 132 user => 'root', |
133 } | 133 } |
134 } | 134 } |
LEFT | RIGHT |