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

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

Issue 6155422901731328: Run Rietveld using the AppEngine SDK (Closed)
Left Patch Set: Added missing file and a comment Created June 3, 2015, 4:32 p.m.
Right Patch Set: Addressed comments and added caching Created June 4, 2015, 9:19 p.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
LEFTRIGHT
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 $database = hiera('rietveld::database', {
11 'engine' => 'sqlite3',
12 'name' => 'dev.db',
13 }),
14 ) { 10 ) {
15 11
16 include nginx 12 include nginx
17 $rietveld_home = '/opt/rietveld' 13 $rietveld_home = '/opt/rietveld'
18 14
19 Exec { 15 Exec {
20 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', 16 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
21 } 17 }
22 18
23 nginx::hostconfig {$domain: 19 nginx::hostconfig {$domain:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 file {'config.ini': 99 file {'config.ini':
104 path => '/var/lib/rietveld/config.ini', 100 path => '/var/lib/rietveld/config.ini',
105 ensure => file, 101 ensure => file,
106 owner => 'root', 102 owner => 'root',
107 content => template('rietveld/config.ini.erb'), 103 content => template('rietveld/config.ini.erb'),
108 notify => Service['rietveld'], 104 notify => Service['rietveld'],
109 } 105 }
110 106
111 customservice {'rietveld': 107 customservice {'rietveld':
112 command => "/opt/wrappers/dev_appserver.py \ 108 command => "/opt/wrappers/dev_appserver.py \
113 --skip_sdk_update_check --port 8080 ${rietveld_home}", 109 --enable_sendmail --skip_sdk_update_check
110 --port 8080 ${rietveld_home}",
114 user => 'rietveld', 111 user => 'rietveld',
115 require => [ 112 require => [
116 Exec['install_appengine', 'setup_rietveld'], 113 Exec['install_appengine', 'setup_rietveld'],
117 File['dev_appserver.py', '_python_runtime.py', 'config.ini'], 114 File['dev_appserver.py', '_python_runtime.py', 'config.ini'],
118 ], 115 ],
119 } 116 }
120 } 117 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld