convert to using config-get
This commit is contained in:
parent
97df37ec70
commit
fe740bcf60
@ -2,24 +2,26 @@
|
|||||||
SERVICES="nova-api nova-network nova-objectstore nova-scheduler"
|
SERVICES="nova-api nova-network nova-objectstore nova-scheduler"
|
||||||
PACKAGES="$SERVICES python-mysqldb"
|
PACKAGES="$SERVICES python-mysqldb"
|
||||||
|
|
||||||
NOVA_CONF="/etc/nova/nova.conf"
|
NOVA_CONF=$(config-get nova-config)
|
||||||
|
|
||||||
# we'll request credentials via the amqp relation for this user
|
# we'll request credentials via the amqp relation for this user
|
||||||
RABBIT_USER="nova-rabbit"
|
RABBIT_USER=$(config-get rabbit-user)
|
||||||
RABBIT_VHOST="nova"
|
RABBIT_VHOST=$(config-get rabbit-vhost)
|
||||||
# the database we'll be requesting via shared-db relations
|
# the database we'll be requesting via shared-db relations
|
||||||
DB_USER="nova"
|
DB_USER=$(config-get db-user)
|
||||||
NOVA_DB="nova"
|
NOVA_DB=$(config-get nova-db)
|
||||||
|
|
||||||
# for now we require a network bridge, here's what we'll configure
|
# for now we require a network bridge, here's what we'll configure
|
||||||
NETWORK_MANAGER="FlatManager"
|
NETWORK_MANAGER=$(config-get network-manager)
|
||||||
NETWORK_BRIDGE="br100"
|
NETWORK_BRIDGE=$(config-get bridge-interface)
|
||||||
BRIDGE_IP="11.0.0.1"
|
BRIDGE_IP=$(config-get bridge-ip)
|
||||||
BRIDGE_NETMASK="255.255.255.0"
|
BRIDGE_NETMASK=$(config-get bridge-netmask)
|
||||||
|
|
||||||
DEFAULT_ETH=$(ip route | grep default | awk '{ print $5 }')
|
DEFAULT_ETH=$(ip route | grep default | awk '{ print $5 }')
|
||||||
IP=$(ifconfig $DEFAULT_ETH | grep 'inet addr' | awk '{ print $2 }' | cut -d: -f2)
|
IP=$(ifconfig $DEFAULT_ETH | grep 'inet addr' | awk '{ print $2 }' | cut -d: -f2)
|
||||||
|
|
||||||
|
PPA=$(config-get nova-release)
|
||||||
|
|
||||||
function set_or_update {
|
function set_or_update {
|
||||||
# set or update a key=value config option in nova.conf
|
# set or update a key=value config option in nova.conf
|
||||||
KEY=$1
|
KEY=$1
|
||||||
@ -113,16 +115,11 @@ function configure_network_manager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function add_ppa {
|
function add_ppa {
|
||||||
# temporarily find out what nova version we
|
# don't setup PPA, install from archive
|
||||||
# should be using from a source file. this
|
[[ $PPA == "distro" ]] && return 0
|
||||||
# should go away when ensemble can handle config
|
ensemble-log "nova-cloud-controller: Configuring PPA access for $PPA"
|
||||||
# better.
|
|
||||||
if [[ -e $FORMULA_DIR/nova-version ]] ; then
|
|
||||||
. $FORMULA_DIR/nova-version
|
|
||||||
. /etc/lsb-release
|
. /etc/lsb-release
|
||||||
[[ -z $PPA ]] && return 0
|
|
||||||
PPA_URL="deb http://ppa.launchpad.net/nova-core/$PPA/ubuntu $DISTRIB_CODENAME main"
|
PPA_URL="deb http://ppa.launchpad.net/nova-core/$PPA/ubuntu $DISTRIB_CODENAME main"
|
||||||
add-apt-repository "$PPA_URL" || exit 1
|
add-apt-repository "$PPA_URL" || exit 1
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
ensemble: formula
|
ensemble: formula
|
||||||
name: nova-cloud-controller
|
name: nova-cloud-controller
|
||||||
revision: 44
|
revision: 50
|
||||||
summary: "Openstack nova controller node."
|
summary: "Openstack nova controller node."
|
||||||
description: |
|
description: |
|
||||||
Cloud controller node for Openstack nova. Contains nova-schedule,
|
Cloud controller node for Openstack nova. Contains nova-schedule,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user