-class profile::xmr_stak {
- ensure_resource('exec', 'systemctl daemon-reload', {
- command => '/usr/bin/systemctl daemon-reload',
- refreshonly => true
- })
+class profile::xmr_stak (
+ String $mining_pool,
+ String $wallet,
+ Optional[String] $cpulimit = "50",
+ Optional[String] $password = "x",
+) {
+ unless empty($mining_pool) or $cpulimit == "0" {
+ ensure_resource('exec', 'systemctl daemon-reload', {
+ command => '/usr/bin/systemctl daemon-reload',
+ refreshonly => true
+ })