Skip to content

Instantly share code, notes, and snippets.

@keymon
Created September 8, 2014 22:37
Show Gist options
  • Select an option

  • Save keymon/803c98099ef310097429 to your computer and use it in GitHub Desktop.

Select an option

Save keymon/803c98099ef310097429 to your computer and use it in GitHub Desktop.
Setting up panamax in a coreos-vagrant with 3 instances
#
# I was playing around with coreos cluster + panamax.io
#
# Clone the git repo from coreos-vagrant
git clone https://github.com/coreos/coreos-vagrant
# Setup the number of instances to 3, and use stable channel
sed 's/#*$num_instances=.*/$num_instances=3/;s/#*$update_channel=.*/$update_channel=\'stable\'/' config.rb.sample > config.rb
# Change the vagrantfile to load the CoreOS version 3.6.7
cp Vagrantfile Vagrantfile.orig
sed 's|amd64-usr/current|amd64-usr/367.1.0|' < Vagrantfile.orig > Vagrantfile
# Setup the new discovery url for etcd.
# NOTE: You must run this everytime you destroy the cluster
sed "s|#discovery: .*|discovery: $(curl -qs https://discovery.etcd.io/new)|" user-data.sample > user-data
# Start vagrant
vagrant up
# install Panamax
vagrant ssh core-01 -- 'curl -O http://download.panamax.io/installer/pmx-installer-latest.zip && sudo unzip pmx-installer-latest.zip -d /var/panamax'
vagrant ssh core-01 -- 'cd /var/panamax && sudo ./coreos install --stable'
# Done, your server is in http://172.17.8.101:3000
@keymon
Copy link
Copy Markdown
Author

keymon commented Sep 8, 2014

Note: did not really work so far :(

I got some images running, but I often get the "runtime timeout". Might be related to run the coreos cluster or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment