A versatile data lookup system
Now let’s provide some different data further up in our hierarchy, for example, we shall override port
to be 8099
in our dev environment.
$ mkdir -p /var/lib/jerakia/environment/dev
$ vim /var/lib/jerakia/environment/dev/apache.yaml
---
port: 8099
If we run the same query command as before, we expect to get the same output
$ jerakia lookup port --namespace apache
"8080"
Remember that the searchpath
gets evaluated from the scope, and since we haven’t provided any scope data there is nothing to match. Let’s repeat this lookup by providing some scope data, in this case, ensuring that the environment is dev
$ jerakia lookup port --namespace apache --metadata environment:dev
"8099"
Next: Integration with Puppet