asc.ap.core_ap role – Deploy the A&P environment’s core infrastructure

Note

This role is part of the asc.ap collection (version 2.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/ap $HOME/.ansible/collections/ansible_collections/asc/ap.

To use it in a playbook, specify: asc.ap.core_ap.

Entry point main – Deploy the A&P environment’s core infrastructure

Synopsis

  • Deploys the Attack & Penetration environment on top of asc.core: its virtual networks and subnets, the peerings back to the core services network, and the environment-specific resources the other ap roles build on.

Parameters

Parameter

Comments

core_ap_config

dictionary

‘core_ap’ role configuration

enabled

boolean

Whether to enable the core A&P infrastructure

Choices:

  • false ← (default)

  • true

core_ap_vnets_config

dictionary

added in asc.ap 2.0.0

Virtual networks for the A&P environment, keyed by vnet name.

Each vnet takes address_space (a CIDR) and subnets, a dict of subnet name to its address_space; a subnet may set allow_all: true to add an allow-all inbound NSG rule.

Merged with the other modules’ vnets into common_vnets_config. See the role defaults for the default layout.

core_ap_vnets_peering

list / elements=dictionary

added in asc.ap 2.0.0

Virtual network peerings for the A&P environment, each a primary/secondary pair of vnet names.

Merged with the other modules’ peerings into common_vnets_peering; each peering is created in both directions.

Default: [{"primary": "services", "secondary": "ap"}]

primary

string / required

Name of the first vnet.

secondary

string / required

Name of the second vnet.

Authors

  • Ignace De Cock