Skip to content

How do I use Harvest's credentials file with Ansible?

Chris Grindstaff edited this page Jun 22, 2023 · 1 revision

If you want to use Harvest's credentials file with the Ansible workflow you need to make sure the container can see the file.

By default, the Ansible workflow mounts a single volume, like so:

      volumes:
      - ./harvest/:/etc/harvest/

To make you credentials.yml file visible inside the container:

  1. Move credentials.yml into the $INSTALL_DIR/harvest directory
  2. Change the credentials_file section in your harvest.yml to point to the location from step 1 like so:
credentials_file: /etc/harvest/credentials.yml
  1. After making these changes run ansible-playbook manage_harvest.yml --tags upgrade so the poller restarts and sees your changes
Clone this wiki locally