Skip to content

Instantly share code, notes, and snippets.

@jamesbeedy
Created December 21, 2016 19:55
Show Gist options
  • Save jamesbeedy/61fc01b7e128673a567331b90c74f9c4 to your computer and use it in GitHub Desktop.
Save jamesbeedy/61fc01b7e128673a567331b90c74f9c4 to your computer and use it in GitHub Desktop.
elasticsearch package doesn't work in lxc
#cloud-config
output:
all: "|tee -a /tmp/cloud.out"
bootcmd:
- curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
apt_sources:
- source: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
packages:
- elasticsearch
runcmd:
- service elasticsearch start
lxc launch -e ubuntu:16.04 es-test -c user.user-data="$(cat es.yaml)"
lxc exec es-test tail -f /tmp/cloud.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment