Project

kaname

0.01
Low commit activity in last 3 years
No release in over a year
Identity configuration tool for OpenStack. You can apply simple YAML definition into Keystone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 1.0.0
>= 0
>= 0.13.4
 Project Readme

Kaname

Build Status

Kaname(要) is configuration management tool of Keystone.

Installation

Install it yourself as:

$ gem install kaname

Usage

You can define keystone configuration for OpenStack via YAML format. Like following syntax.

antipop:
  email: "antipop@example.com"
  tenants:
    production: "cto"
hsbt:
  email: "hsbt@example.com"
  tenants:
    development: "admin"
    production: "member"

You can also define all_tenants for config all tenants' authority. If both tenants and all_tenants are setting, tenants is preferred.

suzupy:
  email: suzupy@example.com
  all_tenants: member

You will need to set some ENV.

$ export OS_AUTH_URL="http://your-openstack-auth-endpoint/v3"
$ export OS_USERNAME="admin"
$ export OS_PASSWORD="admin"
$ export OS_PROJECT_NAME=admin
$ export OS_TENANT_NAME=admin

run following command.

$ kaname diff # You can see difference of definition
$ kaname apply # apply configuration into OpenStack
$ kaname apply --dryrun # You can see all of invoke commands(dryrun)

You can create user and user's role with tenant.

If you need to initialize your Keystone configuration, you can get it via following command:

$ kaname dump

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/yaocloud/kaname/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request