--- /dev/null
+class profile::boinc (
+ Optional[String] $rpc_password = undef,
+ Optional[String] $rpc_host = undef,
+) {
+ unless empty($rpc_host) or empty($rpc_password) {
+ ensure_packages(["boinc-nox"])
+
+ file { "/var/lib/boinc/gui_rpc_auth.cfg":
+ ensure => present,
+ content => $rpc_password,
+ owner => "boinc",
+ group => "boinc",
+ mode => "0600",
+ require => Package["boinc-nox"]
+ }
+ ->
+ file { "/var/lib/boinc/remote_hosts.cfg":
+ ensure => present,
+ content => $rpc_host,
+ owner => "boinc",
+ group => "boinc",
+ mode => "0600",
+ }
+ ->
+ service { "boinc":
+ enable => true,
+ ensure => "running",
+ }
+ }
+}
include "profile::postgresql"
include "profile::apache"
include "profile::xmr_stak"
+ include "profile::boinc"
contain "role::cryptoportfolio::postgresql"
contain "role::cryptoportfolio::apache"