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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/manifests/init.pp
===================================================================
--- a/modules/trac/manifests/init.pp
+++ b/modules/trac/manifests/init.pp
@@ -2,6 +2,9 @@
$domain,
$certificate,
$private_key,
+ $description = "Issue Tracker",
+ $configuration = "trac/trac.ini.erb",
+ $permissions = "puppet:///modules/trac/permissions.csv",
$is_default = false) inherits private::trac {
package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
ensure => present
@@ -49,7 +52,7 @@
}
exec { 'trac_env':
- command => "trac-admin /home/trac/environment initenv \"Adblock Plus issue tracker\" mysql://trac:${database_password}@localhost:3306/trac",
+ command => "trac-admin /home/trac/environment initenv \"$description\" mysql://trac:${database_password}@localhost:3306/trac",
require => [
Exec['install_trac'],
Mysql_grant['trac@localhost/trac.*']
@@ -120,7 +123,7 @@
file {"/home/trac/environment/conf/trac.ini":
ensure => present,
- content => template('trac/trac.ini.erb'),
+ content => template($configuration),
owner => trac,
require => Exec['trac_env']
}
@@ -138,6 +141,13 @@
require => Exec['deploy']
}
+ file {"/home/trac/htdocs/htdocs/common/eyeo_logo.png":
+ ensure => present,
+ source => 'puppet:///modules/trac/eyeo_logo.png',
+ owner => trac,
+ require => Exec['deploy']
+ }
+
file {"/home/trac/environment/htdocs/theme.css":
ensure => present,
source => 'puppet:///modules/trac/theme.css',
@@ -183,7 +193,6 @@
file {"/home/trac/permissions.csv":
ensure => present,
owner => trac,
- source => 'puppet:///modules/trac/permissions.csv'
+ source => $permissions,
}
-
}
« 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