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

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

Issue 4815057535893504: Configured Roundup tracker. (Closed)
Patch Set: Created Feb. 14, 2014, 9:59 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 | modules/roundup/templates/confidential.index.html.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 roundup($tracker_name, $domain) inherits private::roundup { 1 class roundup($tracker_name, $domain) inherits private::roundup {
2 package {['roundup', 'python-mysqldb']: ensure => present} 2 package {['roundup', 'python-mysqldb']: ensure => present}
3 3
4 include nginx 4 include nginx
5 5
6 nginx::hostconfig {$domain: 6 nginx::hostconfig {$domain:
7 content => template('roundup/site.erb'), 7 content => template('roundup/site.erb'),
8 enabled => true 8 enabled => true
9 } 9 }
10 10
(...skipping 28 matching lines...) Expand all
39 require => Package['roundup', 'python-mysqldb'] 39 require => Package['roundup', 'python-mysqldb']
40 } 40 }
41 41
42 file {"${tracker_home}/config.ini": 42 file {"${tracker_home}/config.ini":
43 ensure => present, 43 ensure => present,
44 content => template('roundup/config.ini.erb'), 44 content => template('roundup/config.ini.erb'),
45 require => Exec['install'], 45 require => Exec['install'],
46 notify => Service['roundup'] 46 notify => Service['roundup']
47 } 47 }
48 48
49 file {"${tracker_home}/schema.py":
50 ensure => present,
51 content => template('roundup/schema.py.erb'),
52 require => Exec['install'],
53 notify => Service['roundup']
54 }
55
56 file {"${tracker_home}/initial_data.py":
57 ensure => present,
58 content => template('roundup/initial_data.py.erb'),
59 require => Exec['install'],
60 notify => Service['roundup']
61 }
62
63 file {"${tracker_home}/html/issue.item.html":
64 ensure => present,
65 content => template('roundup/issue.item.html.erb'),
66 require => Exec['install'],
67 notify => Service['roundup']
68 }
69
70 file {"${tracker_home}/html/issue.index.html":
71 ensure => present,
72 content => template('roundup/issue.index.html.erb'),
73 require => Exec['install'],
74 notify => Service['roundup']
75 }
76
77 file {"${tracker_home}/html/issue.search.html":
78 ensure => present,
79 content => template('roundup/issue.search.html.erb'),
80 require => Exec['install'],
81 notify => Service['roundup']
82 }
83
84 file {"${tracker_home}/html/style.css":
85 ensure => present,
86 content => template('roundup/style.css.erb'),
87 require => Exec['install'],
88 notify => Service['roundup']
89 }
90
91 file {"${tracker_home}/html/confidential.index.html":
92 ensure => present,
93 content => template('roundup/confidential.index.html.erb'),
94 require => Exec['install'],
95 notify => Service['roundup']
96 }
97
98
99 file {"${tracker_home}/html/confidential.item.html":
100 ensure => present,
101 content => template('roundup/confidential.item.html.erb'),
102 require => Exec['install'],
103 notify => Service['roundup']
104 }
105
106 file {"${tracker_home}/html/confidential.search.html":
107 ensure => present,
108 content => template('roundup/confidential.search.html.erb'),
109 require => Exec['install'],
110 notify => Service['roundup']
111 }
112
49 service {'roundup': 113 service {'roundup':
50 ensure => running, 114 ensure => running,
51 hasstatus => false 115 hasstatus => false
52 } 116 }
53 117
118 file {"${tracker_home}/detectors/statusauditor.py":
119 ensure => present,
120 content => template('roundup/statusauditor.py.erb'),
121 require => Exec['install'],
122 notify => Service['roundup']
123 }
124
125 file {"${tracker_home}/detectors/nosyreaction.py":
126 ensure => present,
127 content => template('roundup/nosyreaction.py.erb'),
128 require => Exec['install'],
129 notify => Service['roundup']
130 }
131
132 file {"${tracker_home}/html/page.html":
133 ensure => present,
134 content => template('roundup/page.html.erb'),
135 require => Exec['install'],
136 notify => Service['roundup']
137 }
138
54 $db_path = "${tracker_home}/db" 139 $db_path = "${tracker_home}/db"
55 140
56 exec {'initialise': 141 exec {'initialise':
57 command => "bash -c 'echo y | roundup-admin -i ${tracker_home} initialise ${ admin_password}'", 142 command => "bash -c 'echo y | roundup-admin -i ${tracker_home} initialise ${ admin_password}'",
58 onlyif => "test ! -d ${db_path}/lock", 143 onlyif => "test ! -d ${db_path}/lock",
59 require => [Package['roundup'], Mysql::Db['roundup']], 144 require => [Package['roundup'], Mysql::Db['roundup']],
60 notify => File[$db_path] 145 notify => File[$db_path]
61 } 146 }
62 147
63 file {$db_path: 148 file {$db_path:
64 owner => 'roundup', 149 owner => 'roundup',
65 notify => Service['roundup'] 150 notify => Service['roundup']
66 } 151 }
67 } 152 }
OLDNEW
« no previous file with comments | « no previous file | modules/roundup/templates/confidential.index.html.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld