From 6c8507d21b48c44d4758039b8d3ae19799b2355b Mon Sep 17 00:00:00 2001 From: willtome Date: Thu, 20 Jun 2024 13:45:05 -0400 Subject: [PATCH] add azure inventory --- cloud/setup.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/cloud/setup.yml b/cloud/setup.yml index faa8804..77dbc10 100644 --- a/cloud/setup.yml +++ b/cloud/setup.yml @@ -14,6 +14,12 @@ controller_projects: wait: true scm_url: https://github.com/ansible-content-lab/aws.infrastructure_config_demos.git default_environment: Cloud Services Execution Environment + - name: Shadowman Lab - Azure + organization: Default + scm_type: git + wait: true + scm_url: https://github.com/shadowman-lab/Ansible-Azure.git + default_environment: Cloud Services Execution Environment controller_credentials: - name: AWS @@ -25,6 +31,17 @@ controller_credentials: username: REPLACEME password: REPLACEME + - name: AZURE + credential_type: Microsoft Azure Resource Manager + organization: Default + update_secrets: false + state: exists + inputs: + client: REPLACEME + password: REPLACEME + tenant: REPLACEME + subscription: REPLACEME + # - name: Azure # credential_type: Microsoft Azure Resource Manager # organization: Default @@ -56,6 +73,29 @@ controller_inventory_sources: - key: tags.owner prefix: owner + - name: Azure Inventory + organization: Default + source: azure_rm + inventory: Demo Inventory + credential: AZURE + overwrite: true + #source_vars: + # hostnames: + # - tag:Name + # compose: + # ansible_host: public_ip_address + # ansible_user: 'ec2-user' + # groups: + # cloud_aws: true + # os_linux: tags.blueprint.startswith('rhel') + # keyed_groups: + # - key: platform + # prefix: os + # - key: tags.blueprint + # prefix: blueprint + # - key: tags.owner + # prefix: owner + # - name: Azure Inventory # organization: Default # source: azure_rm @@ -456,6 +496,17 @@ controller_templates: variable: _hosts required: true + - name: "Cloud / Azure / Inventory Output" + job_type: run + inventory: "Demo Inventory" + project: "Ansible official demo project" + playbook: "inventory_output.yml" + credentials: + - AWS + notification_templates_started: Telemetry + notification_templates_success: Telemetry + notification_templates_error: Telemetry + controller_workflows: - name: Deploy Cloud Stack in AWS description: A workflow to deploy a cloud stack