This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: [email protected] | |
content: | | |
[Unit] | |
Description=Consul Server | |
# Requirements | |
Requires=docker.service | |
Requires=fleet.service | |
Requires=consul-discovery@%i.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: consul-discovery.service | |
command: start | |
content: | | |
[Unit] | |
Description=Enable the consul bootstrap process | |
# Requirements | |
Requires=docker.service | |
Requires=fleet.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##################################################################### | |
# DESC: Logstash configuration file. Typically forwarding logs to | |
# Elasticsearch instance. | |
# ##################################################################### | |
# Where to get input | |
input { | |
# Get input from standard input device/interface | |
stdin { | |
type => "stdin-type" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Settings in [main] are used if a more specific section doesn't set a value. | |
[main] | |
always_cache_features = true | |
dns_alt_names = puppet,puppetmaster | |
directoryenvironment = $confdir/environments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=ElasticSearch discovery service | |
BindsTo=elasticsearch@%i.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
ExecStart=/bin/bash -c '\ | |
while true; do \ | |
curl -f ${COREOS_PRIVATE_IPV4}:9200; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=ElasticSearch service | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutSec=180 | |
EnvironmentFile=/etc/environment | |
ExecStartPre=/usr/bin/mkdir -p /data/es |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sL http://172.17.8.101:8500/v1/catalog/service/elasticsearch-9200 | awk -v RS=',"' -F: '/^ServicePort/ {print $2}' | sed "s/}]//g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
discovery.zen.ping.unicast.hosts: [{{ range $index, $server := getvs "/services/logging/es/host/*" }}{{if $index}}, {{end}}"{{$server.Value}}"{{ end }}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Journal redirect to remote | |
[Service] | |
Restart=on-failure | |
StartLimitInterval=60s | |
StartLimitBurst=3 | |
TimeoutStartSec=0 | |
ExecStart=/bin/sh -c '/usr/bin/journalctl -f -o short | /usr/bin/ncat [hostname/IP] [port]' | |
PIDFile=/var/run/journalncat.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
tcp { | |
port => 5000 | |
type => syslog | |
} | |
udp { | |
port => 5000 | |
type => syslog | |
} | |
} |
OlderNewer