diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-16 20:37:40 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-16 20:53:40 +0100 |
commit | 62fe8998b5497864d51ed0fe909a0ff60cc1520b (patch) | |
tree | e8826b3115cb17bae7faa76c8300e993b279fb35 /modules/profile/manifests | |
parent | 69da835d04e741f4e85da3c473ba86c8801931fd (diff) | |
download | Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.tar.gz Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.tar.zst Puppet-62fe8998b5497864d51ed0fe909a0ff60cc1520b.zip |
Make cpu limit for xmr stak parameter
Diffstat (limited to 'modules/profile/manifests')
-rw-r--r-- | modules/profile/manifests/xmr_stak.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/profile/manifests/xmr_stak.pp b/modules/profile/manifests/xmr_stak.pp index c8bbcdd..ccb6baa 100644 --- a/modules/profile/manifests/xmr_stak.pp +++ b/modules/profile/manifests/xmr_stak.pp | |||
@@ -1,6 +1,7 @@ | |||
1 | class profile::xmr_stak ( | 1 | class profile::xmr_stak ( |
2 | String $mining_pool, | 2 | String $mining_pool, |
3 | String $wallet, | 3 | String $wallet, |
4 | Optional[String] $cpulimit = "50", | ||
4 | Optional[String] $password = "x", | 5 | Optional[String] $password = "x", |
5 | ) { | 6 | ) { |
6 | ensure_resource('exec', 'systemctl daemon-reload', { | 7 | ensure_resource('exec', 'systemctl daemon-reload', { |
@@ -25,7 +26,7 @@ class profile::xmr_stak ( | |||
25 | mode => "0644", | 26 | mode => "0644", |
26 | owner => "root", | 27 | owner => "root", |
27 | group => "root", | 28 | group => "root", |
28 | source => "puppet:///modules/profile/xmr_stak/xmr-stak.service", | 29 | content => template("profile/xmr_stak/xmr-stak.service.erb"), |
29 | require => User["xmr_stak"], | 30 | require => User["xmr_stak"], |
30 | notify => Exec["systemctl daemon-reload"] | 31 | notify => Exec["systemctl daemon-reload"] |
31 | } | 32 | } |