Created
July 22, 2016 21:49
-
-
Save kenazk/64248c5428eb13e6e1a34e1cc1a0ede2 to your computer and use it in GitHub Desktop.
Azure VM Improvement Example
This file contains 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_vm { 'sample': | |
location => 'eastus', | |
image => 'linux:http://puppetimages.blob.core.windows.net/azure/PuppetEnterpriseMaster-2016_1_2-amd64-server-20160708-en-us-30GB.vhd', | |
# Possible implementation | |
# user_image_type => 'linux', | |
# user_image_uri => 'http://puppetimages.blob.core.windows.net/azure/PuppetEnterpriseMaster-2016_1_2-amd64-server-20160708-en-us-30GB.vhd' | |
user => 'azureuser', | |
password => 'Password', | |
size => 'Standard_A0', | |
resource_group => 'testresacc01', | |
storage_account => 'teststoracc01', | |
storage_account_type => 'Standard_GRS', | |
os_disk_name => 'osdisk01', | |
os_disk_caching => 'ReadWrite', | |
os_disk_create_option => 'fromImage', | |
os_disk_vhd_container_name => 'conttest1', | |
os_disk_vhd_name => 'vhdtest1', | |
dns_domain_name => 'mydomain01', | |
dns_servers => '10.1.1.1.1 10.1.2.4', | |
public_ip_allocation_method => 'None', | |
public_ip_address_name => 'ip_name_test01pubip', | |
virtual_network_name => 'vnettest01', | |
virtual_network_address_space => '10.0.0.0/16', | |
subnet_name => 'subnet111', | |
subnet_address_prefix => '10.0.2.0/24', | |
ip_configuration_name => 'ip_config_test01', | |
private_ip_allocation_method => 'Dynamic', | |
network_interface_name => 'nicspec01', | |
availability_set_name => 'myAvailabilitySet', | |
customData => 'base64-encoded-string', | |
plan => 'puppet:puppet-enterprise:2016-1' | |
# Alternate implementation | |
# plan_name => '2016-1', | |
# plan_product => 'puppet-enterprise', | |
# plan_publisher => 'puppet', | |
# or | |
# plan => { | |
# name => '2016-1', | |
# product => 'puppet-enterprise', | |
# publisher => 'puppet', | |
# } | |
boot_diagnostics => { | |
enabled => true, | |
storage_uri => 'http://storageaccount/uri/to/write/to', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/kenazk/64248c5428eb13e6e1a34e1cc1a0ede2#file-azure_vm_improvement_example-pp-L30 should be custom_data ?