community / community.general / 0.1.4 / module / rax_scaling_group Manipulate Rackspace Cloud Autoscale Groups Authors: Matt Martz (@sivel)community.general.rax_scaling_group (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Manipulate Rackspace Cloud Autoscale Groups
--- - hosts: localhost gather_facts: false connection: local tasks: - rax_scaling_group: credentials: ~/.raxpub region: ORD cooldown: 300 flavor: performance1-1 image: bb02b1a3-bc77-4d17-ab5b-421d89850fca min_entities: 5 max_entities: 10 name: ASG Test server_name: asgtest loadbalancers: - id: 228385 port: 80 register: asg
env: description: - Environment as configured in I(~/.pyrax.cfg), see U(https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#pyrax-configuration). type: str meta: description: - A hash of metadata to associate with the instance name: description: - Name to give the scaling group required: true wait: default: 'no' description: - wait for the scaling group to finish provisioning the minimum amount of servers type: bool files: description: - 'Files to insert into the instance. Hash of C(remotepath: localpath)' image: description: - image to use for the instance. Can be an C(id), C(human_id) or C(name) required: true state: choices: - present - absent default: present description: - Indicate desired state of the resource flavor: description: - flavor to use for the instance required: true region: default: DFW description: - Region to create an instance in. type: str api_key: aliases: - password description: - Rackspace API key, overrides I(credentials). type: str cooldown: description: - The period of time, in seconds, that must pass before any scaling can occur after the previous scaling. Must be an integer between 0 and 86400 (24 hrs). key_name: description: - key pair to use on the instance networks: default: - public - private description: - The network to attach to the instances. If specified, you must include ALL networks including the public and private interfaces. Can be C(id) or C(label). username: description: - Rackspace username, overrides I(credentials). type: str tenant_id: description: - The tenant ID used for authentication. user_data: description: - Data to be uploaded to the servers config drive. This option implies I(config_drive). Can be a file path or a string credentials: aliases: - creds_file description: - File to find the Rackspace credentials in. Ignored if I(api_key) and I(username) are provided. type: path disk_config: choices: - auto - manual default: auto description: - Disk partitioning strategy server_name: description: - The base name for servers created by Autoscale required: true tenant_name: description: - The tenant name used for authentication. config_drive: default: 'no' description: - Attach read-only configuration drive to server as label config-2 type: bool max_entities: description: - The maximum number of entities that are allowed in the scaling group. Must be an integer between 0 and 1000. required: true min_entities: description: - The minimum number of entities that are allowed in the scaling group. Must be an integer between 0 and 1000. required: true wait_timeout: default: 300 description: - how long before wait gives up, in seconds auth_endpoint: default: https://identity.api.rackspacecloud.com/v2.0/ description: - The URI of the authentication service. identity_type: default: rackspace description: - Authentication mechanism to use, such as rackspace or keystone. loadbalancers: description: - List of load balancer C(id) and C(port) hashes validate_certs: aliases: - verify_ssl description: - Whether or not to require SSL validation of API endpoints. type: bool