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 $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 Loading... |
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 } |
LEFT | RIGHT |