Fix ds-build profile to set external IP in advance

Change-Id: I8375c5ba52bedaea36b51d161b13f5e0cc48db37
This commit is contained in:
David Schroeder 2014-07-28 12:16:47 -06:00
parent 452fe9cfb4
commit fafe37ffd2
5 changed files with 7 additions and 17 deletions

View File

@ -4,4 +4,4 @@ maintainer_email "hpcs-mon@hp.com"
license "All rights reserved"
description "Customizes devstack server for use with mini-mon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.2"
version "0.0.3"

View File

@ -1,14 +1 @@
# Modify devstack image (https://vagrantcloud.com/monasca/devstack) as needed
# for use in mini-mon
my_ip = '192.168.10.5'
ks_conf = '/etc/keystone/keystone.conf'
# Modify keystone configuration to use the IP address specified above
execute "sed -i.bak 's^\\(.*endpoint = http://\\).*\\(:.*\\)^\\1#{my_ip}\\2^' #{ks_conf}"
# Reload the apache configuration following this change
service "apache2" do
action :restart
end
# Add any necessary customizations here

View File

@ -3,6 +3,7 @@
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=pass
RABBIT_PASSWORD=pass
SERVICE_HOST=192.168.10.5
SERVICE_PASSWORD=pass
SERVICE_TOKEN=ADMIN
LOGFILE=$DEST/logs/stack.sh.log

View File

@ -4,5 +4,5 @@ maintainer_email "hpcs-mon@hp.com"
license "All rights reserved"
description "Build customized devstack server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
version "0.0.2"
depends "apt"

View File

@ -34,4 +34,6 @@ if !::File.exists?("/home/vagrant/devstack/stack-screenrc")
execute "/home/vagrant/autostack.sh vagrant"
end
# Make sure a 'localhost' entry exists in /etc/hosts
# It sometimes gets overridden by vagrant
execute "sed -i 's/^127.0.0.1.*/127.0.0.1 devstack localhost/' /etc/hosts"