0.2.7 • Published 7 years ago

@ceejbot/dirac v0.2.7

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

@ceejbot/dirac

Add and remove hosts from ansible inventory files.

Parses existing files & preserves whitespace & comments.

on npm Tests Coverage

Usage

Install: npm install -g @ceejbot/dirac

Then run:

cat /path/to/inventory | dirac [--var name=val] [--group groupname] foo.example.com > output

Options:
  --remove     remove this host from inventory; all other options ignored [boolean]
  --group, -g  one or more groups to add this host to       [default: "generic"]
  --var, -v    host vars to set; name=val format
  --version    show version information                                [boolean]
  --help       Show help                                               [boolean]

You can specify as many var and group options as you need.

Notes

The Dirac Communicator is James Blish's name for an ansible-like communication device.

TODO

Handle variables better.

LICENSE

ISC.

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago