Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions libraries/system_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,20 @@ def get_template_id
Chef::Log.debug "template id = #{template_id.stdout.chomp}"
return template_id.stdout.chomp
end



# Create or mount secondary storage path
def secondary_storage
directory @current_resource.nfs_path do
owner "root"
group "root"
action :create
recursive true
not_if { ::File.exist?(@current_resource.nfs_path)}
unless ::File.exist?(@current_resource.nfs_path)
# Use condition enclosing instead of "not_if" guard because resource nfs_path is not defined in case of resource merging
directory @current_resource.nfs_path do
owner "root"
group "root"
action :create
recursive true
end
end
end

def download_systemvm_template
# Create database configuration for cloudstack management server that will use and existing database.
#puts "Downloading system template from: #{@current_resource.url}"
Expand Down