Giter Club home page Giter Club logo

ansible-role-driveclient's Introduction

Rackspace driveclient Role for Ansible

This role installs the driveclient agent which works with Rackspace Cloud Backup.

Requirements

This role requires Ansible version 1.4 or higher and the Debian/Ubuntu platform.

Role Variables

The variables that can be passed to this role and a brief description about them are as follows (additional variables are available in the source):

# The API credentials for Rackspace driveclient
driveclient_enabled: false
driveclient_username: ""
driveclient_apikey: ""

Examples

  1. Install driveclient with the defaults

    ---
    # This playbook installs driveclient
    
    - name: Apply driveclient to all nodes
      hosts: all
      roles:
        - driveclient
  2. Install driveclient with custom credentials

    ---
    # This playbook installs driveclient
    
    - name: Apply driveclient to all Rackspace nodes
      hosts: rackspace
      roles:
        - { role: driveclient,
            driveclient_enabled: true,
            driveclient_username: "augustash",
            driveclient_apikey: "asdfasdfasdfasdf"
          }

Dependencies

None.

License

MIT.

ansible-role-driveclient's People

Contributors

petemcw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

emalloy

ansible-role-driveclient's Issues

Newly-installed Driveclient agent skips registration

Nice work on this ansible role -- but I noticed that my driveclient Agent wasn't registering, because the package is installed with a default /etc/driveclient/bootstrap.json file. Since the configuration step is skipped when the bootstrap.json file is "created", registration never happens.

I fixed it on my system by grepping for the presence of 'blank unless registered', which is a string that appears in a freshly-installed bootstrap file:

- name: Check if agent is registered
  command: grep blank-unless-registered /etc/driveclient/bootstrap.json
  register: result
  ignore_errors: true

- name: Configure the agent
  shell: >
    /usr/local/bin/driveclient --configure --apikey {{ driveclient_apikey }} --username {{ driveclient_username }}
  when: result.stdout == "blank-unless-registered"
  tags:
    - driveclient
    - rackspace

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.