Files
650769a3115704aa8af8b346a57838d46b87ba6a
devstack /samples /local.sh

69 lines
1.9 KiB
Bash
Raw Normal View History

# Sample ``local.sh`` for user-configurable tasks to run automatically
# NOTE: Copy this file to the root DevStack directory for it to work properly.
# This is a collection of some of the things we have found to be useful to run
# after ``stack.sh`` to tweak the OpenStack configuration that DevStack produces.
source $TOP_DIR/functions
source $TOP_DIR/stackrc
# Destination path for installation ``DEST``
DEST=${DEST:-/opt/stack}
# ---------------
# Import keys from the current user into the default OpenStack user (usually
# ``demo``)
source $TOP_DIR/openrc
for i in $HOME/.ssh/id_rsa.pub $HOME/.ssh/id_dsa.pub; do
if [[ -r $i ]]; then
fi
done
# ---------------
source $TOP_DIR/openrc admin admin
# set in ``local.conf`` with ``DEFAULT_INSTANCE_TYPE=m1.micro``
openstack flavor create $MI_NAME --id 6 --ram 128 --disk 0 --vcpus 1
# ----------
openstack security group rule create --project $OS_PROJECT_NAME default --protocol icmp