All checks were successful
Update Version / Update Version (push) Successful in 8s
50 lines
1.7 KiB
Django/Jinja
50 lines
1.7 KiB
Django/Jinja
# Ansible Roles for managing Auengun.net Infrastructure & Testing/Learning.
|
|
# Source available at git.auengun.net/homelab/ansible-collection
|
|
# Copyright (C) 2023 GregoryDosh
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# SPDX-FileCopyrightText: 2023 GregoryDosh
|
|
|
|
[Unit]
|
|
Description=Step CA Certificate renewal service for Auengun.net PKI
|
|
After=network-online.target
|
|
Documentation=https://smallstep.com/docs/step-ca/renewal/#automated-renewal
|
|
{% if (_systemd_version | int) > 229 %}
|
|
StartLimitIntervalSec=600
|
|
StartLimitBurst=5
|
|
{% endif %}
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ STEP_USER_NAME }}
|
|
Group={{ STEP_GROUP_NAME }}
|
|
Restart=always
|
|
RestartSec=1
|
|
SyslogIdentifier={{ CERT_RENEWAL_SERVICE_NAME }}
|
|
Environment="STEPPATH={{ STEP_PATH }}"
|
|
|
|
ExecStart={{ STEP_BIN_ABSOLUTE_PATH }} \
|
|
ca \
|
|
renew \
|
|
{{ STEP_CERTS_PATH }}{{ STEP_CERTS_ACME_CRT }} \
|
|
{{ STEP_CERTS_PATH }}{{ STEP_CERTS_ACME_KEY }} \
|
|
--expires-in 12h \
|
|
--daemon \
|
|
--force \
|
|
--exec "{{ STEP_CONFIG_PATH }}{{ CERT_RENEWAL_SERVICE_NAME }}-post-renewal-exec.sh"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|