From fa0d2c6aeca2364edf1658f9e1275664e22dc1a8 Mon Sep 17 00:00:00 2001 From: Scott Harwell Date: Fri, 3 Nov 2023 09:15:27 -0400 Subject: [PATCH] Updated to version 1.7.0 --- CHANGELOG.rst | 19 ++++++++++ README.md | 36 +++++++++---------- changelogs/.plugin-cache.yaml | 19 ++++++++++ changelogs/changelog.yaml | 28 ++++++++++----- galaxy.yml | 2 +- .../create_log_analytics_workspace.yml | 0 .../create_resource_group.yml | 0 .../create_transit_network.yml | 0 .../create_vm.yml | 0 .../create_vnet.yml | 0 .../delete_resource_group.yml | 0 .../delete_transit_network.yml | 0 .../delete_vm.yml | 0 .../delete_vnet.yml | 0 .../disable_arc_extension.yml | 0 .../enable_arc_extension.yml | 0 .../install_arc_agent.yml | 0 .../install_log_analytics_agent.yml | 0 .../proxmox_vm_migration.yml | 0 .../replace_log_analytics_with_arc_linux.yml | 0 .../uninstall_log_analytics_agent.yml | 0 .../update_rhel_vms.yml | 0 requirements.yml | 4 +-- 23 files changed, 79 insertions(+), 29 deletions(-) create mode 100644 changelogs/.plugin-cache.yaml rename playbook_create_log_analytics_workspace.yml => playbooks/create_log_analytics_workspace.yml (100%) rename playbook_create_resource_group.yml => playbooks/create_resource_group.yml (100%) rename playbook_create_transit_network.yml => playbooks/create_transit_network.yml (100%) rename playbook_create_vm.yml => playbooks/create_vm.yml (100%) rename playbook_create_vnet.yml => playbooks/create_vnet.yml (100%) rename playbook_delete_resource_group.yml => playbooks/delete_resource_group.yml (100%) rename playbook_delete_transit_network.yml => playbooks/delete_transit_network.yml (100%) rename playbook_delete_vm.yml => playbooks/delete_vm.yml (100%) rename playbook_delete_vnet.yml => playbooks/delete_vnet.yml (100%) rename playbook_disable_arc_extension.yml => playbooks/disable_arc_extension.yml (100%) rename playbook_enable_arc_extension.yml => playbooks/enable_arc_extension.yml (100%) rename playbook_install_arc_agent.yml => playbooks/install_arc_agent.yml (100%) rename playbook_install_log_analytics_agent.yml => playbooks/install_log_analytics_agent.yml (100%) rename playbook_proxmox_vm_migration.yml => playbooks/proxmox_vm_migration.yml (100%) rename playbook_replace_log_analytics_with_arc_linux.yml => playbooks/replace_log_analytics_with_arc_linux.yml (100%) rename playbook_uninstall_log_analytics_agent.yml => playbooks/uninstall_log_analytics_agent.yml (100%) rename playbook_update_rhel_vms.yml => playbooks/update_rhel_vms.yml (100%) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5759d15..2cb0391 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,25 @@ Azure.Infrastructure_Config_Demos Release Notes This changelog describes changes after version 1.4.2. +v1.7.0 +====== + +Release Summary +--------------- + +Moved playbooks into playbooks folder and updated dependency versions. + +Major Changes +------------- + +- Moved playbooks into playbooks folder so that playbooks may be called from `namespace.collection.playbook` syntax. +- Updated dependency versions. + +Breaking Changes / Porting Guide +-------------------------------- + +- Playbook paths have changed. + v1.6.0 ====== diff --git a/README.md b/README.md index 4d4f2fc..7bda021 100644 --- a/README.md +++ b/README.md @@ -30,22 +30,22 @@ Click on the role name to be directed to the README specifically for that role. | Name | Role(s) Used | Description | | --------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `playbook_create_transit_network.yml` | `roles.transit_peered_networks` | A playbook to create a multi-VPC hub-and-spoke network configuration using a transit gateway with DMZ and private networks. | -| `playbook_delete_transit_network.yml` | `roles.transit_peered_networks` | Deletes AWS resources created in the `playbook_create_transit_network` playbook. | -| `playbook_create_resource_group.yml` | N/A | Simple playbook demonstrating how to create an Azure resource group from extra vars. | -| `playbook_create_vm.yml` | `roles.vms` | A playbook that allows for VM creation using blueprints of defined variables. | -| `playbook_delete_vm.yml` | `roles.vms` | Deletes virtual machines and connected resources | -| `playbook_delete_resource_group.yml` | N/A | Deletes a resource group and all resources within it. | -| `playbook_update_rhel_vms.yml` | N/A | Runs `dnf upgrade -y` on RHEL VMs. | -| `playbook_create_log_analytics_workspace.yml` | `role.log_analytics` | Creates a Log Analytics workspace for storing log data with logging extensions. | -| `playbook_install_log_analytics_agent.yml` | `roles.log_analytics` | Deploys a Log Analytics workspace into your Azure subscription and then installs and configures Linux hosts to communicate with the workspace. | -| `playbook_uninstall_log_analytics_agent.yml` | `roles.log_analytics` | Uninstalls the Log Analytics agent on Linux hosts and then deletes the Log Analytics workspace from your Azure subscription. | -| `playbook_install_arc_agent.yml` | `roles.arc` | Installs the Azure Arc agent on inventory hosts. | -| `playbook_replace_log_analytics_with_arc_linux.yml` | `roles.arc` | Installs the Arc agent, deploys the Azure Monitoring extension, and removes the log analytics extension or agent on Linux hosts. | -| `playbook_enable_arc_azure_monitor.yml` | `roles.arc` | Enables the Azure Monitor extension on servers that have the Azure Arc agent installed. | -| `playbook_enable_arc_extension.yml` | `roles.arc` | Enables an Azure Arc extension. | -| `playbook_disable_arc_extension.yml` | `roles.arc` | Disables an Azure Arc extension. | -| `playbook_proxmox_vm_migration.yml` | 1. `roles.vm_to_azure_prep`
2. `roles.proxmox_vm_convertion`
3. `roles.vm_to_azure` | Prepares a local Proxmox virtual machine to run in Azure, uploads the disk image, and creates an Azure virtual machine. | +| `create_transit_network.yml` | `roles.transit_peered_networks` | A playbook to create a multi-VPC hub-and-spoke network configuration using a transit gateway with DMZ and private networks. | +| `delete_transit_network.yml` | `roles.transit_peered_networks` | Deletes AWS resources created in the `create_transit_network` playbook. | +| `create_resource_group.yml` | N/A | Simple playbook demonstrating how to create an Azure resource group from extra vars. | +| `create_vm.yml` | `roles.vms` | A playbook that allows for VM creation using blueprints of defined variables. | +| `delete_vm.yml` | `roles.vms` | Deletes virtual machines and connected resources | +| `delete_resource_group.yml` | N/A | Deletes a resource group and all resources within it. | +| `update_rhel_vms.yml` | N/A | Runs `dnf upgrade -y` on RHEL VMs. | +| `create_log_analytics_workspace.yml` | `role.log_analytics` | Creates a Log Analytics workspace for storing log data with logging extensions. | +| `install_log_analytics_agent.yml` | `roles.log_analytics` | Deploys a Log Analytics workspace into your Azure subscription and then installs and configures Linux hosts to communicate with the workspace. | +| `uninstall_log_analytics_agent.yml` | `roles.log_analytics` | Uninstalls the Log Analytics agent on Linux hosts and then deletes the Log Analytics workspace from your Azure subscription. | +| `install_arc_agent.yml` | `roles.arc` | Installs the Azure Arc agent on inventory hosts. | +| `replace_log_analytics_with_arc_linux.yml` | `roles.arc` | Installs the Arc agent, deploys the Azure Monitoring extension, and removes the log analytics extension or agent on Linux hosts. | +| `enable_arc_azure_monitor.yml` | `roles.arc` | Enables the Azure Monitor extension on servers that have the Azure Arc agent installed. | +| `enable_arc_extension.yml` | `roles.arc` | Enables an Azure Arc extension. | +| `disable_arc_extension.yml` | `roles.arc` | Disables an Azure Arc extension. | +| `proxmox_vm_migration.yml` | 1. `roles.vm_to_azure_prep`
2. `roles.proxmox_vm_convertion`
3. `roles.vm_to_azure` | Prepares a local Proxmox virtual machine to run in Azure, uploads the disk image, and creates an Azure virtual machine. | #### Create Network Playbooks @@ -126,7 +126,7 @@ rhel.vm.hostname ansible_user="ansible" ansible_ssh_private_key_file="/home/runn ##### Running the Playbook ```bash -ansible-navigator run playbook_proxmox_vm_migration.yml \ +ansible-navigator run azure.infrastructure_config_demos.proxmox_vm_migration \ -i inventory/hosts \ --pae false \ --mode stdout \ @@ -136,7 +136,7 @@ ansible-navigator run playbook_proxmox_vm_migration.yml \ --eev $HOME/.ssh:/home/runner/.ssh \ --eev $HOME/.azure:/runner/.azure \ --eev /tmp:/tmp \ ---extra-vars "@env/playbook_proxmox_vm_migration_extra_vars.yml" \ +--extra-vars "@env/proxmox_vm_migration_extra_vars.yml" \ --extra-vars "proxmox_api_host=$PROXMOX_API_HOSTNAME" \ --extra-vars "proxmox_api_user=$PROXMOX_USER" \ --extra-vars "proxmox_api_token=$PROXMOX_API_TOKEN" \ diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml new file mode 100644 index 0000000..09ef653 --- /dev/null +++ b/changelogs/.plugin-cache.yaml @@ -0,0 +1,19 @@ +objects: + role: {} +plugins: + become: {} + cache: {} + callback: {} + cliconf: {} + connection: {} + filter: {} + httpapi: {} + inventory: {} + lookup: {} + module: {} + netconf: {} + shell: {} + strategy: {} + test: {} + vars: {} +version: 1.7.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 82b08b2..787101b 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1,20 +1,32 @@ ---- ancestor: 1.4.2 releases: 1.5.0: - release_date: "2023-07-13" changes: - release_summary: Added the release changelog. minor_changes: - Required Ansible Lint rule for change logs. + release_summary: Added the release changelog. + release_date: "2023-07-13" 1.6.0: - release_date: "2023-07-18" changes: - release_summary: Added VM blueprints and simple VNET role. - major_changes: - - Added a VNET role to provide an example of simple VNET creation. breaking_changes: - - Removed OS-specific playbook and role tasks and created a generic VM creation model based on VM blueprints. - Added and removed playbooks to account for role changes. + - Removed OS-specific playbook and role tasks and created a generic VM creation + model based on VM blueprints. + major_changes: + - Added a VNET role to provide an example of simple VNET creation. minor_changes: - Readme updates + release_summary: Added VM blueprints and simple VNET role. + release_date: "2023-07-18" + 1.7.0: + changes: + breaking_changes: + - Playbook paths have changed. + major_changes: + - Moved playbooks into playbooks folder so that playbooks may be called from + `namespace.collection.playbook` syntax. + - Updated dependency versions. + release_summary: + Moved playbooks into playbooks folder and updated dependency + versions. + release_date: "2023-07-18" diff --git a/galaxy.yml b/galaxy.yml index 3a458ba..ba8eea3 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: azure name: infrastructure_config_demos -version: 1.6.0 +version: 1.7.0 readme: README.md authors: - Scott Harwell diff --git a/playbook_create_log_analytics_workspace.yml b/playbooks/create_log_analytics_workspace.yml similarity index 100% rename from playbook_create_log_analytics_workspace.yml rename to playbooks/create_log_analytics_workspace.yml diff --git a/playbook_create_resource_group.yml b/playbooks/create_resource_group.yml similarity index 100% rename from playbook_create_resource_group.yml rename to playbooks/create_resource_group.yml diff --git a/playbook_create_transit_network.yml b/playbooks/create_transit_network.yml similarity index 100% rename from playbook_create_transit_network.yml rename to playbooks/create_transit_network.yml diff --git a/playbook_create_vm.yml b/playbooks/create_vm.yml similarity index 100% rename from playbook_create_vm.yml rename to playbooks/create_vm.yml diff --git a/playbook_create_vnet.yml b/playbooks/create_vnet.yml similarity index 100% rename from playbook_create_vnet.yml rename to playbooks/create_vnet.yml diff --git a/playbook_delete_resource_group.yml b/playbooks/delete_resource_group.yml similarity index 100% rename from playbook_delete_resource_group.yml rename to playbooks/delete_resource_group.yml diff --git a/playbook_delete_transit_network.yml b/playbooks/delete_transit_network.yml similarity index 100% rename from playbook_delete_transit_network.yml rename to playbooks/delete_transit_network.yml diff --git a/playbook_delete_vm.yml b/playbooks/delete_vm.yml similarity index 100% rename from playbook_delete_vm.yml rename to playbooks/delete_vm.yml diff --git a/playbook_delete_vnet.yml b/playbooks/delete_vnet.yml similarity index 100% rename from playbook_delete_vnet.yml rename to playbooks/delete_vnet.yml diff --git a/playbook_disable_arc_extension.yml b/playbooks/disable_arc_extension.yml similarity index 100% rename from playbook_disable_arc_extension.yml rename to playbooks/disable_arc_extension.yml diff --git a/playbook_enable_arc_extension.yml b/playbooks/enable_arc_extension.yml similarity index 100% rename from playbook_enable_arc_extension.yml rename to playbooks/enable_arc_extension.yml diff --git a/playbook_install_arc_agent.yml b/playbooks/install_arc_agent.yml similarity index 100% rename from playbook_install_arc_agent.yml rename to playbooks/install_arc_agent.yml diff --git a/playbook_install_log_analytics_agent.yml b/playbooks/install_log_analytics_agent.yml similarity index 100% rename from playbook_install_log_analytics_agent.yml rename to playbooks/install_log_analytics_agent.yml diff --git a/playbook_proxmox_vm_migration.yml b/playbooks/proxmox_vm_migration.yml similarity index 100% rename from playbook_proxmox_vm_migration.yml rename to playbooks/proxmox_vm_migration.yml diff --git a/playbook_replace_log_analytics_with_arc_linux.yml b/playbooks/replace_log_analytics_with_arc_linux.yml similarity index 100% rename from playbook_replace_log_analytics_with_arc_linux.yml rename to playbooks/replace_log_analytics_with_arc_linux.yml diff --git a/playbook_uninstall_log_analytics_agent.yml b/playbooks/uninstall_log_analytics_agent.yml similarity index 100% rename from playbook_uninstall_log_analytics_agent.yml rename to playbooks/uninstall_log_analytics_agent.yml diff --git a/playbook_update_rhel_vms.yml b/playbooks/update_rhel_vms.yml similarity index 100% rename from playbook_update_rhel_vms.yml rename to playbooks/update_rhel_vms.yml diff --git a/requirements.yml b/requirements.yml index 5e4b3b4..825bc92 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,8 +1,8 @@ --- collections: - name: azure.azcollection - version: 1.16.0 + version: 1.18.1 - name: ansible.windows version: 2.0.0 - name: community.general - version: 7.1.0 + version: 8.0.0