Skip to content

Commit

Permalink
Update to account for dependent collection updates (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottharwell authored Nov 3, 2023
1 parent 3e9e315 commit 1704b44
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 79 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,32 @@ Aoc.Controller_Demo_Config Release Notes

This changelog describes changes after version 3.0.0.

v4.2.0
======

Release Summary
---------------

Updates to dependent collections.

Major Changes
-------------

- Moved playbook to playbooks folder.

Minor Changes
-------------

- Updated for changes to dependent collections.

v4.1.1
======

Release Summary
---------------

Added azure tags to job templates.

Minor Changes
-------------

Expand Down
67 changes: 39 additions & 28 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,61 +3,72 @@ releases:
4.0.0:
changes:
breaking_changes:
- All variable names have been edited and refactored. See ``roles/controller/defaults/main.yml``
for new variables and structure.
- All variable names have been edited and refactored. See ``roles/controller/defaults/main.yml``
for new variables and structure.
major_changes:
- Flags to deploy validated content, content lab content, or both.
- Separated the ability to deploy validated content and content lab content.
- Flags to deploy validated content, content lab content, or both.
- Separated the ability to deploy validated content and content lab content.
minor_changes:
- Introduced change log.
release_summary: Refactored the collection with the intent of having a general
- Introduced change log.
release_summary:
Refactored the collection with the intent of having a general
use as a PoC for seeding content into automation controller.
fragments:
- 1-seeded-content-refactor.yml
release_date: '2023-07-19'
- 1-seeded-content-refactor.yml
release_date: "2023-07-19"
4.0.1:
changes:
minor_changes:
- Removed requirements.yml
- Removed requirements.yml
release_summary: Removed requirements.yml to push dependency to EE.
fragments:
- remove-requirements.yml
release_date: '2023-07-19'
- remove-requirements.yml
release_date: "2023-07-19"
4.0.2:
changes:
minor_changes:
- Removed assertions prior to playbook run.
release_summary: Removed assertions prior to playbook run that were no longer
- Removed assertions prior to playbook run.
release_summary:
Removed assertions prior to playbook run that were no longer
needed.
release_date: '2023-07-19'
release_date: "2023-07-19"
4.0.3:
changes:
minor_changes:
- Fixes to ensure that seeded content would deploy properly on AAP.
release_summary: Fixes to ensure that seeded content would deploy properly on
- Fixes to ensure that seeded content would deploy properly on AAP.
release_summary:
Fixes to ensure that seeded content would deploy properly on
AAP.
fragments:
- controller-fixes.yml
release_date: '2023-07-19'
- controller-fixes.yml
release_date: "2023-07-19"
4.1.0:
changes:
breaking_changes:
- Changed variables that start with ``azure_`` to ``azure.``.
- Changed variables that start with ``azure_`` to ``azure.``.
major_changes:
- Added AWS job templates.
- Added GitHub Workflows tests.
- Added AWS job templates.
- Added GitHub Workflows tests.
minor_changes:
- Readme updates to account for the new content added.
- Readme updates to account for the new content added.
release_summary: Adding AWS content to the cloud content lab seeded content.
fragments:
- 2-added-aws-content.yml
release_date: '2023-07-22'
- 2-added-aws-content.yml
release_date: "2023-07-22"
4.1.1:
changes:
minor_changes:
- Added azure tag to job templates.
- Bumped pre-commit tool versions.
- Added azure tag to job templates.
- Bumped pre-commit tool versions.
release_summary: Added azure tags to job templates.
fragments:
- 4-azure-tags.yml
release_date: '2023-08-08'
- 4-azure-tags.yml
release_date: "2023-08-08"
4.2.0:
changes:
major_changes:
- Moved playbook to playbooks folder.
minor_changes:
- Updated for changes to dependent collections.
release_summary: Updates to dependent collections.
release_date: "2023-11-03"
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: aoc
name: controller_demo_config
version: 4.1.1
version: 4.2.0
authors:
- Scott Harwell <[email protected]>
description: A collection of content for setting up Ansible on Cloud demos rapidly.
Expand Down
File renamed without changes.
14 changes: 7 additions & 7 deletions roles/controller/tasks/job_templates/content_lab_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.create_rhel_vm.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_vm.yml
playbook: playbooks/create_vm.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
create_vm_aws_region: "{{ aws.region }}"
Expand Down Expand Up @@ -34,7 +34,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.delete_rhel_vm.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_vm.yml
playbook: playbooks/create_vm.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
aws_region: "{{ aws.region }}"
Expand All @@ -57,7 +57,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.create_peer_network.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_peer_network.yml
playbook: playbooks/create_peer_network.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
aws_region: "{{ aws.region }}"
Expand All @@ -83,7 +83,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.delete_peer_network.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_delete_peer_network.yml
playbook: playbooks/delete_peer_network.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
aws_region: "{{ aws.region }}"
Expand All @@ -105,7 +105,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.create_reports.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_reports.yml
playbook: playbooks/create_reports.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
reports_aws_region: "{{ aws.region }}"
Expand All @@ -127,7 +127,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.create_transit_network.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_transit_network.yml
playbook: playbooks/create_transit_network.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
aws_region: "{{ aws.region }}"
Expand Down Expand Up @@ -159,7 +159,7 @@
ansible.controller.job_template:
name: "{{ job_templates.aws.delete_transit_network.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_delete_transit_network.yml
playbook: playbooks/delete_transit_network.yml
project: "{{ projects.aws_lab_roles.name }}"
extra_vars:
aws_region: "{{ aws.region }}"
Expand Down
60 changes: 17 additions & 43 deletions roles/controller/tasks/job_templates/content_lab_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Create Resource Group
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_resource_group.yml
playbook: playbooks/create_resource_group.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -23,7 +23,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.vnet.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_vnet.yml
playbook: playbooks/create_vnet.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -48,7 +48,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.create_rhel_vm.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_vm.yml
playbook: playbooks/create_vm.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand Down Expand Up @@ -84,7 +84,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.delete_rhel_vm.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_delete_vm.yml
playbook: playbooks/delete_vm.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -108,7 +108,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Create Windows Server VM
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_vm.yml
playbook: playbooks/create_vm.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand Down Expand Up @@ -140,7 +140,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Delete Windows VM
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_delete_vm.yml
playbook: playbooks/delete_vm.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -164,7 +164,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Delete Resource Group
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_delete_resource_group.yml
playbook: playbooks/delete_resource_group.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -185,7 +185,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Create Network Peering Demo
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_transit_network.yml
playbook: playbooks/create_transit_network.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -211,7 +211,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Delete Network Peering Demo
project: "{{ projects.azure_lab_roles.name }}"
playbook: playbook_delete_transit_network.yml
playbook: playbooks/delete_transit_network.yml
inventory: "{{ inventories.localhost.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -234,7 +234,7 @@
name: "{{ job_templates.azure.dnf_update.name }}"
job_type: run
project: "{{ projects.azure_lab_roles.name }}"
playbook: playbook_update_rhel_vms.yml
playbook: playbooks/update_rhel_vms.yml
inventory: "{{ inventories.azure.name }}"
limit: rhel
credentials:
Expand All @@ -256,7 +256,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.install_arc_agent.name }}"
inventory: "{{ inventories.azure.name }}"
playbook: playbook_install_arc_agent.yml
playbook: playbooks/install_arc_agent.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand Down Expand Up @@ -288,7 +288,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Enable Arc Extensions
inventory: "{{ inventories.azure.name }}"
playbook: playbook_enable_arc_extension.yml
playbook: playbooks/enable_arc_extension.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group: "{{ azure.resource_group }}"
Expand All @@ -312,7 +312,7 @@
ansible.controller.job_template:
name: Content Lab - Azure - Disable Arc Extensions
inventory: "{{ inventories.azure.name }}"
playbook: playbook_disable_arc_extension.yml
playbook: playbooks/disable_arc_extension.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
resource_group_name: "{{ azure.resource_group }}"
Expand All @@ -336,7 +336,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.replace_log_analytics_with_azure_monitor.name }}"
inventory: "{{ inventories.azure.name }}"
playbook: playbook_replace_log_analytics_with_arc_linux.yml
playbook: playbooks/replace_log_analytics_with_arc_linux.yml
project: "{{ projects.azure_lab_roles.name }}"
extra_vars:
region: "{{ azure.region }}"
Expand All @@ -359,7 +359,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.create_log_analytics_ws.name }}"
inventory: "{{ inventories.localhost.name }}"
playbook: playbook_create_log_analytics_workspace.yml
playbook: playbooks/create_log_analytics_workspace.yml
project: "{{ projects.azure_lab_roles.name }}"
credentials:
- "{{ credentials.ssh.name }}"
Expand All @@ -383,7 +383,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.install_log_analytics.name }}"
inventory: "{{ inventories.azure.name }}"
playbook: playbook_install_log_analytics_agent.yml
playbook: playbooks/install_log_analytics_agent.yml
project: "{{ projects.azure_lab_roles.name }}"
credentials:
- "{{ credentials.ssh.name }}"
Expand All @@ -410,7 +410,7 @@
ansible.controller.job_template:
name: "{{ job_templates.azure.uninstall_log_analytics.name }}"
inventory: "{{ inventories.azure.name }}"
playbook: playbook_uninstall_log_analytics_agent.yml
playbook: playbooks/uninstall_log_analytics_agent.yml
project: "{{ projects.azure_lab_roles.name }}"
credentials:
- "{{ credentials.ssh.name }}"
Expand All @@ -427,29 +427,3 @@
tags:
- templates
- azure

- name: Content Lab - Run Ephemeral Workload Test
ansible.controller.job_template:
name: Content Lab - Azure Demos - Ephemeral Workload Test
job_type: run
project: "{{ projects.azure_demo_project.name }}"
playbook: project/emphemeral_workload_test.yml
inventory: "{{ inventories.localhost.name }}"
credentials:
- "{{ credentials.azure_service_principal.name }}"
- "{{ credentials.controller.name }}"
- "{{ credentials.ssh.name }}"
become_enabled: true
job_slice_count: 1
state: present
when:
- (seed_lab_content | bool)
- credentials.azure_service_principal.name is defined
- credentials.ssh.name is defined
- credentials.controller.name is defined
- projects.azure_demo_project.name is defined
- inventories.localhost.name is defined
register: ephemeral_workload_template
tags:
- templates
- azure

0 comments on commit 1704b44

Please sign in to comment.