Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eumel8/otc_secgroup
https://github.com/eumel8/otc_secgroup
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eumel8/otc_secgroup
- Owner: eumel8
- Created: 2018-08-09T11:39:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T05:23:13.000Z (over 3 years ago)
- Last Synced: 2024-10-16T08:48:06.877Z (2 months ago)
- Language: Jinja
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
otc_secgroup
============OTC role for security groups. This role creates security groups defined
for an ECS and creates the rules. The rules are defined in an extra section.
Standard rules will be removed before the defined rules are created.Variables:
^^^^^^^^^^+-------------------------+---------------------------------------------+
| Name | Description |
+=========================+=============================================+
| secgroup_name | name of Secgroup |
+-------------------------+---------------------------------------------+
| secgroup_id | id of Secgroup |
+-------------------------+---------------------------------------------+
| secgroup_ids | list of secgroup_ids (to bind on ECS |
+-------------------------+---------------------------------------------+
| secgroups | list of secgroups in ecs section |
+-------------------------+---------------------------------------------+
| secgrouprules | list of rules for a security group |
+-------------------------+---------------------------------------------+
| secgrouprule_id | id of a secgroup rule |
+-------------------------+---------------------------------------------+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: subnet will create during ECS creating workflow
Show::
./grole otc_secgroup; ansible-playbook roles.yml -e "secgroup_name=ansible-secgroup01" -e "localaction=show"
List::
./grole otc_secgroup; ansible-playbook roles.yml -e "localaction=list"
./grole otc_secgroup; ansible-playbook roles.yml -e "vpc_id=1234567891234567890" -e "localaction=list"
./grole otc_vpc otc_secgroup; ansible-playbook roles.yml -e "vpc_name=ansible-vpc01" -e "localaction=list"
Delete::
./grole otc_secgroup; ansible-playbook roles.yml -e "secgroup_name=ansible-secgroup01" -e "localaction=delete"