Skip to content

Commit

Permalink
Merge pull request #115 from voxpupuli/update_puppetserver_env_vars
Browse files Browse the repository at this point in the history
Add documentation on puppetserver environment variables
  • Loading branch information
bastelfreak authored Oct 30, 2024
2 parents 1cc8f7d + 553052c commit d90383b
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 d90383b

Please sign in to comment.