Skip to content

Commit

Permalink
add filecache docs for foreman-node
Browse files Browse the repository at this point in the history
  • Loading branch information
bochi committed Jul 29, 2020
1 parent 7add2c4 commit 1574467
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/foreman_salt/13.1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,16 @@ In `/etc/salt/foreman.yaml`, make the following changes:
:timeout: 10
:salt: /usr/bin/salt
:upload_grains: true
:filecache: false

If your Smart Proxy uses SSL, then the certs and key configured in the YAML should be the same ones it uses to talk to Foreman. If you're already using Puppet in Foreman, consult `/etc/puppet/foreman.yaml` or `/etc/puppet/node.rb` for those settings.

The :filecache: option makes foreman-node read the grains cache from files rather than using salt-run.

Please note this will only work if the master is not configured to use an external minion cache module. With salt's default configuration the filecache option works fine and should be used as it is much faster than getting the cache using salt-run. Please note that for this to work, the "msgpack" rubygem needs to be present.

If your salt-master is configured to use a different data directory for cache, you can also set the :cachedir: option to the same directory you configured in the salt master configuration.

### 2.1.3 Salt API Configuration

To support state and environment importing, configure salt-api as per the [Salt documentation](https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html). The user for the Smart Proxy requires a minimum of the `@runner` permission. An example for CherryPy is below, using the Puppet certificates for SSL.
Expand Down

0 comments on commit 1574467

Please sign in to comment.