GithubHelp home page GithubHelp logo

create-qnap-luns's Introduction

Create Qnap Luns - Ansible Playbook

This is a quick and dirty appraoch to automating the creation of an iSCSI target and LUNS on a qnap NAS.

Prerequisites:

  • Ansible
  • Python installed on the NAS via the App Center (QPKG)

Ensure the host where ansible is running has ssh access to the QNAP NAS:

ssh-copy-id admin@MYNASHOSTNAME

Python in App Center:

How does this work?

The playbook uses the qcli* utilities available on the QNAP NAS in order to perform the actions of creating a new iSCSI target and creating Luns.

Also please note the inventory file has ansible_python_interpreter=/usr/local/bin/python - so that we point to the correct python location on the QNAP NAS.

How do I run it?

Make sure the inventory and the vars/sample-vars.yml are configured as you wish, then run:

ansible-playbook -i inventory create-qnap-luns.yml

Why?

I'm using this to automate the provisioning of external storage for Openshift clusters, but in the main WHY NOT?!

create-qnap-luns's People

Stargazers

 avatar Marian Theisen avatar  avatar Yusuf Hadiwinata Sutandar avatar Colum avatar Stefan Le Breton avatar Martin Gerhardy avatar Jeremy Brown avatar  avatar

Watchers

 avatar Stuart Winchester avatar

Forkers

th3architect

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.