Giter Site home page Giter Site logo

ansible-disk's Introduction

AerisCloud

Getting Started | Full Documentation | Releases | Issues

AerisCloud is a tool that gives application developers development environments that are identical to the production servers, and gives system administrators a way to organize their infrastructure as it is growing in size.

Installation

Read the instructions in the Getting Started page from the documentation.

Usage

Please note, that to make the following commands to work, you need to set up an organization as described in the Organization documentation page.

For developers:

# Create a new project
aeris init foo

# Start VMs
aeris up

# Stop VMs
aeris halt

Read the full documentation in the Getting Started page from the documentation.

For server operators:

# Provision production servers for projectA
cloud provision my-org/production my-org/projectA

# Execute a job
cloud job my-org/role-name/job-name my-org/projectA --limit="group-name" \
                                                    --extra-vars="aws_access_key=xxx" \
                                                    --extra-vars="aws_secret_key=xxx"

Read the full documentation in the server operators Getting Started page from the documentation.

Why should I use AerisCloud?

  • As a developer, you will have an easy method to define the environment in which your application will run in, and other developers will be able to easily replicate the same environment.
  • As a server operator, it will help you to organize your inventories and playbooks in one place. The CLI will be easier to understand as you will only have to provide the names of the playbook and inventory to use, instead of whole paths, options and arguments of ansible-playbook.
  • The ansible playbooks are shared among development and production environments.

Contributing

See the contributing guide in the documentation.

ansible-disk's People

Contributors

broven avatar christopherobin avatar eagleusb avatar jonesbusy avatar kvij avatar milk avatar sirkubax avatar tokyowizard avatar ypid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-disk's Issues

Creating multiple disks?

If I want to use the module against multiple disks, how do I do that?

In my group_vars, I've got:

disk_additional_disks:
- disk: /dev/xvdf
  fstype: ext4
  opts: "-m 1"
  mount_options: defaults
  mount: /mnt/tmp
- disk: /dev/xvdg
  fstype: ext4
  opts: "-m 1"
  mount_options: defaults
  mount: /mnt/tmp2

But it's only executing against /dev/xvdf

disk_user and disk_group are not applied correctly

The task "Ensure the mount directory exists" should take disk_user and disk_group from item. Right now, it's always defaulting to root:

- name: "Ensure the mount directory exists"
  file:
    path: '{{ item.mount }}'
    owner: '{{ item.disk_user | default("root") }}'   #here
    group: '{{ item.disk_group | default("root") }}' #here
    state: directory
  with_items: '{{ disk_additional_disks }}'
  tags: ['disk']

No longer works with Azure

_nvme_ioctl IOError: [Errno 22] Invalid argument when attempting to attach Azure disk.

Version @ e303c7f works fine, version @ c0ac697 (current master) fails.

fatal: [bk-test-vm1]: FAILED! => {"changed": false, "module_stderr": "Shared connection to bk-test-vm1 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/home/agrimetrics/.ansible/tmp/ansible-tmp-1545234609.6925719-280473579861797/AnsiballZ_disk_config.py\", line 113, in <module>\r\n    _ansiballz_main()\r\n  File \"/home/agrimetrics/.ansible/tmp/ansible-tmp-1545234609.6925719-280473579861797/AnsiballZ_disk_config.py\", line 105, in _ansiballz_main\r\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n  File \"/home/agrimetrics/.ansible/tmp/ansible-tmp-1545234609.6925719-280473579861797/AnsiballZ_disk_config.py\", line 48, in invoke_module\r\n    imp.load_module('__main__', mod, module, MOD_DESC)\r\n  File \"/tmp/ansible_disk_config_payload_BSZXKz/__main__.py\", line 180, in <module>\r\n  File \"/tmp/ansible_disk_config_payload_BSZXKz/__main__.py\", line 164, in main\r\n  File \"/tmp/ansible_disk_config_payload_BSZXKz/__main__.py\", line 99, in __init__\r\n  File \"/tmp/ansible_disk_config_payload_BSZXKz/__main__.py\", line112, in ctrl_identify\r\n  File \"/tmp/ansible_disk_config_payload_BSZXKz/__main__.py\", line 108, in _nvme_ioctl\r\nIOError: [Errno 22] Invalid argument\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

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.