forked from ungleich-public/cdist
__grafana_dashboard: cleanup
This commit is contained in:
parent
34aefbc0f6
commit
7ae24cf677
1 changed files with 22 additions and 32 deletions
|
@ -7,44 +7,34 @@ case $os in
|
||||||
debian|devuan)
|
debian|devuan)
|
||||||
case $os_version in
|
case $os_version in
|
||||||
8*|jessie)
|
8*|jessie)
|
||||||
__apt_key_uri grafana \
|
apt_source_distribution=jessie
|
||||||
--name 'Grafana Release Signing Key' \
|
|
||||||
--uri https://packagecloud.io/gpg.key
|
|
||||||
|
|
||||||
require="__apt_key_uri/grafana" __apt_source grafana \
|
|
||||||
--uri https://packagecloud.io/grafana/stable/debian/ \
|
|
||||||
--distribution jessie \
|
|
||||||
--component main
|
|
||||||
|
|
||||||
__package apt-transport-https
|
|
||||||
|
|
||||||
require="__apt_source/grafana __package/apt-transport-https" __package grafana
|
|
||||||
require="__package/grafana" __start_on_boot grafana-server
|
|
||||||
;;
|
;;
|
||||||
9*|ascii/ceres)
|
9*|ascii/ceres)
|
||||||
__apt_key_uri grafana \
|
apt_source_distribution=stretch
|
||||||
--name 'Grafana Release Signing Key' \
|
|
||||||
--uri https://packagecloud.io/gpg.key
|
|
||||||
|
|
||||||
require="__apt_key_uri/grafana" __apt_source grafana \
|
|
||||||
--uri https://packagecloud.io/grafana/stable/debian/ \
|
|
||||||
--distribution stretch \
|
|
||||||
--component main
|
|
||||||
|
|
||||||
__package apt-transport-https
|
|
||||||
|
|
||||||
require="__apt_source/grafana __package/apt-transport-https" __package grafana
|
|
||||||
require="__package/grafana" __start_on_boot grafana-server
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Don't know how to install Grafana on $os $os_version. Send us a pull request!"
|
echo "Don't know how to install Grafana on $os $os_version. Send us a pull request!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
|
||||||
|
__apt_key_uri grafana \
|
||||||
|
--name 'Grafana Release Signing Key' \
|
||||||
|
--uri https://packagecloud.io/gpg.key
|
||||||
|
|
||||||
|
require="$require __apt_key_uri/grafana" __apt_source grafana \
|
||||||
|
--uri https://packagecloud.io/grafana/stable/debian/ \
|
||||||
|
--distribution $apt_source_distribution \
|
||||||
|
--component main
|
||||||
|
|
||||||
|
__package apt-transport-https
|
||||||
|
|
||||||
|
require="$require __apt_source/grafana __package/apt-transport-https" __package grafana
|
||||||
|
require="$require __package/grafana" __start_on_boot grafana-server
|
||||||
|
require="$require __start_on_boot/grafana-server" __process grafana-server --start "service grafana-server start"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Don't know how to install Grafana on $os. Send us a pull request!"
|
echo "Don't know how to install Grafana on $os. Send us a pull request!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue