Skip to content

Commit

Permalink
Docs: Added passwords deploying strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Oct 31, 2019
1 parent 827cd20 commit 2525d8d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/source/templating.rst
Expand Up @@ -34,4 +34,17 @@ Reference table
| ${checkName} | http | Name of the currently executed check |
+--------------+------------------------------+--------------------------------------------------+
| ${date} | 2019-10-31T07:53:45.380307 | Current date and time |
+--------------+------------------------------+--------------------------------------------------+
+--------------+------------------------------+--------------------------------------------------+

Example strategy of deploying passwords with Docker Compose and Ansible
-----------------------------------------------------------------------

1. Encrypt your passwords with ansible-vault
2. Decrypt them during deployment into `.env` on target machine for docker-compose
3. In docker-compose service definition pass variable explicitly from the `.env` file

.. code:: yaml
environment:
# variables in checks
- IWA_SECURITY_MAN_PASSWD=${IWA_SECURITY_MAN_PASSWD}

0 comments on commit 2525d8d

Please sign in to comment.