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
Copy file name to clipboardExpand all lines: doc/CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,22 @@
8
8
</tr>
9
9
</thead><tbody>
10
10
<trvalign=top>
11
+
<td>0.5.6</td>
12
+
<td>2016-11-16</td>
13
+
<td>
14
+
<ul>
15
+
<li><ahref="https://github.com/github/octocatalog-diff/pull/20">https://github.com/github/octocatalog-diff/pull/20</a>: Use modulepath from environment.conf to inform lookup directories for <code>--compare-file-text</code> feature</li>
When the bootstrap script runs, a limited set of environment variables are passed from the shell running octocatalog-diff. Only these variables are set:
38
+
39
+
-`HOME`
40
+
-`PATH`
41
+
-`PWD` (set to the base directory of your Puppet checkout)
42
+
-`BASEDIR` (as explicitly set with `--basedir` CLI option or `settings[:basedir]` setting)
43
+
44
+
If you wish to set additional environment variables for your bootstrap script, you may do so via the `--bootstrap-environment VAR=value` command line flag, or by defining `settings[:bootstrap_environment] = { 'VAR' => 'value' }` in your configuration file.
45
+
46
+
As an example, consider that your bootstrap script is written in Python, and needs the `PYTHONPATH` variable set to `/usr/local/lib/python-custom`. Even if this environment variable is set when octocatalog-diff is run, it will not be available to the bootstrap script. You may supply it via the command line:
Copy file name to clipboardExpand all lines: doc/configuration-enc.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,3 +67,37 @@ For example, when compiling the catalog for `some-node.github.net`, Puppet will
67
67
```
68
68
69
69
Sometimes the ENC script requires credentials or makes other assumptions about the system on which it is running. To be able to run the ENC script on systems other than your Puppet master, you will need to ensure that any such credentials are supplied and other assumptions are met.
70
+
71
+
## Environment
72
+
73
+
When the ENC is executed, the following environment variables are set to match the environment of the shell in which octocatalog-diff executes:
74
+
75
+
- `HOME`
76
+
- `PATH`
77
+
- `PWD` (set to the temporary directory as previously described)
78
+
79
+
No other environment variables are passed from the shell. If you wish to pass additional environment variables, you must explicitly list them with the `--pass-env-vars` CLI flag or `settings[:pass_env_vars]` array in your configuration file.
80
+
81
+
As an example, consider that your ENC is written in Python, and needs the `PYTHONPATH` variable set to `/usr/local/lib/python-custom`. Even if this environment variable is set when octocatalog-diff is run, it will not be available to the ENC script. You may pass the variable via the command line:
82
+
83
+
```
84
+
octocatalog-diff --pass-env-vars PYTHONPATH ...
85
+
```
86
+
87
+
Or you may specify it in your configuration file:
88
+
89
+
```
90
+
settings[:pass_env_vars] = [ 'PYTHONPATH' ]
91
+
```
92
+
93
+
If you wish to specify multiple environment variables to pass:
0 commit comments