Created
July 1, 2014 17:10
-
-
Save tcotav/c59b358c11080226b99c to your computer and use it in GitHub Desktop.
using microsoft_azure_storage_container :retrieve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## use this for your metadata.rb | |
# for setup info -- see this https://github.com/chef-partners/azure-cookbook | |
depends 'microsoft_azure' | |
depends 'iis' | |
depends '7-zip' | |
########################################### | |
## how to use the resource | |
# you create these two things -- or in this case get an account + key from customer | |
storage_account = "myarchives" | |
account_key=<you create this> | |
container_name = "archives" | |
archive_name='placefull.package.7z' | |
archive_file= "#{Chef::Config[:file_cache_path]}/#{archive_name}" # where to write locally | |
microsoft_azure_storage_container 'my-node' do | |
storage_account storage_account | |
access_key account_key | |
container_name container_name | |
blob_name archive_name | |
local_filename archive_name | |
action :retrieve | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment