Skip to content

Instantly share code, notes, and snippets.

@ryanmaclean
Last active May 6, 2016 22:54
Show Gist options
  • Select an option

  • Save ryanmaclean/66ce479388d46b153cff to your computer and use it in GitHub Desktop.

Select an option

Save ryanmaclean/66ce479388d46b153cff to your computer and use it in GitHub Desktop.
Cat EOF (Here File) for Elasticsearch Config File
#!/bin/bash
cat >> /etc/elasticsearch/elasticsearch.yml << EOF
cluster.name: ELASTICAWESOME
cloud.aws.access_key: ACCESS_KEY_HERE
cloud.aws.secret_key: SECRET_KEY_HERE
cloud.aws.region: us-east-1
discovery.type: ec2
discovery.ec2.tag.Name: "ELKBEE"
http.cors.enabled: true
http.cors.allow-origin: "*"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment