Giter VIP home page Giter VIP logo

ansible-openstack-snapshot's Introduction

ansible-openstack-snapshot

RHOSC task 1

Pre Requisites: Setup ansible-collection-openstack and phython interprtor for localhost

  1. wget https://galaxy.ansible.com/download/openstack-cloud-0.0.1-dev85.tar.gz

  2. ansible-galaxy collection install openstack-cloud-0.0.1-dev85.tar.gz

  3. pip install openstacksdk

Note: Theres an implicit localhost problem one encounters when running modules with python script. Ansible has mentioned their solution(link). I wasn't able to make it work properly so I made another node just to run those modules.

Lastly paste the py file in your ansible modules dir (/home/user/.local/lib//home/ansible/.local/lib/python2.7/site-packages/ansible/modules/cloud/openstack/) or you create a dir called libary in your working directory and place the file in there. (The playbooks have to be one level up the library directory)

Example usage:

- hosts: ws 
  tasks: 
  - name: 'Create Snapshot'
    os_server_snapshot:
        auth:
            auth_url: http://192.168.56.20/identity
            username: 'admin'
            password: 'secret'
            project_name: 'demo'
            project_id: 350e9ee3b6fb46b58e5bed9d1c498531
            user_domain_name: 'Default'
        name: 'snapshot-4'
        server: 'cf50b65b-46c3-45dc-a2c6-e3506ea8e810'
        wait: True

Work to be done:
1)Import function from os_server module.
2) Testing of module

ansible-openstack-snapshot's People

Contributors

om-anand-gh avatar

Stargazers

Jiri Daněk avatar

Watchers

Jiri Daněk avatar  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.