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_git_repo: https://git.openstack.org/openstack/rally
rally_git_install_branch: 8d2faecc098130bc3c0c69fb0e610aeac6bc6c0b
rally_developer_mode: false
rally_developer_constraints:
  - "git+{{ rally_git_repo }}@{{ rally_git_install_branch }}#egg=rally"


# Name of the virtual env to deploy into
rally_venv_tag: untagged
rally_bin: "/openstack/venvs/rally-{{ rally_venv_tag }}/bin"

# venv_download, even when true, will use the fallback method of building the
# venv from scratch if the venv download fails.
rally_venv_download: "{{ not rally_developer_mode | bool }}"
rally_venv_download_url: http://127.0.0.1/venvs/untagged/ubuntu/rally.tgz

# Database vars
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

# Packages that must be installed before anything else
rally_requires_pip_packages:
  - virtualenv
  - virtualenv-tools

rally_pip_packages:
  - ansible==2.3.2.0
  - cmd2<0.9.0 # >=0.9.0 is python3 only
  - pymysql
  - rally
  - setuptools

# 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: {}

Required variables

  • 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.