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
coreos: | |
units: | |
- name: docker.service | |
command: restart | |
content: | | |
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=http://docs.docker.io | |
[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
default coreos | |
prompt 1 | |
timeout 15 | |
display boot.msg | |
label coreos | |
menu default | |
kernel http://<your_server_name>/coreos_production_pxe.vmlinuz | |
append initrd=http://<your_server_name>/coreos_production_pxe_image.cpio.gz cloud-config-url=http://<your_server_name>/cloud-config.yml |
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
coreos: | |
units: | |
- name: newrelic.service | |
command: start | |
content: | | |
[Unit] | |
Description=newrelic | |
Requires=docker.service | |
After=docker.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
coreos: | |
units: | |
- name: logentries.service | |
command: start | |
content: | | |
[Unit] | |
Description=logentires.service | |
[Service] | |
Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN |
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=logentires.service | |
[Service] | |
Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN | |
ExecStart=/bin/sh -c 'journalctl -o short -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat data.logentries.com 10000' |
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
sudo systemctl start logentries |
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
yum install -y perl-devel libxml2-devel | |
git clone https://github.com/robn/towncrier.git | |
cd towncrier | |
curl -L http://cpanmin.us | perl - Carton | |
carton install | |
cpanm Task::Plack |
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
plugins: | |
"Auth::Basic": | |
paths: | |
"/admin/api": | |
realm: api | |
user: admin <= YOUR_USERNAME | |
password: secret <= YOUR_PASSWORD |
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
#!/bin/sh | |
PORT=5000 | |
AUTH=admin:secret | |
# Create statuses | |
curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Up -F description='The service is operating normally' -F icon=ok-sign | |
curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Down -F description='The service is unavailable' -F icon=remove-sign | |
curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/statuses -F name=Warning -F description='The service is operating in a degraded capacity' -F icon=warning-sign |
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
PORT=5000 | |
AUTH=admin:secret | |
curl -u $AUTH -i http://localhost:$PORT/admin/api/v1/services/first/events -F status=down -F message="oh my god." |
OlderNewer