Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eumel8/otc_vpc


https://github.com/eumel8/otc_vpc

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

otc_vpc
=======

OTC role for VPC.

Variables:
^^^^^^^^^^

+-------------------------+---------------------------------------------+
| Name | Description |
+=========================+=============================================+
| localaction=router | Information about VPC Router as fact |
+-------------------------+---------------------------------------------+
| localaction=snat | Configure SNAT on VPC |
+-------------------------+---------------------------------------------+
| enable_snat=true|false | Enable or disable SNAT |
+-------------------------+---------------------------------------------+
| vpc_name | name of VPC |
+-------------------------+---------------------------------------------+
| vpc_id | id of VPC |
+-------------------------+---------------------------------------------+
| waitfor | wait for VPC creation (true or false) |
+-------------------------+---------------------------------------------+

Functions:
^^^^^^^^^^

Create::

ansible-playbook tenant_yml.yml -e "ecs_name=ansible-test01" -e "localaction=create"

ansible-playbook tenant_ini.yml -e "ecs_name=ansible-test01" -e "localaction=create"

ansible-playbook tenant_json.yml -e "ecs_name=ansible-test01" -e "localaction=create"

note: VPC will create during ECS creating workflow

Show::

./grole otc_vpc; ansible-playbook roles.yml -e "vpc_name=ansible-vpc01" -e "localaction=show"

List::

./grole otc_vpc; ansible-playbook roles.yml -e "localaction=list"

Delete::

./grole otc_vpc; ansible-playbook roles.yml -e "vpc_name=ansible-vpc01" -e "localaction=delete"