remove www-apps/healthchecks and its dependencies
This commit is contained in:
parent
d9602647e4
commit
88b7db8089
12 changed files with 0 additions and 371 deletions
|
@ -1,23 +0,0 @@
|
|||
[Unit]
|
||||
Description=Healthchecks.io alerting process
|
||||
Requires=network-online.target
|
||||
After=network-online.target healthchecks-server.service
|
||||
|
||||
[Service]
|
||||
User=healthchecks
|
||||
Group=healthchecks
|
||||
WorkingDirectory=/usr/share/healthchecks
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectControlGroups=true
|
||||
|
||||
ExecStart=/usr/bin/python3 -u ./manage.py sendalerts --no-threads
|
||||
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,23 +0,0 @@
|
|||
[Unit]
|
||||
Description=Healthchecks.io application server
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=healthchecks
|
||||
Group=healthchecks
|
||||
WorkingDirectory=/usr/share/healthchecks
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=full
|
||||
PrivateDevices=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectControlGroups=true
|
||||
|
||||
ExecStart=/usr/bin/gunicorn --pythonpath . --bind 127.0.0.1:3004 --log-level debug hc.wsgi
|
||||
|
||||
Restart=always
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,28 +0,0 @@
|
|||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.postgresql",
|
||||
"NAME": "healthchecksdb"
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = "__RANDOM__"
|
||||
DEBUG = True
|
||||
ALLOWED_HOSTS = ["127.0.0.1"]
|
||||
REGISTRATION_OPEN = False
|
||||
TIME_ZONE = "Europe/Prague"
|
||||
SITE_ROOT = "https://ping.example.com"
|
||||
SITE_NAME = "Example Healthchecks"
|
||||
PING_ENDPOINT = SITE_ROOT + "/ping/"
|
||||
APPRISE_ENABLED = False
|
||||
MSTEAMS_ENABLED = False
|
||||
MATTERMOST_ENABLED = True
|
||||
OPSGENIE_ENABLED = False
|
||||
PD_ENABLED = False
|
||||
PROMETHEUS_ENABLED = False
|
||||
SLACK_ENABLED = False
|
||||
SPIKE_ENABLED = False
|
||||
TELEGRAM_BOT_NAME = "BotName"
|
||||
TELEGRAM_TOKEN = "BotToken"
|
||||
VICTOROPS_ENABLED = False
|
||||
WEBHOOKS_ENABLED = True
|
||||
ZULIP_ENABLED = False
|
|
@ -1,80 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
|
||||
inherit python-single-r1 systemd
|
||||
|
||||
DESCRIPTION="Periodic task monitoring."
|
||||
HOMEPAGE="https://github.com/${PN}/${PN}"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="apprise"
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
RDEPEND="
|
||||
acct-group/healthchecks
|
||||
acct-user/healthchecks
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/django-3.1[${PYTHON_MULTI_USEDEP}]
|
||||
>=dev-python/django-compressor-2.4[${PYTHON_MULTI_USEDEP}]
|
||||
>=dev-python/fido2-0.9.1[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/cron-descriptor[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/croniter[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/psycopg[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/pytz[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/requests[${PYTHON_MULTI_USEDEP}]
|
||||
dev-python/statsd[${PYTHON_MULTI_USEDEP}]
|
||||
www-servers/gunicorn[${PYTHON_MULTI_USEDEP}]
|
||||
apprise? ( dev-python/apprise[${PYTHON_MULTI_USEDEP}] )
|
||||
')"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
TD=/usr/share/${PN}
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins ${FILESDIR}/local_settings.py local_settings.py.example
|
||||
fowners root:${PN} /etc/${PN}/local_settings.py.example
|
||||
fperms 640 /etc/${PN}/local_settings.py.example
|
||||
dosym /etc/${PN}/local_settings.py ${TD}/hc/local_settings.py
|
||||
SECRET=$(python3 -c "import random; print(random.randbytes(25).hex())")
|
||||
sed -i "s/__RANDOM__/${SECRET}/" "${ED}/etc/${PN}/local_settings.py.example"
|
||||
|
||||
insinto ${TD}
|
||||
doins -r *
|
||||
|
||||
systemd_dounit ${FILESDIR}/${PN}-server.service
|
||||
systemd_dounit ${FILESDIR}/${PN}-monitor.service
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
if [[ ! -a "/etc/${PN}/local_settings.py" ]]; then
|
||||
eerror "Create /etc/${PN}/local_settings.py with your configuration first."
|
||||
return 1
|
||||
fi
|
||||
|
||||
cd /usr/share/${PN}
|
||||
einfo "This will apply migrations and/or create a superuser. You can skip any step."
|
||||
|
||||
einfo "Apply migrations? [y/N]"
|
||||
read CHOICE
|
||||
if [[ ${CHOICE:0:1} == "y" ]]; then
|
||||
ebegin "Running migrations"
|
||||
sudo -u ${PN} python3 manage.py migrate || die
|
||||
eend 0
|
||||
fi
|
||||
|
||||
einfo "Createa a new superuser? [y/N]"
|
||||
read CHOICE
|
||||
if [[ ${CHOICE:0:1} == "y" ]]; then
|
||||
ebegin "Creating a superuser"
|
||||
sudo -u ${PN} python3 manage.py createsuperuser || die
|
||||
eend 0
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue