Skip to content

Chef cookbook to setup elasticsearch with access control and monitoring

License

Notifications You must be signed in to change notification settings

issueapp/cookbook-idata

Repository files navigation

development

  1. kitchen list
  2. kitchen create
  3. kitchen converge
  4. kitchen verify
  5. kitchen login

dependencies

  • berkshelf 3
  • chef 12
  • vagrant 1.6.3

troubleshoot

opsworks

AMI image

  • ami-f68f1fe1 elasticsearch slave
  • ami-2f8a1a38 elasticsearch master (nginx reverse proxy for SSL and Basic Authentication)

Packaging Cookbook Dependencies Locally

http://docs.aws.amazon.com/opsworks/latest/userguide/best-practices-packaging-cookbooks-locally.html

  1. berks package
  2. aws s3 cp cookbook* s3://bucket

Customization

Tailor custom.json to your setup

{
  idata: {
    user: ubam
    pass: pbam
    aws_access_key: a1234
    aws_secret_key: s5678
    monitor_url: "http://monitor.com:9200"
    ssl_key: "-----BEGIN RSA PRIVATE KEY-----\ninsert key content\n-----END RSA PRIVATE KEY-----\n"
    ssl_cert: "-----BEGIN CERTIFICATE-----\ninsert cert content\n-----END CERTIFICATE-----\n"
  }
}

Proxy

# access elasticsearch via HTTP Basic Auth
curl https://ubam:pbam@localhost

# access monitor via HTTP Basic Auth
curl https://ubam:pbam@localhost/monitor

SSL generator

About

Chef cookbook to setup elasticsearch with access control and monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published