---
azure_vm_public_image:
  topology:
    topology_name: azure_vm_public_image
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - vm_name: "{{ distro }}-TEST-Azure"
            role: azure_vm
            resource_group: "ccit"
            vm_size: "Standard_DS1_v2"
            public_image:
              offer: CentOS
              publisher: OpenLogic
              sku: '7.1'
              version: latest
            vm_username: linchpin
            vm_password: IloveLinchpin!
        credentials:
          filename: azure.key
          profile: key
  layout:
    inventory_layout:
      vars:
        hostname: __IP__
      hosts:
        example-node:
          count: 1
          host_groups:
            - example

azure_vn:
  topology:
    topology_name: azure_vn
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - virtual_network_name: "{{ distro }}-forLinchpinautomation"
            role: azure_virtual_network
            resource_group: "ccit"
        credentials:
          filename: azure.key
          profile: key

azure_res_group:
  topology:
    topology_name: azure_res_group
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - role: azure_resource_group
            resource_group_name: "{{ distro }}-LinchpinCreatedGroup"
            location: centralus
        credentials:
          filename: azure.key
          profile: key

azure_vn_subnet:
  topology:
    topology_name: azure_vn
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - virtual_network_name: "{{ distro }}-forLinchpinautomation"
            subnet_name: "{{ distro }}-linchpincreated"
            role: azure_virtual_subnet
            address_prefix: '10.1.0.0/24'
            resource_group: "ccit"
        credentials:
          filename: azure.key
          profile: key

azure_vm:
  topology:
    topology_name: azure_vm
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - vm_name: "{{ distro }}-TestAzureAuto"
            resource_group: "ccit"
            role: azure_vm
# This part below is not required, but you can still specify it
            vm_size: "Standard_DS1_v2"
            private_image: "rhcostestimage"
            # If you have both private and public images
            # Linchpin will take the private one
            public_image:
              offer: CentOS
              publisher: OpenLogic
              sku: '7.1'
              version: latest
              # If you don't specify the username and password
              # The default is as below
              # vm_username: linchpin&&&vm_password: IloveLinchpin!
            vm_username: linchpin 
            vm_password: IloveLinchpin!
            #you can also use public-key-authentication by below
            #public_key: "Your key goes here"
            deepclean: True
            #With deepclean you can clean the disk attached on the vm if you use private image
            delete_all_attached: all_autocreated
            #could be all or all_autocreated
            #( all: delete all resources attached to the vm, 
            #all_autocreated just delete everything but virtual network) 
# This part above is now required, but you can still specify it
        credentials:
          filename: azure.key
          profile: key

#This is the minimum viable input for azure_vm
# Default setting use username and password, no public key
azure_vm_test:
  topology:
    topology_name: azure_vm_test
    resource_groups:
      - resource_group_name: "azure"
        resource_group_type: "azure"
        resource_definitions:
          - vm_name: "{{ distro }}-TestAzureAuto"
            resource_group: "{{ distro }}-LinchpinCreatedGroup"
            role: azure_vm
        credentials:
          filename: azure.key
          profile: key
