If you are just looking to take Jerakia for a spin with no strings attached, or want to try stuff out in a development environment, you can do so very easily right from your home directory assuming you have bundler installed. The test/fixtures
directory in the git repo contains all the scaffolding needed for a fully working test environment, it’s what our automated tests use.
test/fixtures/etc/jerakia/jerakia.yaml
test/fixtures/etc/jerakia/policy.d/
test/fixtures/var/lib/jerakia/
RUBYLIB
and JERAKIA_CONFIG
, and there is a script to do that.It’s pretty simple, just clone the repo and set a couple of environment variables and you can use Jerakia. You need to be in the root Jerakia folder to run commands as paths are relative. Here is what you need to do
$ git clone https://github.com/jerakia/jerakia
$ cd jerakia
$ bundle install
$ . test/environment.sh
If all went well, you should be able to run Jerakia from the root folder calling ./bin/jerakia
. In our test data we have the key cities
in the test
namespace, so you should simply be able to run this as…
$ bin/jerakia lookup cities -n test
{"france"=>"paris", "argentina"=>"buenos aires", "spain"=>"malaga"}