From e81bc64130510715ef6ab8b406242cbb3f4040c9 Mon Sep 17 00:00:00 2001 From: Anton Martynov Date: Fri, 20 Nov 2015 12:04:59 +0300 Subject: [PATCH] #840: chef_environment support --- devops-service/lib/executors/server_executor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/devops-service/lib/executors/server_executor.rb b/devops-service/lib/executors/server_executor.rb index 9532cf4..1ba4c1f 100644 --- a/devops-service/lib/executors/server_executor.rb +++ b/devops-service/lib/executors/server_executor.rb @@ -215,6 +215,7 @@ module Devops bootstrap_options.push "-N #{@server.chef_node_name}" if @server.chef_node_name bootstrap_options.push "--sudo" unless @server.remote_user == "root" bootstrap_options.push "-t #{options[:bootstrap_template]}" if options[:bootstrap_template] + bootstrap_options.push "-E #{options[:chef_environment]}" if options[:chef_environment] rl = options[:run_list] bootstrap_options.push "-r #{rl.join(",")}" unless rl.nil? or rl.empty? bootstrap_options.push "-c #{options[:config]}" if options[:config]