From 0aa72c23fef5ead31d7c7c84e83505fb6e92bef2 Mon Sep 17 00:00:00 2001 From: Thom May Date: Tue, 26 Aug 2014 15:13:03 +0100 Subject: [PATCH] allow userdata to be passed to Rackspace AutoScale --- lib/fog/rackspace/models/auto_scale/group_builder.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/rackspace/models/auto_scale/group_builder.rb b/lib/fog/rackspace/models/auto_scale/group_builder.rb index 337db196e..962b40b1c 100644 --- a/lib/fog/rackspace/models/auto_scale/group_builder.rb +++ b/lib/fog/rackspace/models/auto_scale/group_builder.rb @@ -60,6 +60,8 @@ module Fog } server_template["personality"] = attributes[:personality] if attributes[:personality] + server_template["user_data"] = [attributes[:user_data]].pack('m') if attributes[:user_data] + server_template["config_drive"] = 'true' if attributes[:config_drive] server_template["networks"] = networks_to_hash(attributes[:networks]) if attributes[:networks] server_template end