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

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

Issue 5699298977120256: Issue #469 Ensured Trac to be provisioned with Trac version 1.0.1 (Closed)
Patch Set: Created May 13, 2014, 7:25 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 trac( 1 class trac(
2 $domain, 2 $domain,
3 $certificate, 3 $certificate,
4 $private_key, 4 $private_key,
5 $is_default = false) inherits private::trac { 5 $is_default = false) inherits private::trac {
6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: 6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
7 ensure => present 7 ensure => present
8 } 8 }
9 9
10 include nginx, spawn-fcgi 10 include nginx, spawn-fcgi
(...skipping 25 matching lines...) Expand all
36 charset => 'utf8', 36 charset => 'utf8',
37 collate => 'utf8_bin', 37 collate => 'utf8_bin',
38 require => Class['mysql::server'] 38 require => Class['mysql::server']
39 } 39 }
40 40
41 Exec { 41 Exec {
42 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', 42 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
43 } 43 }
44 44
45 exec { 'install_trac': 45 exec { 'install_trac':
46 command => "pip install Trac==1.0", 46 command => "pip install Trac==1.0.1",
47 require => Package['python-pip'], 47 require => Package['python-pip'],
48 unless => "python -c 'import trac,sys;sys.exit(0 if trac.__version__ == \"1. 0\" else 1)'", 48 unless => "python -c 'import trac,sys;sys.exit(0 if trac.__version__ == \"1. 0.1\" else 1)'",
49 } 49 }
50 50
51 exec { 'trac_env': 51 exec { 'trac_env':
52 command => "trac-admin /home/trac/environment initenv \"Adblock Plus issue t racker\" mysql://trac:${database_password}@localhost:3306/trac", 52 command => "trac-admin /home/trac/environment initenv \"Adblock Plus issue t racker\" mysql://trac:${database_password}@localhost:3306/trac",
53 require => [ 53 require => [
54 Exec['install_trac'], 54 Exec['install_trac'],
55 Mysql_grant['trac@localhost/trac.*'] 55 Mysql_grant['trac@localhost/trac.*']
56 ], 56 ],
57 user => trac, 57 user => trac,
58 unless => "test -d /home/trac/environment" 58 unless => "test -d /home/trac/environment"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 require => Exec['deploy'], 160 require => Exec['deploy'],
161 } 161 }
162 162
163 file {"/home/trac/permissions.csv": 163 file {"/home/trac/permissions.csv":
164 ensure => present, 164 ensure => present,
165 owner => trac, 165 owner => trac,
166 source => 'puppet:///modules/trac/permissions.csv' 166 source => 'puppet:///modules/trac/permissions.csv'
167 } 167 }
168 168
169 } 169 }
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