1 class profile::xmr_stak (
4 Optional[String] $password = "x",
6 ensure_resource('exec', 'systemctl daemon-reload', {
7 command => '/usr/bin/systemctl daemon-reload',
11 ensure_packages(["cpulimit"])
12 aur::package { "xmr-stak_cpu": }
18 home => "/var/lib/xmr_stak",
21 require => Aur::Package["xmr-stak_cpu"],
24 file { "/etc/systemd/system/xmr-stak.service":
28 source => "puppet:///modules/profile/xmr_stak/xmr-stak.service",
29 require => User["xmr_stak"],
30 notify => Exec["systemctl daemon-reload"]
33 $instance = regsubst(lookup("base_installation::ldap_cn"), '\.', "_", "G")
35 file { "/var/lib/xmr_stak/xmr-stak.conf":
39 content => template("profile/xmr_stak/xmr-stak.conf.erb"),
40 require => User["xmr_stak"],
47 Aur::Package["xmr-stak_cpu"],
48 File["/var/lib/xmr_stak/xmr-stak.conf"],
49 File["/etc/systemd/system/xmr-stak.service"]
52 Aur::Package["xmr-stak_cpu"],
53 File["/var/lib/xmr_stak/xmr-stak.conf"],
54 File["/etc/systemd/system/xmr-stak.service"]