1 class profile::xmr_stak (
4 Optional[String] $cpulimit = "50",
5 Optional[String] $password = "x",
7 ensure_resource('exec', 'systemctl daemon-reload', {
8 command => '/usr/bin/systemctl daemon-reload',
12 ensure_packages(["cpulimit"])
13 aur::package { "xmr-stak_cpu": }
19 home => "/var/lib/xmr_stak",
22 require => Aur::Package["xmr-stak_cpu"],
25 file { "/etc/systemd/system/xmr-stak.service":
29 content => template("profile/xmr_stak/xmr-stak.service.erb"),
30 require => User["xmr_stak"],
31 notify => Exec["systemctl daemon-reload"]
34 $instance = regsubst(lookup("base_installation::ldap_cn"), '\.', "_", "G")
36 file { "/var/lib/xmr_stak/xmr-stak.conf":
40 content => template("profile/xmr_stak/xmr-stak.conf.erb"),
41 require => User["xmr_stak"],
48 Aur::Package["xmr-stak_cpu"],
49 File["/var/lib/xmr_stak/xmr-stak.conf"],
50 File["/etc/systemd/system/xmr-stak.service"]
53 Aur::Package["xmr-stak_cpu"],
54 File["/var/lib/xmr_stak/xmr-stak.conf"],
55 File["/etc/systemd/system/xmr-stak.service"]