Skip to content

Commit

Permalink
Merge pull request #70 from jay7x/patch-1
Browse files Browse the repository at this point in the history
Update README.md with a note about environment caching
  • Loading branch information
rwaffen authored Feb 16, 2024
2 parents aab6ba3 + aae2744 commit 5a998e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ For compose file see: [CRAFTY](https://github.com/voxpupuli/crafty/tree/main/pup

You can find out more about Puppet Server in the [official documentation](https://www.puppet.com/docs/puppet/7/server/about_server.html).

## Note about environment caching
⚠️ Puppetserver here has [the environment caching](https://www.puppet.com/docs/puppet/8/server/admin-api/v1/environment-cache.html) enabled by default. You should explicitly call the API endpoint to clear the cache when a new environment is deployed. See the `curl` example below.

```bash
curl -i --cert $(puppet config print hostcert) \
--key $(puppet config print hostprivkey) \
--cacert $(puppet config print cacert) \
-X DELETE \
https://$(puppet config print server):8140/puppet-admin-api/v1/environment-cache?environment=production
```

Another option is to disable the environment caching by setting the `PUPPETSERVER_ENVIRONMENT_TIMEOUT` environment variable to zero (`0`).

## New version schema

The new version schema has the following layout:
Expand Down

0 comments on commit 5a998e6

Please sign in to comment.