Rally role for OpenStack-Ansible

Rally role for OpenStack-Ansible

This Ansible role installs and configures OpenStack Rally.

To clone or view the source code for this repository, visit the role repository for os_rally.

Default variables

# Set the package install state for distribution and pip packages
# Options are 'present' and 'latest'
rally_package_state: "latest"
rally_pip_package_state: "latest"

rally_system_group_name: rally
rally_system_user_name: rally
rally_system_user_comment: Rally System User
rally_system_user_shell: /bin/false
rally_system_user_home: "/var/lib/{{ rally_system_user_name }}"
rally_etc_directory: /etc/rally

rally_pip_install_args: "{{ pip_install_options | default('') }}"

# Name of the virtual env to deploy into
rally_venv_tag: "{{ venv_tag | default('untagged') }}"
rally_bin: "/openstack/venvs/rally-{{ rally_venv_tag }}/bin"

# Database vars
rally_db_setup_host: "{{ ('galera_all' in groups) | ternary(groups['galera_all'][0], 'localhost') }}"
rally_galera_address: "{{ galera_address | default('127.0.0.1') }}"
rally_galera_database: rally
rally_galera_user: rally
rally_database_connection_string: mysql+pymysql://{{ rally_galera_user }}:{{ rally_galera_password }}@{{ rally_galera_address }}/{{ rally_galera_database }}?charset=utf8

# These pins are sourced from the rally git repository's
# upper-constraints file. These should be updated whenever
# the rally pin is updated. The package pins here are only
# those not already covered by upper constraints.
rally_pip_packages:
  - adal==1.2.1
  - os-faults==0.2.2
  - pymysql # not pinned as it is in u-c
  - rally==1.5.1
  - rally-openstack==1.4.0

# The inventory group where Rally will be installed.
# This variable is used by the repo_build process to determine
# which host group to check for members of before building the
# pip packages required by this role. The value is picked up
# by the py_pkgs lookup.
rally_role_project_group: utility_all

rally_config_overrides: {}

Dependencies

This role needs pip >= 7.1 installed on the target host.

To use this role, the following variables must be defined:

  • rally_galera_address

  • rally_galera_password

Example playbook

---
- name: Install Rally server
  hosts: rally_all
  user: root
  roles:
   - role: "os_rally"
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.