7de39925d0
Add a script that does a best effort conversion of a heat network-config tempalte to an ansible j2 network-config template. The script uses a networks data file as input to genereta a map of Heat Parameters to ansible vars. For parameters not in the generated map the stack environment is used, parameter values from the stack environment is hard-coded in the j2 template. A j2 comment is added whenever a value was hard coded, in a header comment and also an inline comment if possible. NOTE: The j2 reference files in the unit tests was created by converting heat templates. Change-Id: I8165a077b87307ca3c2ebee54703a939517dc9bf
18 lines
567 B
YAML
18 lines
567 B
YAML
parameters: {}
|
|
resource_registry: {}
|
|
parameter_defaults:
|
|
StorageSupernet: 172.18.0.0/16
|
|
StorageMgmtSupernet: 172.19.0.0/16
|
|
InternalApiSupernet: 172.20.0.0/16
|
|
TenantSupernet: 172.21.0.0/16
|
|
ExternalSupernet: 172.200.0.0/16
|
|
ControlPlaneDefaultRoute: 172.16.0.200
|
|
ControlPlaneSubnetCidr: '24'
|
|
ControlPlaneEdge1DefaultRoute: 172.16.1.201
|
|
ControlPlaneEdge1SubnetCidr: '24'
|
|
ControlPlaneEdge2DefaultRoute: 172.16.2.202
|
|
ControlPlaneEdge2SubnetCidr: '24'
|
|
EC2MetadataIp: 172.16.0.200
|
|
Edge1EC2MetadataIp: 172.16.1.201
|
|
Edge2EC2MetadataIp: 172.16.2.202
|