Terrajinja extension for automation using cdktf
Project description
terrajinja-sbp-vcd
This is an extension to the vault provider for the following modules. The original documentation can be found here
SBP Specific implementations
Here is a list of supported resources and their modifications
sbp.vcd.network_routed_v2
Original provider: vcd.network_routed_v2
This custom provider adds the following:
- simplified and generic input for a network subnet
old parameter | new parameter | description |
---|---|---|
static_ip_pool gateway prefix_length |
cidr | the cidr parameter calculates and fills in the 3 replaced values. |
dns1 dns2 |
dns | dns is an array of dns servers, and automticly fills dns1 and dns2 |
terrajinja-cli example
the following is a code snipet you can used in a terrajinja-cli template file.
This reads the VCD group
and Edge name
and creates a network named mynetwork
with the given parameters.
terraform:
resources:
- task: read-virtual-datacenter-group
module: vcd.data_vcd_vdc_group
parameters:
name: my_vdc
- task: read-edge-gateway
module: vcd.data_vcd_nsxt_edgegateway
parameters:
name: my_vdc_edge
owner_id: $read-virtual-datacenter-group.id
- task: my-network-backend
module: sbp.vcd.network_routed_v2
parameters:
edge_gateway_id: $read-edge-gateway.id
name: mynetwork
cidr: 10.10.10.0/28
dns: ["10.10.20.2", "10.10.20.3"]
dns_suffix: my_domain.local
sbp.vcd.vm_internal_disk
Original provider: vcd.vm_internal_disk
sbp.vcd.vm
Original provider: vcd.vm
sbp.vcd.rde
Original provider: vcd.rde
sbp.vcd.nsxt_nat_rule
Original provider: vcd.nsxt_nat_rule
sbp.vcd.nsxt_ip_set
Original provider: vcd.nsxt_ip_set
sbp.vcd.nsxt_alb_virtual_service
Original provider: vcd.nsxt_alb_virtual_service
sbp.vcd.nsxt_firewall
Original provider: vcd.nsxt_firewall
sbp.vcd.nsxt_distributed_firewall
Original provider: vcd.nsxt_distributed_firewall
sbp.vcd.nsxt_app_port_profile
Original provider: vcd.nsxt_app_port_profile
sbp.vcd.nsxt_alb_virtual_service
Original provider: vcd.nsxt_alb_virtual_service
sbp.vcd.nsxt_alb_pool
Original provider: vcd.nsxt_alb_pool
sbp.vcd.data_vcd_vm_placement_policy
Original provider: vcd.data_vcd_vm_placement_policy
sbp.vcd.data_vcd_nsxt_alb_edgegateway_service_engine_group
Original provider: vcd.data_vcd_nsxt_alb_edgegateway_service_engine_group
sbp.vcd.data_vcd_catalog_vapp_template
Original provider: vcd.data_vcd_catalog_vapp_template
History
0.0.1 (14-03-2024)
- First code creation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for terrajinja_sbp_vcd-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25eb4bbf0233aee5b7823c4d541622b2e201b4cb83f1d3bec959f66c568e7dc |
|
MD5 | 991a43bd030996d3292a4872015c864f |
|
BLAKE2b-256 | 3a875d4f649f33844032754186b6b9252c5db8fe38134c9e1f433d68206d2443 |