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
ID=hostname -I | awk -F '.' '{ print ($3*255+$4) }' |
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 { | |
s3 { | |
bucket => 'bucketname' | |
region => 'eu-west-1' | |
delete => true | |
type => 'elb' | |
} | |
} | |
filter { |
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
python -c 'import json,sys;print json.dumps(json.loads(sys.stdin.read()), separators=(",", ":"))' |
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
{% set tomcat_version = "7.0.28" %} | |
{% set tomcat_hash = "md5=cfcd5b624df6aa94e9c91cd1fb4d0c71" %} | |
{% set tomcat_tarball = "/usr/local/src/apache-tomcat-" + tomcat_version + ".tar.gz" %} | |
{% set tomcat_prefix = "/usr/local" %} | |
{% set tomcat_url = "http://mirror.ox.ac.uk/sites/rsync.apache.org/tomcat/tomcat-7/v" + tomcat_version + "/bin/apache-tomcat-" + tomcat_version + ".tar.gz" %} | |
tomcat_tarball: | |
file.managed: | |
- name: {{tomcat_tarball}} |