You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following environment variables have special meaning to octocatalog-diff:
4
+
5
+
### `OCTOCATALOG_DIFF_CONFIG_FILE`
6
+
7
+
This environment variable is used to locate the configuration file for the CLI. The use of configuration files is described generally in:
8
+
9
+
-[Configuration](/doc/configuration.md)
10
+
11
+
### `OCTOCATALOG_DIFF_CUSTOM_VERSION`
12
+
13
+
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.
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.
-`octocatalog-diff` will create all of its temporary directories within the specified directory.
36
+
-`octocatalog-diff` will not attempt to remove any temporary directories it creates.
37
+
38
+
This is useful in the following situations:
39
+
40
+
- You are calling `octocatalog-diff` from within another program which is highly parallelized, and `at_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.
41
+
42
+
- 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.
43
+
44
+
This variable is used internally for the parallelized logic for catalog compilation, but the value set from the environment will override any internal usage.
45
+
46
+
### `OCTOCATALOG_DIFF_VERSION`
47
+
48
+
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.
49
+
50
+
### `PUPPETDB_HOST`
51
+
52
+
This variable specifies the fully qualified domain name or IP address of the PuppetDB server.
53
+
54
+
Note: If `PUPPETDB_URL` is specified, then `PUPPETDB_HOST` is not consulted.
55
+
56
+
### `PUPPETDB_PORT`
57
+
58
+
This variable specifies the port number of the PuppetDB server.
59
+
60
+
Note: If `PUPPETDB_URL` is specified, then `PUPPETDB_PORT` is not consulted.
61
+
62
+
### `PUPPETDB_URL`
63
+
64
+
This variable specifies the URL to the PuppetDB server.
65
+
66
+
Example: `https://puppetdb.example.net:8081`
67
+
68
+
### `PUPPET_FACT_DIR`
69
+
70
+
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`.)
0 commit comments