The following environment variables have special meaning to octocatalog-diff:
This environment variable is used to locate the configuration file for the CLI. The use of configuration files is described generally in:
When set, the octocatalog-diff
CLI will display this as the version number within debugging, instead of the version number in the package. This is most useful if you want to use or include a git SHA in the version number.
$ export OCTOCATALOG_DIFF_CUSTOM_VERSION="@$(git rev-parse HEAD)"
$ octocatalog-diff -d ...
D, [2017-10-12T08:57:46.454738 #35205] DEBUG -- : Running octocatalog-diff @504d7f3c91267e5193beb103caae5d4d8cebfee3 with ruby 2.3.1
...
When set, instead of loading libraries from the system or bundler location, libraries will be loaded from the specified value of this environment variable. This is used internally for development as we point users to unreleased code for debugging or testing.
$ export OCTOCATALOG_DIFF_DEVELOPER_PATH=$HOME/git-checkouts/octocatalog-diff
$ octocatalog-diff ...
When set:
octocatalog-diff
will create all of its temporary directories within the specified directory.octocatalog-diff
will not attempt to remove any temporary directories it creates.
This is useful in the following situations:
-
You are calling
octocatalog-diff
from within another program which is highly parallelized, andat_exit
handlers are difficult to implement. Instead of figuring that all out (if it can even be figured out), you create a temporary directory before the parallelized logic, and remove it afterwards. -
You wish to debug intermediate output. For example, you may be instructed to set this variable and send some of the output to the project maintainers if you request assistance.
This variable is used internally for the parallelized logic for catalog compilation, but the value set from the environment will override any internal usage.
This variable is used when building the gem, to override the default version. This is used for internal testing of octocatalog-diff
before public releases. This variable is not useful outside the build context.
This variable specifies the fully qualified domain name or IP address of the PuppetDB server.
Note: If PUPPETDB_URL
is specified, then PUPPETDB_HOST
is not consulted.
This variable specifies the port number of the PuppetDB server.
Note: If PUPPETDB_URL
is specified, then PUPPETDB_PORT
is not consulted.
This variable specifies the URL to the PuppetDB server.
Example: https://puppetdb.example.net:8081
This variable specifies the directory path where puppet fact files are stored. (Fact files must be named <fqdn>.yaml
where <fqdn>
is specified when running octocatalog-diff
.)