Skip to content

Instantly share code, notes, and snippets.

View cgswong's full-sized avatar

Stuart Wong cgswong

View GitHub Profile
@cgswong
cgswong / logstash.conf
Last active June 24, 2021 18:08
Logstash configuration file.
# #####################################################################
# 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"
@cgswong
cgswong / consul-discovery.service
Created January 22, 2015 13:57
Consul discovery service for running Consul server via fleetctl command within unit file (still work in progress as this is not working)
- name: consul-discovery.service
command: start
content: |
[Unit]
Description=Enable the consul bootstrap process
# Requirements
Requires=docker.service
Requires=fleet.service
@cgswong
cgswong / [email protected]
Created January 21, 2015 23:10
Consul Server bootstrap using Fleet and bash scripting
- name: [email protected]
content: |
[Unit]
Description=Consul Server
# Requirements
Requires=docker.service
Requires=fleet.service
Requires=consul-discovery@%i.service