From c2f33e53cf694819878f95b7200c3a3abebe52dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= <ismael.bouya@normalesup.org>
Date: Sat, 14 Apr 2018 10:31:57 +0200
Subject: Disable xmr-stak if mining_pool is empty

---
 environments/global/common.yaml     | 4 ++--
 environments/global/types/s1-2.yaml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'environments')

diff --git a/environments/global/common.yaml b/environments/global/common.yaml
index 2dfe0aa..3cc75fa 100644
--- a/environments/global/common.yaml
+++ b/environments/global/common.yaml
@@ -33,8 +33,8 @@ base_installation::notify_xmpp: {}
 profile::fstab::mounts:
   - "%{facts.ldapvar.self.vars.mounts.0}"
   - "%{facts.ldapvar.self.vars.mounts.1}"
-profile::xmr_stak::mining_pool: "" # Fetched via ldap
-profile::xmr_stak::wallet: "" # Fetched via ldap
+profile::xmr_stak::mining_pool: ""
+profile::xmr_stak::wallet: ""
 profile::mail::mailhub: "" # Fetched via ldap
 role::backup::mailto: "" # Fetched via ldap
 role::backup::backups: [] # Fetched via ldap
diff --git a/environments/global/types/s1-2.yaml b/environments/global/types/s1-2.yaml
index 5bfdf9a..fb0d663 100644
--- a/environments/global/types/s1-2.yaml
+++ b/environments/global/types/s1-2.yaml
@@ -7,4 +7,4 @@ base_installation::system_hostname: "%{ldapvar.self.vars.host.0}"
 base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.v.immae.eu"
 base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt"
 letsencrypt::try_for_real_hostname: true
-profile::xmr_stak::cpulimit: "30"
+profile::xmr_stak::cpulimit: "0"
-- 
cgit v1.2.3