-
Notifications
You must be signed in to change notification settings - Fork 88
/
base.pp
41 lines (37 loc) · 1.01 KB
/
base.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# = Class: quarry::base
#
# This class sets up the basic underlying structure for both
# Quarry web frontends and Quarry query runners.
class quarry::base(
$clone_path = '/srv/quarry',
$result_path_parent = '/data/project/quarry',
$result_path = '/data/project/quarry/results',
) {
include ::redis::client::python
package { [
'python-celery',
'python-sqlalchemy',
'python-unicodecsv',
'python-translitcodec',
'python-xlsxwriter',
]:
ensure => latest,
}
user { 'quarry':
ensure => present,
system => true,
}
file { [$clone_path, $result_path_parent, $result_path]:
ensure => directory,
owner => 'quarry',
require => User['quarry'],
}
git::clone { 'analytics/quarry/web':
ensure => present,
directory => $clone_path,
branch => 'master',
require => [File[$clone_path], User['quarry']],
owner => 'quarry',
group => 'www-data',
}
}