main.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. r_openshift_aws_sg_sg:
  3. default:
  4. name: "{{ r_openshift_aws_sg_clusterid }}"
  5. desc: "{{ r_openshift_aws_sg_clusterid }} default"
  6. rules:
  7. - proto: tcp
  8. from_port: 22
  9. to_port: 22
  10. cidr_ip: 0.0.0.0/0
  11. - proto: all
  12. from_port: all
  13. to_port: all
  14. group_name: "{{ r_openshift_aws_sg_clusterid }}"
  15. master:
  16. name: "{{ r_openshift_aws_sg_clusterid }}_master"
  17. desc: "{{ r_openshift_aws_sg_clusterid }} master instances"
  18. rules:
  19. - proto: tcp
  20. from_port: 80
  21. to_port: 80
  22. cidr_ip: 0.0.0.0/0
  23. - proto: tcp
  24. from_port: 443
  25. to_port: 443
  26. cidr_ip: 0.0.0.0/0
  27. compute:
  28. name: "{{ r_openshift_aws_sg_clusterid }}_compute"
  29. desc: "{{ r_openshift_aws_sg_clusterid }} compute node instances"
  30. infra:
  31. name: "{{ r_openshift_aws_sg_clusterid }}_infra"
  32. desc: "{{ r_openshift_aws_sg_clusterid }} infra node instances"
  33. rules:
  34. - proto: tcp
  35. from_port: 80
  36. to_port: 80
  37. cidr_ip: 0.0.0.0/0
  38. - proto: tcp
  39. from_port: 443
  40. to_port: 443
  41. cidr_ip: 0.0.0.0/0
  42. - proto: tcp
  43. from_port: 30000
  44. to_port: 32000
  45. cidr_ip: 0.0.0.0/0
  46. etcd:
  47. name: "{{ r_openshift_aws_sg_clusterid }}_etcd"
  48. desc: "{{ r_openshift_aws_sg_clusterid }} etcd instances"