Seiso::ImportAnsible
Imports Ansible inventory files into Seiso as nodes and machines.
Installation
$ gem install seiso-import_ansible
Usage
- Create a directory
~/.seiso-importers
- Place appropriately modified copy of
seiso.yml.sample
in there. - Run
seiso-import-ansible inv_file group_name service_instance_key
to perform the import, whereinv_file
is the path to the inventory file you want to import,group_name
is the Ansible group name as it appears in the inventory file, andservice_instance_key
references the Seiso service instance to which you want to attach the imported nodes.
Contributing
- Fork it ( https://github.com/ExpediaDotCom/seiso-import_ansible/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request.
Development
Rake tasks available via
$ rake tasks
In particular, run the unit tests using
$ rake test
Build and install the gem using Rake:
$ rake install