Skip to content

Commit

Permalink
Add documentation about certificate renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
ganto committed Sep 1, 2016
1 parent c4746f1 commit b42d881
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/system-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,24 @@ Postfix
Certificate renewal
-------------------

After adding a new domain the role has to be run once with ``root``
privileges. Among other things this will create a separate user account
``certbot`` which can be used to schedule unattended certificate renewals.

.. note:: See :ref:`acme_tiny_ref_example_inventory` for an example how to
create a role configuration.

Here an example of a :program:`cron` job which whould renew the certificate
every month:

:file:`/etc/cron.d/acme-tiny`

.. code-block:: console
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@monthly certbot /usr/bin/ansible-playbook -e @/etc/ansible/vars/mydomain.com.yml /etc/ansible/playbooks/acme_tiny.yml >/dev/null
..
Local Variables:
mode: rst
Expand Down

0 comments on commit b42d881

Please sign in to comment.