jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/config
Writing custom lookup plugins. 30 second spin up! Jerakia reads it’s initial configuration from. By default. At the very minimal we need to confgure the loglevel information and the locations of the logfile, policy directory and plugin directory. Mkdir /etc/jerakia $ vim /etc/jerakia/jerakia.yaml. Next: Create a Policy. Hosted by GitHub Pages.
jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/override
Writing custom lookup plugins. 30 second spin up! Populate the data in the hierarchy. Now let’s provide some different data further up in our hierarchy, for example, we shall override. In our dev environment. Mkdir -p /var/lib/jerakia/environment/dev $ vim /var/lib/jerakia/environment/dev/apache.yaml. Query from the command line. If we run the same query command as before, we expect to get the same output. Jerakia lookup port - namespace apache. Next: Integration with Puppet. Hosted by GitHub Pages.
jerakia.io
Datasources
http://jerakia.io/datasources/file
Writing custom lookup plugins. 30 second spin up! The file data source performs hierarchical searches across YAML or JSON formatted files and searches for the lookup key. The file format, one of :yaml and :json (other formats are pluggable). The root of the documents. An array specifying the order of hierarchical lookups. Entries starting with an alphanumerical character will be relative from. Overrides the default extension (eg: yml) for the file format chosen. Key = "port", :namespace = [ "apache" ], }.
jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/puppet
Writing custom lookup plugins. 30 second spin up! As a Hiera backend. Jerakia can be configured as a Hiera backend. Or add it as an additional data source:. As a Puppet data binding terminus. If you are migrating an existing, or unknown code base we would recommend you keep Hiera configured as a backend to catch any lookups that are made with the. Functions. But for all other lookups you can route them straight to Puppet by bypassing Hiera altogether and using Jerakia as a data binding terminus.
jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/policy
Writing custom lookup plugins. 30 second spin up! Jerakia policies are containers for lookups. When a lookup is invoked against Jerakia it can select a policy to use, by default, if no policy name is given then Jerakia will look for a policy called. Policy files live within the directory defined in. So let’s create an empty policy. Mkdir /etc/jerakia/policy.d $ vim /etc/jerakia/policy.d/default.rb. Next: Write a lookup. Hosted by GitHub Pages.
jerakia.io
The `jerakia` command
http://jerakia.io/basics/cli
Writing custom lookup plugins. 30 second spin up! Display jerakia version information. The lookup subcommands take a third argument as the key followed by options. Jerakia lookup key [options]. C, [- config=CONFIG]. Specify a different configuration file from the default (. P, [- policy=POLICY]. Specify a policy to use for the lookup, default: default. N, [- namespace=NAMESPACE]. Namespace of the request key being looked up. T, [- type=TYPE]. The type of lookup, the default type of. S, [- scope=SCOPE].
jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/lookup
Writing custom lookup plugins. 30 second spin up! Jerakia policies contain lookups that run in order. A lookup must contain, at the very least, a name and a datasource to use for the lookup. The current datasources that ship with Jerakia are. The file datasource takes several options, including format and searchpath to define how lookups should be processed. Within the lookup we have access to. We will start by using the. Vim /etc/jerakia/policy.d/default.rb. Here we have described the.
jerakia.io
Quick start Tutorial
http://jerakia.io/tutorial/command1
Writing custom lookup plugins. 30 second spin up! Command takes a subcommand as the first attribute, for further information use. To look up the data that we added earlier we can use the following command:. Jerakia lookup port - namespace apache. To specify metadata like. Data, you can run the command in the following form:. Jerakia lookup port - namespace apache - metadata environment:development fqdn:host011.example.com. Hosted by GitHub Pages.
jerakia.io
Sorry, it's not quite ready yet!
http://jerakia.io/pending
Writing custom lookup plugins. 30 second spin up! Sorry, it’s not quite ready yet! The page that you are looking for is still in my head. I am working as hard as my little ten fingers will allow to get this section documented as soon as possible. Please check back in a day or two or follow me at @crayfishx for updates. Hosted by GitHub Pages.