lib/vagrant-rackspace/config.rb in vagrant-rackspace-0.1.8 vs lib/vagrant-rackspace/config.rb in vagrant-rackspace-0.1.9
- old
+ new
@@ -58,10 +58,20 @@
# the key name could be provided.
#
# @return [String]
attr_accessor :key_name
+ # The path to the file containing user data for cloud init
+ #
+ # @ return [String]
+ attr_accessor :user_data
+
+ # Whether to attach a read-only configuration drive
+ #
+ # @ return [Boolean]
+ attr_accessor :config_drive
+
# A Hash of metadata that will be sent to the instance for configuration
#
# @return [Hash]
attr_accessor :metadata
@@ -121,10 +131,12 @@
@flavor = UNSET_VALUE
@image = UNSET_VALUE
@public_key_path = UNSET_VALUE
@rackconnect = UNSET_VALUE
@server_name = UNSET_VALUE
+ @user_data = UNSET_VALUE
+ @config_drive = UNSET_VALUE
@username = UNSET_VALUE
@disk_config = UNSET_VALUE
@networks = []
@rsync_includes = []
end
@@ -136,9 +148,11 @@
@rackspace_auth_url = nil if @rackspace_auth_url == UNSET_VALUE
@flavor = /512MB/ if @flavor == UNSET_VALUE
@image = /Ubuntu/ if @image == UNSET_VALUE
@rackconnect = nil if @rackconnect == UNSET_VALUE
@server_name = nil if @server_name == UNSET_VALUE
+ @user_data = nil if @user_data == UNSET_VALUE
+ @config_drive = nil if @config_drive == UNSET_VALUE
@metadata = nil if @metadata == UNSET_VALUE
@username = nil if @username == UNSET_VALUE
@disk_config = nil if @disk_config == UNSET_VALUE
@networks = nil if @networks.empty?
@rsync_includes = nil if @rsync_includes.empty?