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
azure_resource_group { 'test-rg': | |
ensure => present, | |
location => 'eastus', | |
} | |
# Example with a source | |
azure_resource_template { 'test-storage-account': | |
ensure => 'present', | |
resource_group => 'test-rg', | |
source => 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-storage-account-create/azuredeploy.json', | |
params => { |
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
require 'spec_helper' | |
require 'pry' | |
%w(serverspec rake).each do |package_name| | |
describe package(package_name) do | |
it { should be_installed.by('gem') } | |
end | |
end | |
[ |
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
#!/bin/bash | |
BAR=$(printf '#!/bin/bash\ntouch /tmp/ididit\necho \"root:changeme2016\" | chpasswd"' | gzip | openssl base64 -A) | |
echo $BAR | python -m base64 -d | gunzip |
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
$ gem install gem install azure_mgmt_compute | |
$ ruby status.rb | |
There are [1] in this account | |
AZURE VM IDs FOR THIS ACCOUNT | |
============================= | |
/subscriptions/<subscription id###>/resourceGroups/CLOUD-ACCEPTANCE-TESTS/providers/Microsoft.Compute/virtualMachines/CLOUD-3cdbed43 | |
============================= | |
NewerOlder