Giter VIP home page Giter VIP logo

ansible-role-os-volumes's Introduction

NOTE:

This repository is no longer maintained - role has been moved to Ansible collection now ➡️ https://github.com/stackhpc/ansible-collection-openstack

OpenStack Volumes

Build Status

This role can be used to register volumes and volume types in cinder using the os_volume module.

Requirements

The OpenStack cinder API should be accessible from the target host.

Role Variables

os_volumes_venv is a path to a directory in which to create a virtualenv.

os_volumes_auth_type is an authentication type compatible with the auth_type argument of os_* Ansible modules.

os_volumes_auth is a dict containing authentication information compatible with the auth argument of os_* Ansible modules.

os_volumes is a list of volumes to register. Each item should be a dict containing the following items:

  • display_description: Optional description of the volume.
  • display_name: Name of the volume.
  • image: Optional image name or ID for boot from volume.
  • scheduler_hints: Optional dict of scheduler hints pass to the volume API.
  • size: Size of the volume in GB.
  • snapshot_id: Optional ID of a volume snapshot from which to create the volume.
  • state: Optional state of the volume, default is present.
  • volume: Optional name or ID of a volume from which to create the volume.
  • volume_type: Optional type of the volume.

os_volumes_types is a list of volume types to register. Each item should be a dict containing the following items:

  • name: Name of the volume type.
  • description: Optional description of the volume type.
  • public: Whether the volume type is public, default value is True.
  • extra_specs: Optional dict of additional specifications for the volume type.

Dependencies

This role depends on the stackhpc.os_openstacksdk role.

Example Playbook

The following playbook registers a cinder volume and volume type.

---
- name: Ensure volumes and volume types are registered
  hosts: cinder-api
  roles:
    - role: os-volumes
      os_volumes_venv: "~/os-volumes-venv"
      os_volumes_auth_type: "password"
      os_volumes_auth:
        project_name: <keystone project>
        username: <keystone user>
        password: <keystone password>
        auth_url: <keystone auth URL>
      os_volumes:
        - display_name: my-volume
          size: 3
      os_volumes_types:
        - name: type-1
          extra_specs:
            volume_backend_name: my-backend

Author Information

ansible-role-os-volumes's People

Contributors

markgoddard avatar stackhpc-ci avatar brtkwr avatar jovial avatar cityofships avatar

Watchers

Pierre Riteau avatar James Cloos avatar Doug Szumski avatar  avatar Isaac Prior avatar  avatar John Taylor avatar Stig Telfer avatar Charana avatar Michał Nasiadka avatar Matt Anson avatar

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.