Use host-based lock for salt-formula tests

Change-Id: I2d6d948d0d941da7742d8275155f255cc900a02d
diff --git a/test-salt-formulas-env.groovy b/test-salt-formulas-env.groovy
index e2b164c..967d563 100644
--- a/test-salt-formulas-env.groovy
+++ b/test-salt-formulas-env.groovy
@@ -66,7 +66,7 @@
                 } else {
                   common.infoMsg("Docker Kitchen test configuration found, running Docker kitchen tests.")
                 }
-                ruby.ensureRubyEnv()
+                ruby.ensureRubyEnv(host_to_lock=env.NODE_NAME)
                 if (fileExists(".travis.yml")) {
                   common.infoMsg(".travis.yml found, running custom kitchen init")
                   def kitchenConfigYML = readYaml(file: ".travis.yml")
@@ -141,7 +141,7 @@
                 kitchenFileName = ".kitchen.yml"
               }
               if (kitchenFileName) {
-                ruby.ensureRubyEnv()
+                ruby.ensureRubyEnv(host_to_lock=env.NODE_NAME)
                 if (!fileExists("Gemfile")) {
                   sh("curl -s 'https://gerrit.mcp.mirantis.com/projects/salt-formulas%2Fsalt-formulas-scripts/branches/master/files/Gemfile/content' | base64 -d > ./Gemfile")
                   ruby.installKitchen()
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index 958cd1e..2216e8a 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -194,7 +194,7 @@
             }
             if (kitchenFileName) {
               def kitchenEnvs = []
-              ruby.ensureRubyEnv()
+              ruby.ensureRubyEnv(host_to_lock=env.NODE_NAME)
               if (!fileExists("Gemfile")) {
                 sh("curl -s 'https://gerrit.mcp.mirantis.com/projects/salt-formulas%2Fsalt-formulas-scripts/branches/master/files/Gemfile/content' | base64 -d > ./Gemfile")
                 ruby.installKitchen()