Skip to content

HCL generator for Terraform - it generates the HCL configuration file with the vCloud Director resources.

License

Notifications You must be signed in to change notification settings

ewypych/hcl-edge-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCL files generator for vCloud Director Build Status

This script generates the HCL files containing vCloud Director Provider configuration files. It comprises DNAT, SNAT and Firewall section. For proper work, script needs a valid CSV files with rules should be created. It can be useful during the Edge migration or deployment with the big amount of rules.

Example of use

chmod +x hcl_edge_gen.py
python hcl_edge_gen.py -d dnatfile.csv --snat=snatfile.csv

Requirements

Script needs at least Python 2.7. It was not tested with the earlier version. You can check Travis CI output for more information about tested environments.

CSV files scheme

There are three different CSV files needed by the script:

  • datadnat.csv with DNAT rules
  • datasnat.csv with SNAT rules
  • datafw.csv with Firewall rules

Files can have another names (you can specify them with the script arguments), but must have the following fieldnames and order:

DNAT CSV Edge_Name, External_IP, Port, Internal_IP, Translated Port

SNAT CSV Edge_Name, External_IP, Internal_IP

Firewall CSV Edge_Name, Description, Policy, Protocol, Destination_port, destination_IP, Source_port, Source_ip

More information

You can find more information in this post.

License

MIT

Author

Emil Wypych @gmail

About

HCL generator for Terraform - it generates the HCL configuration file with the vCloud Director resources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages