diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-21 15:31:12 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-04-21 15:31:12 +0200 |
commit | 881f06c0534ef9e5d0af3298fdd7363d09a0c47a (patch) | |
tree | a4114a8dd07beb1c51c0934730e95f5a9e50a9c5 | |
parent | 66a9a63ae8e6ef06456e46549b2ff6cffb224c6c (diff) | |
parent | bdcfd78f03d54b20c25805b24b0443f2a107e72b (diff) | |
download | Puppet-881f06c0534ef9e5d0af3298fdd7363d09a0c47a.tar.gz Puppet-881f06c0534ef9e5d0af3298fdd7363d09a0c47a.tar.zst Puppet-881f06c0534ef9e5d0af3298fdd7363d09a0c47a.zip |
Merge branch 'dev'
-rw-r--r-- | modules/profile/manifests/boinc.pp | 30 | ||||
-rw-r--r-- | modules/role/manifests/backup.pp | 1 | ||||
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/modules/profile/manifests/boinc.pp b/modules/profile/manifests/boinc.pp new file mode 100644 index 0000000..43c4a49 --- /dev/null +++ b/modules/profile/manifests/boinc.pp | |||
@@ -0,0 +1,30 @@ | |||
1 | class profile::boinc ( | ||
2 | Optional[String] $rpc_password = undef, | ||
3 | Optional[String] $rpc_host = undef, | ||
4 | ) { | ||
5 | unless empty($rpc_host) or empty($rpc_password) { | ||
6 | ensure_packages(["boinc-nox"]) | ||
7 | |||
8 | file { "/var/lib/boinc/gui_rpc_auth.cfg": | ||
9 | ensure => present, | ||
10 | content => $rpc_password, | ||
11 | owner => "boinc", | ||
12 | group => "boinc", | ||
13 | mode => "0600", | ||
14 | require => Package["boinc-nox"] | ||
15 | } | ||
16 | -> | ||
17 | file { "/var/lib/boinc/remote_hosts.cfg": | ||
18 | ensure => present, | ||
19 | content => $rpc_host, | ||
20 | owner => "boinc", | ||
21 | group => "boinc", | ||
22 | mode => "0600", | ||
23 | } | ||
24 | -> | ||
25 | service { "boinc": | ||
26 | enable => true, | ||
27 | ensure => "running", | ||
28 | } | ||
29 | } | ||
30 | } | ||
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp index 510a8ef..d01abd9 100644 --- a/modules/role/manifests/backup.pp +++ b/modules/role/manifests/backup.pp | |||
@@ -13,6 +13,7 @@ class role::backup ( | |||
13 | include "profile::tools" | 13 | include "profile::tools" |
14 | include "profile::xmr_stak" | 14 | include "profile::xmr_stak" |
15 | include "profile::known_hosts" | 15 | include "profile::known_hosts" |
16 | include "profile::boinc" | ||
16 | 17 | ||
17 | ensure_packages(["rsync"]) | 18 | ensure_packages(["rsync"]) |
18 | 19 | ||
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 53b7abd..966f549 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp | |||
@@ -24,6 +24,7 @@ class role::cryptoportfolio ( | |||
24 | include "profile::postgresql" | 24 | include "profile::postgresql" |
25 | include "profile::apache" | 25 | include "profile::apache" |
26 | include "profile::xmr_stak" | 26 | include "profile::xmr_stak" |
27 | include "profile::boinc" | ||
27 | 28 | ||
28 | contain "role::cryptoportfolio::postgresql" | 29 | contain "role::cryptoportfolio::postgresql" |
29 | contain "role::cryptoportfolio::apache" | 30 | contain "role::cryptoportfolio::apache" |