![Sagi Shnaidman](/assets/img/avatar_default.png)
Role to provision subnodes for reproducing multinode jobs Change-Id: I3d5ae3ba04dd5d0109762d1d4ef778160751a2cc
2.8 KiB
2.8 KiB
multinodes
Provision openstack cloud with subnodes for multinode jobs
Requirements
This Ansible role allows sets up a particular amount of subnodes for reproducing CI jobs on them.
Role Variables
os_region
: OS region, by default is taken from environment variable OS_REGION_NAMEos_tenant
: OS tenant ID, by default is taken from environment variables OS_TENANT_IDos_identity_api_version
: OS identity API version, by default is taken from environment variable OS_IDENTITY_API_VERSIONos_password
: OS password, by default is taken from environment variable OS_PASSWORDos_auth_url
: OS auth URL, by default is taken from environment variable OS_AUTH_URLos_username
: OS username, by default is taken from environment variable OS_USERNAMEos_tenant_name
: OS tenant name, by default is taken from environment variable OS_TENANT_NAMEos_endpoint_type
: OS endpoint type, by default is taken from environment variable OS_ENDPOINT_TYPEprefix
: (default: '') prefix for stack and hosts namesremove_previous_stack:
: bool, (default: true) whether to remove previous stack with same namestack_log
: log file for this rolekey_name
: (default: multinode_admins) keypair name to inject into subnodes, if not present will be created from "key_location"private_key_location
: (default: ~/.ssh/id_rsa) users private keykey_location
: (default: ~/.ssh/id_rsa.pub) users public key, used for creating keypairstack_name
: (default: multinode_stack) name of Heat stack to createpublic_net_name:
: (default: 38.145.32.0/22) name of public network on the cloudprivate_net_name
: (default: private_net) name of private network in stackprivate_net_base
: (default: 192.168.54) base IP range for private networkprivate_net_cidr
: (default: 192.168.54.0/24) CIDR for private networkprivate_net_gateway
: (default: 192.168.54.1) gateway address for private networkprivate_net_pool_start
: (default: 192.168.54.5) DHCP pool start for private networkprivate_net_pool_end
: "(default: 192.168.54.150) DHCP pool end for private networksubnode_count
: (default: 2) how many nodes to createsubnode_flavor
: (default: m1.large) flavor for nodessubnode_groups
: (default: subnodes) ansible host group names for subnodesimage_id
: (default: last image from the cloud) Image ID or name in the cloud, by default it's image with property "latest" in public images in the cloud
Dependencies
No dependencies
Example Playbook
---
- name: Multinode
hosts: localhost
gather_facts: no
roles:
- role: multinodes
For deleting stack it's possible to run playbook with "--tags delete".
License
Apache 2.0
Author Information
RDO-CI Team