Skip to content

Commit

Permalink
Add documentation on puppetserver environment variables
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Alfke <[email protected]>
  • Loading branch information
tuxmea committed Oct 30, 2024
1 parent 1cc8f7d commit 553052c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,21 @@ Not all options can be set with environment variables. Use the table below to fi
| `approle_path_segment` | ---- |
| `agent_sink_file` | `VAULT_AGENT_SINK_FILE` |

#### Environment variables on Puppet server

When not using deferred function, the compiler will execute the function and needs either the specific settings or can make use of environment variables. Please note that environment variables must be set in `/etc/puppetlabs/puppetserver/conf.d/puppet-server.conf` within the `jruby-puppet` section.

Please find a simple example on how to add environment variables to the conf file using hocon:

```shell
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/bin/hocon \
-f /etc/puppetlabs/puppetserver/conf.d/pe-puppet-server.conf \
set jruby-puppet.environment-vars "{\
VAULT_ADDR: \"https://FQDN\",\
VAULT_ROLE_ID: 12345678-1234-1234-1234-1234567890ab,\
VAULT_SECRET_ID: 12345678-1234-1234-1234-1234567890ab\
}"
```
### Usage Examples

Here are some examples of each method:
Expand Down

0 comments on commit 553052c

Please sign in to comment.