Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ To use it, do this:
* requests new certificate for FreeIPA web interface
* run renew-le.sh script once a day: it will renew the cert as necessary

## Service files
* instead of anywhere, clone/unpack all the scripts into `/usr/local/sbin/ipa-certbot/` instead.
* copy `freeipa-certbot.service` and `freeipa-certbot.timer` into `/etc/systemd/system/`
* run `systemctl daemon-reload; systemctl enable freeipa-certbot.service; systemctl enable freeipa-certbot.timer --now`


If you have any problem, feel free to contact FreeIPA team:
http://www.freeipa.org/page/Contribute#Communication
13 changes: 13 additions & 0 deletions freeipa-certbot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Renew certbot IPA certificate
Wants=freeipa-certbot.timer

[Service]
User=root
Type=oneshot
ExecStart=/usr/local/sbin/ipa-certbot/renew-le.sh
SuccessExitStatus=0, 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to SuccessExitStatus=1, as this setting defines successful exit states in addition to the normal 0 exit status.
See systemd.service#SuccessExitStatus=



[Install]
WantedBy=multi-user.target
10 changes: 10 additions & 0 deletions freeipa-certbot.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Timer for certbot IPA certificate renewal
Requires=freeipa-certbot.service

[Timer]
Unit=freeipa-certbot.service
OnCalendar=*-*-* 08:34

[Install]
WantedBy=timers.target