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

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

Issue 5735669590654976: #753 - set up an order system to let eyeo employees file order requests (Closed)
Patch Set: #753 - set up an order system to let eyeo employees file order requests Created July 15, 2014, 2:49 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 | « modules/trac/files/order-permissions.csv ('k') | modules/trac/templates/orders.ini.erb » ('j') | 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 $description = "Issue Tracker",
6 $configuration = "trac/trac.ini.erb",
7 $permissions = "puppet:///modules/trac/permissions.csv",
5 $is_default = false) inherits private::trac { 8 $is_default = false) inherits private::trac {
6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: 9 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
7 ensure => present 10 ensure => present
8 } 11 }
9 12
10 include nginx, spawn-fcgi 13 include nginx, spawn-fcgi
11 14
12 nginx::hostconfig {$domain: 15 nginx::hostconfig {$domain:
13 source => 'puppet:///modules/trac/site.conf', 16 source => 'puppet:///modules/trac/site.conf',
14 is_default => $is_default, 17 is_default => $is_default,
(...skipping 27 matching lines...) Expand all
42 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin', 45 path => '/usr/bin:/usr/sbin:/bin:/usr/local/bin',
43 } 46 }
44 47
45 exec { 'install_trac': 48 exec { 'install_trac':
46 command => "pip install Trac==1.0.1", 49 command => "pip install Trac==1.0.1",
47 require => Package['python-pip'], 50 require => Package['python-pip'],
48 unless => "python -c 'import trac,sys;sys.exit(0 if trac.__version__ == \"1. 0.1\" else 1)'", 51 unless => "python -c 'import trac,sys;sys.exit(0 if trac.__version__ == \"1. 0.1\" else 1)'",
49 } 52 }
50 53
51 exec { 'trac_env': 54 exec { 'trac_env':
52 command => "trac-admin /home/trac/environment initenv \"Adblock Plus issue t racker\" mysql://trac:${database_password}@localhost:3306/trac", 55 command => "trac-admin /home/trac/environment initenv \"$description\" mysql ://trac:${database_password}@localhost:3306/trac",
53 require => [ 56 require => [
54 Exec['install_trac'], 57 Exec['install_trac'],
55 Mysql_grant['trac@localhost/trac.*'] 58 Mysql_grant['trac@localhost/trac.*']
56 ], 59 ],
57 user => trac, 60 user => trac,
58 unless => "test -d /home/trac/environment" 61 unless => "test -d /home/trac/environment"
59 } 62 }
60 63
61 exec { 'install_BlackMagicTicketTweaks': 64 exec { 'install_BlackMagicTicketTweaks':
62 command => "pip install svn+http://trac-hacks.org/svn/blackmagictickettweaks plugin/0.12/", 65 command => "pip install svn+http://trac-hacks.org/svn/blackmagictickettweaks plugin/0.12/",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 exec { 'install_TracSpamFilter': 116 exec { 'install_TracSpamFilter':
114 command => "pip install svn+http://svn.edgewall.com/repos/trac/plugins/1.0/s pam-filter", 117 command => "pip install svn+http://svn.edgewall.com/repos/trac/plugins/1.0/s pam-filter",
115 require => Package[ 118 require => Package[
116 'spambayes', 119 'spambayes',
117 'python-pip'], 120 'python-pip'],
118 unless => "python -c 'import tracspamfilter'", 121 unless => "python -c 'import tracspamfilter'",
119 } 122 }
120 123
121 file {"/home/trac/environment/conf/trac.ini": 124 file {"/home/trac/environment/conf/trac.ini":
122 ensure => present, 125 ensure => present,
123 content => template('trac/trac.ini.erb'), 126 content => template($configuration),
124 owner => trac, 127 owner => trac,
125 require => Exec['trac_env'] 128 require => Exec['trac_env']
126 } 129 }
127 130
128 exec { 'install_Tractags': 131 exec { 'install_Tractags':
129 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/", 132 command => "pip install svn+http://trac-hacks.org/svn/tagsplugin/tags/0.7/",
130 require => Package['python-pip'], 133 require => Package['python-pip'],
131 unless => "python -c 'import tractags'", 134 unless => "python -c 'import tractags'",
132 } 135 }
133 136
134 file {"/home/trac/htdocs/htdocs/common/adblockplus_logo.png": 137 file {"/home/trac/htdocs/htdocs/common/adblockplus_logo.png":
135 ensure => present, 138 ensure => present,
136 source => 'puppet:///modules/trac/adblockplus_logo.png', 139 source => 'puppet:///modules/trac/adblockplus_logo.png',
137 owner => trac, 140 owner => trac,
138 require => Exec['deploy'] 141 require => Exec['deploy']
139 } 142 }
140 143
144 file {"/home/trac/htdocs/htdocs/common/eyeo_logo.png":
145 ensure => present,
146 source => 'puppet:///modules/trac/eyeo_logo.png',
147 owner => trac,
148 require => Exec['deploy']
149 }
150
141 file {"/home/trac/environment/htdocs/theme.css": 151 file {"/home/trac/environment/htdocs/theme.css":
142 ensure => present, 152 ensure => present,
143 source => 'puppet:///modules/trac/theme.css', 153 source => 'puppet:///modules/trac/theme.css',
144 owner => trac, 154 owner => trac,
145 require => Exec['trac_env'] 155 require => Exec['trac_env']
146 } 156 }
147 157
148 exec {"update_env": 158 exec {"update_env":
149 command => "trac-admin /home/trac/environment upgrade", 159 command => "trac-admin /home/trac/environment upgrade",
150 user => trac, 160 user => trac,
(...skipping 25 matching lines...) Expand all
176 socket => "/tmp/trac-fastcgi.sock", 186 socket => "/tmp/trac-fastcgi.sock",
177 mode => "0666", 187 mode => "0666",
178 user => trac, 188 user => trac,
179 children => 1, 189 children => 1,
180 require => Exec['deploy'], 190 require => Exec['deploy'],
181 } 191 }
182 192
183 file {"/home/trac/permissions.csv": 193 file {"/home/trac/permissions.csv":
184 ensure => present, 194 ensure => present,
185 owner => trac, 195 owner => trac,
186 source => 'puppet:///modules/trac/permissions.csv' 196 source => $permissions,
187 } 197 }
188
189 } 198 }
OLDNEW
« no previous file with comments | « modules/trac/files/order-permissions.csv ('k') | modules/trac/templates/orders.ini.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld