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

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

Issue 5688697504661504: Concept of Trac for whitelisting requests. (Closed)
Patch Set: Created Feb. 25, 2014, 8:11 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 | « modules/private-stub/manifests/trac.pp ('k') | modules/roundup/templates/config.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
(Empty)
1 class roundup($tracker_name, $domain) inherits private::roundup {
2 package {['roundup', 'python-mysqldb']: ensure => present}
3
4 include nginx
5
6 nginx::hostconfig {$domain:
7 content => template('roundup/site.erb'),
8 enabled => true
9 }
10
11 class {'mysql::server':
12 config_hash => {'root_password' => $database_root_password}
13 }
14
15 mysql::db {'roundup':
16 user => 'roundup',
17 password => $database_password,
18 host => 'localhost',
19 grant => ['all'],
20 require => Class['mysql::config']
21 }
22
23 file {'/etc/roundup/roundup-server.ini':
24 ensure => present,
25 content => template('roundup/roundup-server.ini.erb'),
26 require => Package['roundup'],
27 notify => Service['roundup']
28 }
29
30 $tracker_home = "/var/lib/roundup/trackers/${tracker_name}"
31
32 Exec {
33 path => ['/bin', '/usr/bin'],
34 }
35
36 exec {'install':
37 command => "roundup-admin -i ${tracker_home} install classic mysql",
38 onlyif => "test ! -d ${tracker_home}",
39 require => Package['roundup', 'python-mysqldb']
40 }
41
42 file {"${tracker_home}/config.ini":
43 ensure => present,
44 content => template('roundup/config.ini.erb'),
45 require => Exec['install'],
46 notify => Service['roundup']
47 }
48
49 service {'roundup':
50 ensure => running,
51 hasstatus => false
52 }
53
54 $db_path = "${tracker_home}/db"
55
56 exec {'initialise':
57 command => "bash -c 'echo y | roundup-admin -i ${tracker_home} initialise ${ admin_password}'",
58 onlyif => "test ! -d ${db_path}/lock",
59 require => [Package['roundup'], Mysql::Db['roundup']],
60 notify => File[$db_path]
61 }
62
63 file {$db_path:
64 owner => 'roundup',
65 notify => Service['roundup']
66 }
67 }
OLDNEW
« no previous file with comments | « modules/private-stub/manifests/trac.pp ('k') | modules/roundup/templates/config.ini.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld