Git Product home page Git Product logo

rd-ansible-refstack's Introduction

rd-ansible-refstack

This module installs RefStack on a host so it can be used to test or validate an OpenStack deployment.

See: http://git.openstack.org/cgit/openstack/refstack-client/tree/README.rst

Requirements

This module requires a minimum of Ansible 2.4 but has been tested with 2.6.1

Role Variables

The calling playbook MUST correctly set the value of refstack_openstack_admin_password as this is used by Tempest to create additional resources. Ideally the admin password is secured using a secrets store.

You must override the default variables refstack_openstack_public_net_name and refstack_openstack_keystone_public_url to reflect the deployment you wish to validate.

See defaults/main.yml for other variables and descriptions.

This role assumes that the resources required to run a tempest test have already been created. These are:

  • A set of accessible external OpenStack API endpoints
  • A external provider network
  • A private network and subnet for tempest
  • Two flavors
  • Two cirros images

[where 'external' indicates accessible by the RefStack host]

If OpenStack-Ansible is used as the OpenStack deployment tooling, some of these resources can be created by running the playbooks/os-tempest-install.yml playbook. It is important that the settings used in Openstack-Ansible to create these resources are reflected in the defaults for this role.

Dependencies

This role has no dependencies

Example Playbook

Example to call:

- hosts: refstack*
  vars:
    - refstack_openstack_keystone_public_url "https://cloud.example.com:5000/v3"
    - refstack_openstack_public_net_name: MY_PUBLIC_NETWORK
    - refstack_openstack_admin_password: "{{ lookup('pipe', 'vault read -field value secret/passwords/openstack_admin') }}"
  roles:
    - rd-ansible-refstack

This playbook will deploy RefStack and create a shell script which can be used to execute the RefStack tests. This script is located at {{ refstack_install_dir }}/run_refstack.sh. Change directory to {{ refstack_install_dir }} and execute the script from that location.

The shell script can be run manually or as a step in a CI pipeline.

RefStack places the test results in the directory {{ refstack_install_dir }}/.tempest/.testrepository/. These files can be analysed manually or extracted as artefacts in a CI pipeline.

rd-ansible-refstack's People

Contributors

andrewbonney avatar georginashippey avatar jrosser avatar samchoraria avatar stuartgrace-bbc avatar

Watchers

James Weaver avatar  avatar James Cloos avatar Rick Box avatar  avatar Stephen Jolly avatar Alan Bacon avatar  avatar Peter Brightwell avatar Peter Mills avatar  avatar

Forkers

busterswt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.