blob: eeb76bbb60383c90d3d2f3f127a1a0ec94b10115 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
openshift_aws_sg
=========
Ansible role to create an aws security groups
Requirements
------------
Ansible Modules:
Role Variables
--------------
- r_openshift_aws_sg_clusterid: myclusterid
- r_openshift_aws_sg_region: us-east-1
- r_openshift_aws_sg_type: master|infra|compute
```yaml
# defaults/main.yml
default:
name: "{{ r_openshift_aws_sg_clusterid }}"
desc: "{{ r_openshift_aws_sg_clusterid }} default"
rules:
- proto: tcp
from_port: 22
to_port: 22
cidr_ip: 0.0.0.0/0
- proto: all
from_port: all
to_port: all
group_name: "{{ r_openshift_aws_sg_clusterid }}"
```
Dependencies
------------
Example Playbook
----------------
```yaml
- name: create security groups for master
include_role:
name: openshift_aws_sg
vars:
r_openshift_aws_sg_clusterid: mycluster
r_openshift_aws_sg_region: us-east-1
r_openshift_aws_sg_type: master
```
License
-------
Apache 2.0
Author Information
------------------
Openshift
|