1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library/cloud
Maykel Moya 649fcd3e1c ec2_group: Auto create missing groups referenced in rules
Suppose a pair of groups, A and B, depending on each other. One solution
for breaking the circular dependency at playbook level:

    - declare group A without dependencies
    - declare group B depending on A
    - declare group A depending on B

This patch breaks the dependency at module level. Whenever a depended-on
group is missing it's first created. This approach requires only two tasks:

    - declare group A depending on B (group B will be auto created)
    - declare group B depending on A

When creating a group EC2 requires you to pass the group description. In
order to fullfil this, rules now accept the `group_desc` param. Note
that group description can't be changed once the group is created so
it's nice to keep descriptions in sync.

Concrete example:

- ec2_group:
    name: mysql-client
    description: MySQL Client
    rules_egress:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-server
        group_desc: MySQL Server

- ec2_group:
    name: mysql-server
    description: MySQL Server
    rules:
      - proto: tcp
        from_port: 3306
        to_port: 3306
        group_name: mysql-client
2014-03-20 17:24:17 +01:00
..
cloudformation Fix for #6365: cloudformation module fails to update if stack exists 2014-03-10 13:11:09 +01:00
digital_ocean Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 15:42:45 -05:00
digital_ocean_domain Fix version_added and snippet imports on new digital ocean modules 2014-03-11 15:43:59 -04:00
digital_ocean_sshkey Fix version_added and snippet imports on new digital ocean modules 2014-03-11 15:43:59 -04:00
docker docker: add tty and stdin_open options 2014-03-18 11:57:01 +00:00
docker_image Removes pluralization of manager tag attribute. 2014-03-04 10:07:32 -05:00
ec2 assign_public_ip was actually added in 1.5 2014-03-20 09:21:10 -05:00
ec2_ami Updating profile/security_token version_added labels 2014-03-11 10:48:16 -05:00
ec2_ami_search Fix typo in example name 2014-03-15 19:16:14 +13:00
ec2_asg Made load_balencers in ec2_lc non-required as not all ASGs require an ELB 2014-03-14 22:39:57 +00:00
ec2_eip Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 15:44:34 -05:00
ec2_elb Update version_added for wait_timeout parameter on elb module. 2014-03-11 11:22:17 -04:00
ec2_elb_lb Set version-added for new parameters in ec2_elb_lb and elasticache 2014-03-11 11:44:47 -04:00
ec2_facts Adding validate_certs to all modules that use fetch_url 2014-03-12 10:19:54 -05:00
ec2_group ec2_group: Auto create missing groups referenced in rules 2014-03-20 17:24:17 +01:00
ec2_key Updating profile/security_token version_added labels 2014-03-11 10:48:16 -05:00
ec2_lc Fix docs for ec2_lc module. 2014-03-14 12:01:23 -04:00
ec2_metric_alarm add notes about new AWS modules. 2014-03-19 17:26:59 -04:00
ec2_scaling_policy Added AWS modules ec2_scaling_policy and ec2_metricalarm for configuring scaling policies for autoscaling groups, and metric alarms. 2014-03-18 10:32:55 +10:00
ec2_snapshot Fix typo 2014-03-17 00:23:16 +13:00
ec2_tag Updating profile/security_token version_added labels 2014-03-11 10:48:16 -05:00
ec2_vol Update docstrings in ec2_vol 2014-03-11 12:02:04 -04:00
ec2_vpc Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 22:36:44 -05:00
elasticache Set version-added for new parameters in ec2_elb_lb and elasticache 2014-03-11 11:44:47 -04:00
gc_storage ansible -> ansibleworks 2014-01-28 20:29:41 -05:00
gce Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 22:39:42 -05:00
gce_lb Add credential parameters to the GCE modules. 2014-03-04 19:27:49 -08:00
gce_net Add credential parameters to the GCE modules. 2014-03-04 19:27:49 -08:00
gce_pd Add credential parameters to the GCE modules. 2014-03-04 19:27:49 -08:00
glance_image reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
keystone_user reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
linode fix linode typo 2014-02-07 20:47:57 -05:00
nova_compute nova_compute: Adding the version_added flag to user_data. 2014-03-11 13:45:04 -05:00
nova_keypair bug 5959: https://github.com/ansible/ansible/issues/5959 2014-03-11 13:41:50 -04:00
ovirt Use ovirtsdk if it installed, but fall out gracefully if it is not 2013-12-03 20:21:16 +08:00
quantum_floating_ip reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_floating_ip_associate reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_network reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_router reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_router_gateway reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_router_interface reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
quantum_subnet Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 22:43:01 -05:00
rax Bulk update of choices=BOOLEANS to type='bool' 2014-03-11 22:46:53 -05:00
rax_clb Merge pull request #4941 from sivel/rax-clb-shared-vip 2014-01-29 16:14:29 -08:00
rax_clb_nodes Add ansible.module_utils.rax 2013-11-21 15:46:25 -06:00
rax_dns Remove errant raise 2013-12-06 16:49:28 -06:00
rax_dns_record Spelling correction 2014-02-14 10:47:27 -06:00
rax_facts Merge pull request #5941 from sivel/rax-name-search-opts 2014-02-26 05:56:39 -05:00
rax_files Documentation updates 2014-03-13 16:18:50 -05:00
rax_files_objects Documentation updates 2014-03-13 16:18:50 -05:00
rax_identity Add rax_identity module 2014-02-10 22:40:38 -05:00
rax_keypair The OpenStack auth attributes apply to rax_keypair also 2014-02-11 14:25:13 -06:00
rax_network Add ansible.module_utils.rax 2013-11-21 15:46:25 -06:00
rax_queue Add rax_queue module to create/delete Rackspace Cloud Queues 2014-01-24 11:14:25 -05:00
rds Add new cloud/rds DB instance types (db.m3 and db.cr1 families) 2014-03-03 19:59:27 -08:00
rds_param_group Adds modules for managing Amazon RDS parameter and subnet groups. 2014-03-02 19:36:07 -05:00
rds_subnet_group Adds modules for managing Amazon RDS parameter and subnet groups. 2014-03-02 19:36:07 -05:00
route53 Fixed references to missing method in ec2 modules 2014-03-11 18:19:03 -06:00
s3 Fixed references to missing method in ec2 modules 2014-03-11 18:19:03 -06:00
virt Micro-optimization: replace s.find(x)!=-1 with x in s 2014-03-16 13:10:28 -04:00