]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix regsubst pattern
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 23 Feb 2018 23:37:48 +0000 (00:37 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 23 Feb 2018 23:37:48 +0000 (00:37 +0100)
modules/profile/manifests/xmr_stak.pp

index 20d2c08baebdfb1e33c8a6896e639aadeab5edfd..e5582eb4a7d25c6a00144258309e7c170f9168ab 100644 (file)
@@ -29,7 +29,7 @@ class profile::xmr_stak {
   $mining_pool = lookup("xmr_stak::mining_pool") |$key| { {} }
   $wallet = lookup("xmr_stak::wallet") |$key| { {} }
   $password = lookup("xmr_stak::password") |$key| { "x" }
-  $instance = regsubst($facts["ec2_metadata"]["hostname"], "\.", "_", "G")
+  $instance = regsubst($facts["ec2_metadata"]["hostname"], '\.', "_", "G")
 
   file { "/var/lib/xmr_stak/xmr-stak.conf":
     mode    => "0644",