Giter VIP home page Giter VIP logo

chef-riak-cs-create-admin-user's Introduction

riak-cs-create-admin-user

Description

Creates and configures an administrator for Riak CS.

Requirements

Platforms

  • Ubuntu 12.04 (Precise)
  • CentOS 6.3
  • CentOS 6.4

Cookbooks

  • riak
  • riak-cs

Attributes

  • node["riak_cs_create_admin_user"]["email"] - Riak CS administrator e-mail address.
  • node["riak_cs_create_admin_user"]["name"] - Riak CS administrator name.

Recipes

  • recipe[riak-cs-create-admin-user] will configure an administrator for Riak CS.

Usage

Ensure that the riak-cs-create-admin-user recipe is added after riak, riak-cs, and stanchion in the run list.

If you want to reuse the administrator access and secret keys generated by this cookbook, please ensure that the recipes making use of them are after riak-cs-create-admin-user in the run list.

An example of how to populate a credentials file:

ruby_block "credentials-file" do
  block do
    if node.run_state.key?("riak_cs_admin_key") && node.run_state.key?("riak_cs_admin_secret")
      creds_file = Chef::Resource::File.new("/tmp/creds.txt", run_context)
      creds_file.content "RIAKCS_ACCESS_KEY_ID=%s\nRIAKCS_SECRET_ACCESS_KEY=%s\n" %
        [ node.run_state["riak_cs_admin_key"], node.run_state["riak_cs_admin_secret"] ]
      creds_file.run_action :create
    end
  end
end

chef-riak-cs-create-admin-user's People

Contributors

hectcastro avatar

Watchers

 avatar  avatar  avatar

Forkers

5apps-caboose

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.