remotes/origin/prometheus-fixes
commit
e375bd464d
@ -0,0 +1 @@ |
||||
uname -s |
@ -0,0 +1 @@ |
||||
283033689 36101209 consul |
@ -0,0 +1 @@ |
||||
https://releases.hashicorp.com/consul/0.8.1/consul_0.8.1_linux_amd64.zip |
@ -0,0 +1,63 @@ |
||||
#!/bin/bash |
||||
### BEGIN INIT INFO |
||||
# Provides: svscan |
||||
# Required-Start: |
||||
# Required-Stop: |
||||
# Default-Start: 2 3 4 5 |
||||
# Default-Stop: 0 1 6 |
||||
# Short-Description: svscan |
||||
# Description: djb svscan |
||||
### END INIT INFO |
||||
# from https://gist.githubusercontent.com/pacojp/5766990/raw/2ed009ab19515afc9e58291b636d673c5ca864b3/init.d.svscan |
||||
# written by Adam McKenna <adam@debian.org> |
||||
# edited by Kamila Součková <kamila@ksp.sk> |
||||
|
||||
export PATH=$PATH:/usr/local/bin |
||||
|
||||
l=/var/log/svscan |
||||
|
||||
if [ ! -d $l ]; then |
||||
mkdir $l |
||||
chown daemon $l |
||||
fi |
||||
|
||||
case "$1" in |
||||
start) |
||||
echo -n "Starting daemontools: " |
||||
if [ ! `pidof svscan` ]; then |
||||
echo -n "svscan " |
||||
env - PATH="$PATH" svscan /service 2>&1 | setuidgid daemon multilog t /var/log/svscan & |
||||
echo "." |
||||
else |
||||
echo "already running." |
||||
fi |
||||
;; |
||||
stop) |
||||
echo -n "Stopping daemontools: " |
||||
if [ `pidof svscan` ]; then |
||||
echo -n "svscan" |
||||
while [ `pidof svscan` ]; do |
||||
kill `pidof svscan` |
||||
echo -n "." |
||||
done |
||||
fi |
||||
echo -n " services" |
||||
for i in `ls -d /service/*`; do |
||||
svc -dx $i |
||||
echo -n "." |
||||
done |
||||
echo -n " logging " |
||||
for i in `ls -d /service/*/log`; do |
||||
svc -dx $i |
||||
echo -n "." |
||||
done |
||||
echo "" |
||||
;; |
||||
restart|force-reload) |
||||
$0 stop |
||||
$0 start |
||||
;; |
||||
*) |
||||
echo 'Usage: /etc/init.d/svscan {start|stop|restart|force-reload}' |
||||
exit 1 |
||||
esac |
@ -0,0 +1,49 @@ |
||||
cdist-type__daemontools(7) |
||||
========================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__daemontools - Install daemontools |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Install djb daemontools and (optionally) an init script. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
from-package |
||||
Package to install. Must be compatible with the original daemontools. Example: daemontools-encore. Default: daemontools. |
||||
|
||||
BOOLEAN PARAMETERS |
||||
------------------ |
||||
install-init-script |
||||
Add an init script and set it to start on boot. Default yes. |
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__daemontools --from-package daemontools-encore # if you prefer |
||||
|
||||
SEE ALSO |
||||
-------- |
||||
:strong:`cdist-type__daemontools_service`\ (7) |
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila--@--ksp.sk> |
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,20 @@ |
||||
#!/bin/sh |
||||
|
||||
pkg=$(cat "$__object/parameter/from-package") |
||||
|
||||
__package $pkg |
||||
|
||||
if [ -f "$__object/parameter/install-init-script" ]; then |
||||
init=$(cat "$__global/explorer/init") |
||||
case $init in |
||||
init) |
||||
__config_file /etc/init.d/svscan --mode 755 --source "$__type/files/init.d-svscan" |
||||
require="$require __config_file/etc/init.d/svscan" __start_on_boot svscan |
||||
require="$require __start_on_boot/svscan" __process svscan --start 'service svscan start' |
||||
;; |
||||
*) |
||||
echo "Your init system ($init) is not supported by this type. Submit a patch at github.com/ungleich/cdist!" |
||||
exit 1 |
||||
;; |
||||
esac |
||||
fi |
@ -0,0 +1 @@ |
||||
install-init-script |
@ -0,0 +1 @@ |
||||
daemontools |
@ -0,0 +1 @@ |
||||
from-package |
@ -0,0 +1 @@ |
||||
command -v svc |
@ -0,0 +1,72 @@ |
||||
cdist-type__daemontools_service(7) |
||||
================================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__daemontools_service - Create a daemontools-compatible service dir. |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Create a directory structure compatible with daemontools-like service management. |
||||
|
||||
Note that svc must be present on the target system. |
||||
|
||||
The object ID will be used as the service name. |
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
run |
||||
Command to run. exec-ing and stderr redirection will be added. One of run, run-file must be specified. |
||||
|
||||
Example: `my-program` |
||||
|
||||
run-file |
||||
File to save as <servicedir>/run. One of run, run-file must be specified. |
||||
|
||||
Example: |
||||
|
||||
.. code-block:: sh |
||||
|
||||
#!/bin/sh |
||||
exec 2>&1 |
||||
exec my_program |
||||
|
||||
|
||||
log-run |
||||
Command to run for log consumption. Default: `multilog t ./main` |
||||
|
||||
servicedir |
||||
Directory to install into. Default: `/service` |
||||
|
||||
BOOLEAN PARAMETERS |
||||
------------------ |
||||
None. |
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
require="__daemontools" __daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $FLAGS" |
||||
|
||||
|
||||
SEE ALSO |
||||
-------- |
||||
:strong:`cdist-type__daemontools`\ (7) |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila--@--ksp.sk> |
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,38 @@ |
||||
#!/bin/sh |
||||
|
||||
RUN_PREFIX="#!/bin/sh |
||||
exec 2>&1 |
||||
exec " # mind the space :D |
||||
|
||||
name=$__object_id |
||||
servicedir=$(cat "$__object/parameter/servicedir") |
||||
run=$(cat "$__object/parameter/run") |
||||
runfile=$(cat "$__object/parameter/run-file") |
||||
logrun=$(cat "$__object/parameter/log-run") |
||||
|
||||
svc=$(cat "$__type/explorer/svc") |
||||
|
||||
if [ -z "$svc" ]; then |
||||
echo "svc not found! Install daemontools first: see __daemontools" |
||||
exit 1 |
||||
fi |
||||
|
||||
badusage() { |
||||
echo "__daemontools_service/$__object_id: exactly one of --run, --run-file must be set" >&2 |
||||
exit 1 |
||||
} |
||||
|
||||
[ -z "$run$runfile" ] && badusage |
||||
[ -n "$run" ] && [ -n "$runfile" ] && badusage |
||||
|
||||
__directory $servicedir/$name/log/main --parents |
||||
|
||||
echo "$RUN_PREFIX$run" | require="__directory/$servicedir/$name/log/main" __config_file "$servicedir/$name/run" \ |
||||
--onchange "svc -t '$servicedir/$name' 2>/dev/null" \ |
||||
--mode 755 \ |
||||
--source "${runfile:--}" |
||||
|
||||
echo "$RUN_PREFIX$logrun" | require="__directory/$servicedir/$name/log/main" __config_file $servicedir/$name/log/run \ |
||||
--onchange "svc -t '$servicedir/$name/log' 2>/dev/null" \ |
||||
--mode 755 \ |
||||
--source "-" |
@ -0,0 +1 @@ |
||||
multilog t ./main |
@ -0,0 +1 @@ |
||||
/service |
@ -0,0 +1,4 @@ |
||||
log-run |
||||
run |
||||
run-file |
||||
servicedir |
@ -0,0 +1 @@ |
||||
present |
@ -0,0 +1 @@ |
||||
state |
@ -0,0 +1,31 @@ |
||||
#!/bin/sh |
||||
# |
||||
# 2016 Dominique Roux (dominique.roux at ungleich.ch) |
||||
# |
||||
# This file is part of cdist. |
||||
# |
||||
# cdist is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU General Public License as published by |
||||
# the Free Software Foundation, either version 3 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# cdist 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 General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>. |
||||
# |
||||
|
||||
# Variables |
||||
version="$(cat "$__object/parameter/version")" |
||||
state="$(cat "$__object/parameter/state")" |
||||
|
||||
if [ ${state} = "present" ]; then |
||||
# Download docker-compose file |
||||
echo 'curl -L "https://github.com/docker/compose/releases/download/'${version}'/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose' |
||||
echo 'mv /tmp/docker-compose /usr/local/bin/docker-compose' |
||||
# Change permissions |
||||
echo 'chmod +x /usr/local/bin/docker-compose' |
||||
fi |
@ -0,0 +1,58 @@ |
||||
cdist-type__docker_compose(7) |
||||
============================= |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__docker_compose - install docker-compose |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Installs docker-compose package. |
||||
State 'absent' will not remove docker binary itself, |
||||
only docker-compose binary will be removed |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
version |
||||
Define docker_compose version, defaults to "1.9.0" |
||||
|
||||
state |
||||
'present' or 'absent', defaults to 'present' |
||||
|
||||
|
||||
BOOLEAN PARAMETERS |
||||
------------------ |
||||
None. |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
# Install docker-compose |
||||
__docker_compose |
||||
|
||||
# Install version 1.9.0-rc4 |
||||
__docker_compose --version 1.9.0-rc4 |
||||
|
||||
# Remove docker-compose |
||||
__docker_compose --state absent |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Dominique Roux <dominique.roux--@--ungleich.ch> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2016 Dominique Roux. Free use of this software is |
||||
granted under the terms of the GNU General Public License version 3 or later (GPLv3+). |
@ -0,0 +1,33 @@ |
||||
#!/bin/sh |
||||
# |
||||
# 2016 Dominique Roux (dominique.roux at ungleich.ch) |
||||
# |
||||
# This file is part of cdist. |
||||
# |
||||
# cdist is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU General Public License as published by |
||||
# the Free Software Foundation, either version 3 of the License, or |
||||
# (at your option) any later version. |
||||
# |
||||
# cdist 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 General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>. |
||||
# |
||||
# |
||||
|
||||
state="$(cat "$__object/parameter/state")" |
||||
|
||||
# Needed packages |
||||
if [ ${state} = "present" ]; then |
||||
__docker |
||||
__package curl |
||||
elif [ ${state} = "absent" ]; then |
||||
__file /usr/local/bin/docker-compose --state absent |
||||
else |
||||
echo "Unknown state: ${state}" >&2 |
||||
exit 1 |
||||
fi |
@ -0,0 +1 @@ |
||||
present |
@ -0,0 +1 @@ |
||||
1.12.0 |
@ -0,0 +1,2 @@ |
||||
state |
||||
version |
@ -0,0 +1,27 @@ |
||||
#!/bin/sh |
||||
# Copyright (C) 2016 Dmitry Bogatov <KAction@gnu.org> |
||||
|
||||
# Author: Dmitry Bogatov <KAction@gnu.org> |
||||
|
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU 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 General Public License for more details. |
||||
|
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
set -eu |
||||
|
||||
user="$(cat "${__object}/parameter/user")" |
||||
|
||||
if which getent >/dev/null 2>&1; then |
||||
line=$(getent passwd "${user}") |
||||
else |
||||
line=$(grep "^${user}:" /etc/passwd) |
||||
fi |
||||
printf '%s' "$line" | cut -d: -f6 |
@ -0,0 +1,21 @@ |
||||
#!/bin/sh |
||||
# Copyright (C) 2016 Dmitry Bogatov <kaction@sagulo> |
||||
|
||||
# Author: Dmitry Bogatov <kaction@sagulo> |
||||
|
||||
# This program is free software; you can redistribute it and/or |
||||
# modify it under the terms of the GNU 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 General Public License for more details. |
||||
|
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
set -eu |
||||
|
||||
user="$(cat "${__object}/parameter/user")" |
||||
id -gn "${user}" |
@ -0,0 +1,71 @@ |
||||
cdist-type__dot_file(7) |
||||
======================== |
||||
|
||||
NAME |
||||
---- |
||||
|
||||
cdist-type__dot_file - install file under user's home directory |
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
|
||||
This type installs a file (=\ *__object_id*) under user's home directory, |
||||
providing a way to install per-user configuration files. File owner |
||||
and group is deduced from user, for who file is installed. |
||||
|
||||
Unlike regular __file type, you do not need make any assumptions, |
||||
where user's home directory is. |
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
|
||||
user |
||||
User, for who file is installed |
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
|
||||
mode |
||||
forwarded to :strong:`__file` type |
||||
|
||||
state |
||||
forwarded to :strong:`__file` type |
||||
|
||||
source |
||||
forwarded to :strong:`__file` type |
||||
|
||||
MESSAGES |
||||
-------- |
||||
|
||||
This type inherits all messages from :strong:`file` type, and do not add |
||||
any new. |
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
# Install .forward file for user 'alice'. Since state is 'present', |
||||
# user is not meant to edit this file, all changes will be overridden. |
||||
# It is good idea to put warning about it in file itself. |
||||
__dot_file .forward --user alice --source "$__files/forward" |
||||
|
||||
# Install .muttrc for user 'bob', if not already present. User can safely |
||||
# edit it, his changes will not be overwritten. |
||||
__dot_file .muttrc --user bob --source "$__files/recommended_mutt_config" --state exists |
||||
|
||||
|
||||
# Install default xmonad config for user 'eve'. Parent directory is created automatically. |
||||
__dot_file .xmonad/xmonad.hs --user eve --state exists --source "$__files/xmonad.hs" |
||||
|
||||
SEE ALSO |
||||
-------- |
||||
|
||||
**cdist-type__file**\ (7) |
||||
|
||||
COPYING |
||||
------- |
||||
|
||||
Copyright (C) 2015 Dmitry Bogatov. Free use of this software is granted |
||||
under the terms of the GNU General Public License version 3 or later |
||||
(GPLv3+). |
@ -0,0 +1,65 @@ |
||||
#!/bin/sh |
||||
# |
||||
# Copyright (C) 2016 Bogatov Dmitry <KAction@gnu.org> |
||||
# |
||||
# This program is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU 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 General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
set -eu |
||||
|
||||
user="$(cat "${__object}/parameter/user")" |
||||
home="$(cat "${__object}/explorer/home")" |
||||
primary_group="$(cat "${__object}/explorer/primary_group")" |
||||
|
||||
# Create parent directory. Type __directory has flag 'parents', but it |
||||
# will leave us with root-owned directory in user home, which is not |
||||
# acceptable. So we create parent directories one-by-one. XXX: maybe |
||||
# it should be fixed in '__directory'? |
||||
set -- |
||||
subpath=${__object_id} |
||||
while subpath="$(dirname "${subpath}")" ; do |
||||
[ "${subpath}" = . ] && break |
||||
set -- "${subpath}" "$@" |
||||
done |
||||
unset subpath |
||||
|
||||
export CDIST_ORDER_DEPENDENCY |
||||
for dir ; do |
||||
__directory "${home}/${dir}" \ |
||||
--group "${primary_group}" \ |
||||
--owner "${user}" |
||||
done |
||||
|
||||
# These parameters are forwarded to __file type. 'mode' is always |
||||
# present, since it have been given default. |
||||
|
||||
set -- |
||||
for p in state mode source ; do |
||||
if [ -f "${__object}/parameter/${p}" ] ; then |
||||
value="$(cat "${__object}/parameter/${p}")" |
||||
set -- "$@" "--${p}" "${value}" |
||||
unset value |
||||
fi |
||||
done |
||||
|
||||
# If source is `-' we can't just forward it, since stdin is already |
||||
# captured by __dot_file. So, we replace '-' with "$__object/stdin". |
||||
# |
||||
# It means that it is possible for __file to receive --source |
||||
# parameter twice, but, since latest wins, it is okay. |
||||
source="$(cat "${__object}/parameter/source")" |
||||
if [ "${source}" = "-" ] ; then |
||||
set -- "$@" --source "${__object}/stdin" |
||||
fi |
||||
unset source |
||||
|
||||
__file "${home}/${__object_id}" --owner "$user" --group "$primary_group" "$@" |
@ -0,0 +1 @@ |
||||
600 |
@ -0,0 +1,3 @@ |
||||
state |
||||
mode |
||||
source |
@ -0,0 +1 @@ |
||||
user |
@ -0,0 +1,3 @@ |
||||
[ -f /etc/environment ] && . /etc/environment |
||||
[ -f /etc/profile ] && . /etc/profile |
||||
go version 2>/dev/null || true |
@ -0,0 +1,8 @@ |
||||
package=$__object_id |
||||
|
||||
cat<<EOF |
||||
[ -f /etc/environment ] && . /etc/environment |
||||
[ -f /etc/profile ] && . /etc/profile |
||||
export GOPATH=\${GOPATH:-/opt/gocode} |
||||
go get $package |
||||
EOF |
@ -0,0 +1,48 @@ |
||||
cdist-type__go_get(7) |
||||
===================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__go_get - Install go packages with go get |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
This cdist type allows you to install golang packages with go get. |
||||
A sufficiently recent version of go must be present on the system. |
||||
|
||||
The object ID is the go package to be installed. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__go_get github.com/prometheus/prometheus/cmd/... |
||||
|
||||
# usually you'd need to require golang from somewhere: |
||||
require="__golang_from_vendor" __go_get github.com/prometheus/prometheus/cmd/... |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila@ksp.sk> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,17 @@ |
||||
#!/bin/sh |
||||
|
||||
go_executable=$(cat "$__object/explorer/go-executable") |
||||
[ -z "$go_executable" ] && echo "__go_get: Cannot find go executable; make sure it is installed and in PATH" >&2 && exit 1 |
||||
|
||||
os=$(cat "$__global/explorer/os") |
||||
case $os in |
||||
debian|devuan|ubuntu) |
||||
__package build-essential |
||||
;; |
||||
*) |
||||
echo "__go_get: Don't know how to install g++ on $os" >&2 |
||||
echo "__go_get: Send a pull request or contact <kamila@ksp.sk> to add support for $os." >&2 |
||||
exit 1 |
||||
;; |
||||
esac |
||||
|
@ -0,0 +1,26 @@ |
||||
#!/bin/sh |
||||
|
||||
version=$(cat "$__object/parameter/version") |
||||
|
||||
kernel_name=$(cat "$__global/explorer/kernel_name" | tr '[:upper:]' '[:lower:]') |
||||
machine=$(cat "$__global/explorer/machine") |
||||
case $machine in |
||||
x86_64|amd64) |
||||
arch=amd64 |
||||
;; |
||||
x86) |
||||
arch=386 |
||||
;; |
||||
*) |
||||
arch=$machine # at least try... |
||||
;; |
||||
esac |
||||
|
||||
PACKAGE="go${version}.${kernel_name}-${arch}" |
||||
URL="https://storage.googleapis.com/golang/${PACKAGE}.tar.gz" |
||||
cat <<EOF |
||||
[ "x\$(cat /usr/local/go/VERSION 2>/dev/null)" = "xgo$version" ] && exit 0 # already there |
||||
wget --no-verbose "$URL" -O "/tmp/${PACKAGE}.tar.gz" |
||||
rm -rf /usr/local/go |
||||
tar -C /usr/local -xzf /tmp/${PACKAGE}.tar.gz |
||||
EOF |
@ -0,0 +1,48 @@ |
||||
cdist-type__golang_from_vendor(7) |
||||
================================= |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__golang_from_vendor - Install any version of golang from golang.org |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
This cdist type allows you to install golang from archives provided by https://golang.org/dl/. |
||||
|
||||
See https://golang.org/dl/ for the list of supported versions, operating systems and architectures. |
||||
|
||||
This is a singleton type. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
version |
||||
The golang version to install, defaults to 1.8.1 |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__golang_from_vendor --version 1.8.1 |
||||
|
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila@ksp.sk> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1 @@ |
||||
__line go_in_path --line 'export PATH=/usr/local/go/bin:$PATH' --file /etc/profile |
@ -0,0 +1 @@ |
||||
1.8.1 |
@ -0,0 +1 @@ |
||||
version |
@ -0,0 +1,43 @@ |
||||
cdist-type__grafana_dashboard(7) |
||||
================================ |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__grafana_dashboard - Install Grafana (https://grafana.com) |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
This cdist type adds the Grafana repository, installs the grafana package, and sets the server to start on boot. |
||||
|
||||
This is a singleton type. |
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__grafana_dashboard |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila@ksp.sk> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,32 @@ |
||||
os=$(cat $__global/explorer/os) |
||||
os_version=$(cat $__global/explorer/os_version) |
||||
|
||||
case $os in |
||||
debian|devuan) |
||||
case $os_version in |
||||
8*|jessie) |
||||
__apt_key_uri grafana \ |
||||
--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 |
||||
;; |
||||
*) |
||||
echo "Don't know how to install Grafana on $os $os_version. Send us a pull request!" |
||||
exit 1 |
||||
;; |
||||
esac |
||||
;; |
||||
*) |
||||
echo "Don't know how to install Grafana on $os. Send us a pull request!" |
||||
exit 1 |
||||
;; |
||||
esac |
@ -0,0 +1,55 @@ |
||||
cdist-type__hosts(7) |
||||
==================== |
||||
|
||||
NAME |
||||
---- |
||||
|
||||
cdist-type__hosts - manage entries in /etc/hosts |
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
|
||||
Add or remove entries from */etc/hosts* file. |
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
|
||||
state |
||||
If state is ``present``, make *object_id* resolve to *ip*. If |
||||
state is ``absent``, *object_id* will no longer resolve via |
||||
*/etc/hosts*, if it was previously configured with this type. |
||||
Manually inserted entries are unaffected. |
||||
|
||||
ip |
||||
IP address, to which hostname (=\ *object_id*) must resolve. If |
||||
state is ``present``, this parameter is mandatory, if state is |
||||
``absent``, this parameter is silently ignored. |
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
# Now `funny' resolves to 192.168.1.76, |
||||
__hosts funny --ip 192.168.1.76 |
||||
# and `happy' no longer resolve via /etc/hosts if it was |
||||
# previously configured via __hosts. |
||||
__hosts happy --state absent |
||||
|
||||
SEE ALSO |
||||
-------- |
||||
|
||||
:strong:`hosts`\ (5) |
||||
|
||||
AUTHORS |
||||
------- |
||||
|
||||
Dmitry Bogatov <KAction@gnu.org> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
|
||||
Copyright (C) 2015,2016 Dmitry Bogatov. Free use of this software is granted |
||||
under the terms of the GNU General Public License version 3 or later |
||||
(GPLv3+). |
@ -0,0 +1,29 @@ |
||||
#!/bin/sh |
||||
# Copyright (C) 2015 Bogatov Dmitry <KAction@gnu.org> |
||||
# |
||||
# This program is free software: you can redistribute it and/or modify |
||||
# it under the terms of the GNU 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 General Public License for more details. |
||||
# |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
set -ue |
||||
|
||||
hostname="$__object_id" |
||||
state="$(cat "$__object/parameter/state")" |
||||
marker="# __hosts/$hostname" |
||||
|
||||
set -- "__hosts/$hostname" --file /etc/hosts --state "$state" |
||||
|
||||
if [ "$state" = absent ] ; then |
||||
__line "$@" --regex "$marker" |
||||
else |
||||
ip="$(cat "$__object/parameter/ip")" |
||||
__line "$@" --line "$ip $hostname $marker" |
||||
fi |
@ -0,0 +1 @@ |
||||
present |
@ -0,0 +1,2 @@ |
||||
state |
||||
ip |
@ -1 +0,0 @@ |
||||
../__chroot_mount/man.rst |
@ -0,0 +1,42 @@ |
||||
cdist-type__install_chroot_mount(7) |
||||
=================================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__install_chroot_mount - mount a chroot with install command |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Mount and prepare a chroot for running commands within it. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
None |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__install_chroot_mount /path/to/chroot |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Steven Armstrong <steven-cdist--@--armstrong.cc> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2012 Steven Armstrong. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -1 +0,0 @@ |
||||
../__chroot_umount/man.rst |
@ -0,0 +1,47 @@ |
||||
cdist-type__install_chroot_umount(7) |
||||
==================================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__install_chroot_umount - unmount a chroot mounted by __install_chroot_mount |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Undo what __install_chroot_mount did. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
None |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
__install_chroot_umount /path/to/chroot |
||||
|
||||
|
||||
SEE ALSO |
||||
-------- |
||||
:strong:`cdist-type__install_chroot_mount`\ (7) |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Steven Armstrong <steven-cdist--@--armstrong.cc> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2012 Steven Armstrong. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -1 +0,0 @@ |
||||
../__file/man.rst |
@ -0,0 +1,112 @@ |
||||
cdist-type__install_file(7) |
||||
=========================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__install_file - Manage files with install command. |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
This cdist type allows you to create files, remove files and set file |
||||
attributes on the target. |
||||
|
||||
If the file already exists on the target, then if it is a: |
||||
|
||||
regular file, and state is: |
||||
present |
||||
replace it with the source file if they are not equal |
||||
exists |
||||
do nothing |
||||
symlink |
||||
replace it with the source file |
||||
directory |
||||
replace it with the source file |
||||
|
||||
In any case, make sure that the file attributes are as specified. |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
None. |
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
state |
||||
'present', 'absent' or 'exists', defaults to 'present' where: |
||||
|
||||
present |
||||
the file is exactly the one from source |
||||
absent |
||||
the file does not exist |
||||
exists |
||||
the file from source but only if it doesn't already exist |
||||
|
||||
group |
||||
Group to chgrp to. |
||||
|
||||
mode |
||||
Unix permissions, suitable for chmod. |
||||
|
||||
owner |
||||
User to chown to. |
||||
|
||||
source |
||||
If supplied, copy this file from the host running cdist to the target. |
||||
If not supplied, an empty file or directory will be created. |
||||
If source is '-' (dash), take what was written to stdin as the file content. |
||||
|
||||
MESSAGES |
||||
-------- |
||||
chgrp <group> |
||||
Changed group membership |
||||
chown <owner> |
||||
Changed owner |
||||
chmod <mode> |
||||
Changed mode |
||||
create |
||||
Empty file was created (no --source specified) |
||||
remove |
||||
File exists, but state is absent, file will be removed by generated code. |
||||
upload |
||||
File was uploaded |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
# Create /etc/cdist-configured as an empty file |
||||
__install_file /etc/cdist-configured |
||||
# The same thing |
||||
__install_file /etc/cdist-configured --state present |
||||
# Use __file from another type |
||||
__install_file /etc/issue --source "$__type/files/archlinux" --state present |
||||
# Delete existing file |
||||
__install_file /etc/cdist-configured --state absent |
||||
# Supply some more settings |
||||
__install_file /etc/shadow --source "$__type/files/shadow" \ |
||||
--owner root --group shadow --mode 0640 \ |
||||
--state present |
||||
# Provide a default file, but let the user change it |
||||
__install_file /home/frodo/.bashrc --source "/etc/skel/.bashrc" \ |
||||
--state exists \ |
||||
--owner frodo --mode 0600 |
||||
# Take file content from stdin |
||||
__install_file /tmp/whatever --owner root --group root --mode 644 --source - << DONE |
||||
Here goes the content for /tmp/whatever |
||||
DONE |
||||
|
||||
|
||||
AUTHORS |
||||
------- |
||||
Nico Schottelius <nico-cdist--@--schottelius.org> |
||||
|
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2011-2013 Nico Schottelius. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,66 @@ |
||||
cdist-type__prometheus_alertmanager(7) |
||||
====================================== |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__prometheus_alertmanager - install Alertmanager |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Install and configure Prometheus Alertmanager (https://prometheus.io/docs/alerting/alertmanager/). |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
config |
||||
Alertmanager configuration file. It will be saved as /etc/alertmanager/alertmanager.yml on the target. |
||||
listen-address |
||||
Passed as web.listen-address. |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
storage-path |
||||
Where to put data. Default: /data/alertmanager. (Directory will be created if needed.) |
||||
|
||||
|
||||
BOOLEAN PARAMETERS |
||||
------------------ |
||||
with-daemontools |
||||
Create a daemontools service directory under /service/prometheus. Default: yes. |
||||
Note: If you do not use this, Alertmanager will not be launched, and will not reload config on change. |
||||
If you use this, daemontools (or something compatible) must be installed. |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
ALERTPORT=9093 |
||||
|
||||
__daemontools |
||||
__golang_from_vendor --version 1.8.1 # required for prometheus and many exporters |
||||
|
||||
require="__daemontools __golang_from_vendor" __prometheus_alertmanager \ |
||||
--config "$__manifest/files/alertmanager.yml" \ |
||||
--storage-path /data/alertmanager \ |
||||
--listen-address "[::]:$ALERTPORT" |
||||
|
||||
|
||||
SEE ALSO |
||||
-------- |
||||
:strong:`cdist-type__prometheus_server`\ (7), :strong:`cdist-type__daemontools`\ (7), |
||||
Prometheus alerting documentation: https://prometheus.io/docs/alerting/overview/ |
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila--@--ksp.sk> |
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,39 @@ |
||||
#!/bin/sh |
||||
|
||||
GOBIN=/opt/gocode/bin # where to find go binaries |
||||
CONF_DIR=/etc/prometheus |
||||
LOGLEVEL=info |
||||
CONF=$CONF_DIR/alertmanager.yml |
||||
|
||||
### Prometheus server ####################################################### |
||||
|
||||
config="$(cat "$__object/parameter/config")" |
||||
storage_path="$(cat "$__object/parameter/storage-path")" |
||||
listen_address="$(cat "$__object/parameter/listen-address")" |
||||
|
||||
ONCHANGE="" |
||||
if [ -f "$__object/parameter/with-daemontools" ]; then |
||||
__daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $REAL_FLAGS" |
||||
ONCHANGE="svc -h /service/prometheus" |
||||
fi |
||||
|
||||
FLAGS="config.file '$CONF' |
||||
storage.path '$storage_path' |
||||
web.listen-address '$listen_address' |
||||
log.level $LOGLEVEL" |
||||
|
||||
REAL_FLAGS="$(echo "$FLAGS" | sed -nE 's/^([^#]+).*/ --\1 \\/p')" |
||||
|
||||
__go_get github.com/prometheus/alertmanager/cmd/... |
||||
|
||||
__user prometheus --system |
||||
__directory "$storage_path" --owner prometheus |
||||
__directory "$CONF_DIR" --owner prometheus |
||||
|
||||
__daemontools_service alertmanager --run "setuidgid prometheus $GOBIN/alertmanager $REAL_FLAGS" |
||||
|
||||
require="$require __directory/$storage_path" \ |
||||
__config_file $CONF \ |
||||
--source $config \ |
||||
--group prometheus --mode 640 \ |
||||
--onchange "$ONCHANGE" |
@ -0,0 +1 @@ |
||||
/data/alertmanager |
@ -0,0 +1 @@ |
||||
storage-path |
@ -0,0 +1,2 @@ |
||||
config |
||||
listen-address |
@ -0,0 +1,78 @@ |
||||
cdist-type__prometheus_server(7) |
||||
================================ |
||||
|
||||
NAME |
||||
---- |
||||
cdist-type__prometheus_server - install Prometheus |
||||
|
||||
|
||||
DESCRIPTION |
||||
----------- |
||||
Install and configure Prometheus (https://prometheus.io/). |
||||
|
||||
|
||||
REQUIRED PARAMETERS |
||||
------------------- |
||||
config |
||||
Prometheus configuration file. It will be saved as /etc/prometheus/prometheus.yml on the target. |
||||
listen-address |
||||
Passed as web.listen-address. |
||||
alertmanager-url |
||||
Passed as alertmanager.url |
||||
|
||||
|
||||
OPTIONAL PARAMETERS |
||||
------------------- |
||||
retention-days |
||||
How long to keep data. Default: 30 |
||||
rule-files |
||||
Path to rule files. They will be installed under /etc/prometheus/<filename>. You need to include `rule_files: [/etc/prometheus/<your-pattern>]` in the config file if you use this. |
||||
storage-path |
||||
Where to put data. Default: /data/prometheus. (Directory will be created if needed.) |
||||
target-heap-size |
||||
Passed as storage.local.target-heap-size. Default: 1/2 of RAM. |
||||
|
||||
|
||||
BOOLEAN PARAMETERS |
||||
------------------ |
||||
with-daemontools |
||||
Create a daemontools service directory under /service/prometheus. Default: yes. |
||||
Note: If you do not use this, Prometheus will not be launched, and will not reload config on change. |
||||
If you use this, daemontools (or something compatible) must be installed. |
||||
|
||||
|
||||
EXAMPLES |
||||
-------- |
||||
|
||||
.. code-block:: sh |
||||
|
||||
PROMPORT=9090 |
||||
ALERTPORT=9093 |
||||
|
||||
__daemontools |
||||
__golang_from_vendor --version 1.8.1 # required for prometheus and many exporters |
||||
|
||||
require="__daemontools __golang_from_vendor" __prometheus_server \ |
||||
--config "$__manifest/files/prometheus.yml" \ |
||||
--retention-days 14 \ |
||||
--storage-path /data/prometheus \ |
||||
--listen-address "[::]:$PROMPORT" \ |
||||
--rule-files "$__manifest/files/*.rules" \ |
||||
--alertmanager-url "http://monitoring1.node.consul:$ALERTPORT,http://monitoring2.node.consul:$ALERTPORT" |
||||
|
||||
|
||||
SEE ALSO |
||||
-------- |
||||
:strong:`cdist-type__prometheus_alertmanager`\ (7), :strong:`cdist-type__daemontools`\ (7), |
||||
Prometheus documentation: https://prometheus.io/docs/introduction/overview/ |
||||
|
||||
AUTHORS |
||||
------- |
||||
Kamila Součková <kamila--@--ksp.sk> |
||||
|
||||
COPYING |
||||
------- |
||||
Copyright \(C) 2017 Kamila Součková. You can redistribute it |
||||
and/or modify it under the terms of the GNU General Public License as |
||||
published by the Free Software Foundation, either version 3 of the |
||||
License, or (at your option) any later version. |
@ -0,0 +1,57 @@ |
||||
#!/bin/sh |
||||
|
||||
GOBIN=/opt/gocode/bin # where to find go binaries |
||||
CONF_DIR=/etc/prometheus |
||||
CONF=$CONF_DIR/prometheus.yml |
||||
LOGLEVEL=info |
||||
|
||||
config="$(cat "$__object/parameter/config")" |
||||
retention_days="$(cat "$__object/parameter/retention-days")" |
||||
storage_path="$(cat "$__object/parameter/storage-path")" |
||||
listen_address="$(cat "$__object/parameter/listen-address")" |
||||
alertmanager_url="$(cat "$__object/parameter/alertmanager-url")" |
||||
target_heap_size="$(cat "$__object/parameter/target-heap-size")" |
||||
rule_files="$(cat "$__object/parameter/rule-files")" |
||||
|
||||
# explorer in kB => convert; by default we go with 1/2 RAM |
||||
[ "$target_heap_size" = "auto" ] && target_heap_size=$(($(cat $__global/explorer/memory)*1024/2)) |
||||
|
||||
ONCHANGE="" |
||||
if [ -f "$__object/parameter/with-daemontools" ]; then |
||||
__daemontools_service prometheus --run "setuidgid prometheus $GOBIN/prometheus $REAL_FLAGS" |
||||
ONCHANGE="&& svc -h /service/prometheus" |
||||
fi |
||||
|
||||
FLAGS="config.file '$CONF' |
||||
storage.local.path '$storage_path' |
||||
storage.local.target-heap-size $(($target_heap_size)) # in bytes; should be 2/3 of available memory because it may be hungry |
||||
storage.local.retention $(($retention_days*24))h # golang doesn't have days :D |
||||
web.listen-address '$listen_address' |
||||
alertmanager.url '$alertmanager_url' |
||||
log.level $LOGLEVEL" |
||||
|
||||
REAL_FLAGS="$(echo "$FLAGS" | sed -nE 's/^([^#]+).*/ --\1 \\/p')" |
||||
|
||||
__go_get github.com/prometheus/prometheus/cmd/... |
||||
|
||||
__user prometheus --system |
||||
__directory "$storage_path" --owner prometheus |
||||
__directory "$CONF_DIR" --owner prometheus |
||||
|
||||
|
||||
|
||||
require="$require __directory/$storage_path" \ |
||||
__config_file $CONF \ |
||||
--source $config \ |
||||
--group prometheus --mode 640 \ |
||||
--onchange "$GOBIN/promtool check-config $CONF $ONCHANGE" |
||||
|
||||
for file in $rule_files; do |
||||
dest=$CONF_DIR/$(basename $file) |
||||
require="$require __directory/$CONF_DIR" \ |
||||
__config_file "$dest" \ |
||||
--source "$file" \ |
||||
--owner prometheus \ |
||||
--onchange "$GOBIN/promtool check-rules '$dest' $ONCHANGE" |
||||
done |
||||
|
@ -0,0 +1 @@ |
||||
with-daemontools |
@ -0,0 +1 @@ |
||||
30 |
@ -0,0 +1 @@ |
||||
/data/prometheus |
@ -0,0 +1 @@ |
||||
auto |
@ -0,0 +1,4 @@ |
||||
target-heap-size |
||||
retention-days |
||||
rule-files |
||||
storage-path |
@ -0,0 +1,3 @@ |
||||
alertmanager-url |
||||
config |
||||
listen-address |
@ -0,0 +1,5 @@ |
||||
* After constructs don't exist |
||||
Flow as implemented on 2013-04-12 has the problem of not allowing |
||||
*after* constructs. |
||||
* "Type explorer & manifests only" is broken |
||||
Doesn't catch external dependencies |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue