-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.pp
45 lines (43 loc) · 1.32 KB
/
install.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
42
43
44
45
# @api private
# This class handles the virtualenv + deps + marmoset itself. Avoid modifying private classes.
class marmoset::install inherits marmoset {
assert_private("You're calling a private class, you're not supposed to do this")
if $marmoset::manage_python {
class{'::python':
version => 'system',
virtualenv => true,
}
}
package{'libvirt':
ensure => present,
}
-> user{$marmoset::username:
home => $marmoset::home,
shell => '/bin/bash',
managehome => true,
purge_ssh_keys => true,
}
-> vcsrepo{$marmoset::vcsrepo:
ensure => 'present',
provider => 'git',
source => $marmoset::sourcerepo,
owner => $marmoset::username,
user => $marmoset::username,
}
-> python::pyvenv{$marmoset::pyvenv:
ensure => present,
owner => $marmoset::username,
group => $marmoset::groupname,
}
-> python::requirements{$marmoset::requirements:
virtualenv => $marmoset::pyvenv,
owner => $marmoset::username,
group => $marmoset::groupname,
proxy => $marmoset::http_proxy,
fix_requirements_owner => false,
forceupdate => true,
}
systemd::unit_file{'marmoset.service':
content => epp("${module_name}/marmoset.service.epp"),
}
}