Created
December 21, 2016 19:55
-
-
Save jamesbeedy/61fc01b7e128673a567331b90c74f9c4 to your computer and use it in GitHub Desktop.
elasticsearch package doesn't work in lxc
This file contains hidden or 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
#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 |
This file contains hidden or 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
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