2014-09-26 13:32:27 +10:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
|
|
# implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2016-03-28 16:19:59 -07:00
|
|
|
# To run on Ubuntu 14.04, this depends on:
|
|
|
|
# diskimage-builder
|
|
|
|
# qemu-utils
|
|
|
|
# debootstrap
|
|
|
|
|
2014-09-26 13:32:27 +10:00
|
|
|
set -e
|
|
|
|
|
|
|
|
export ELEMENTS_PATH=${ELEMENTS_PATH:-nodepool/elements}
|
2016-03-28 16:19:59 -07:00
|
|
|
export DISTRO=${DISTRO:-ubuntu-minimal}
|
2014-10-07 10:16:27 -07:00
|
|
|
export IMAGE_NAME=${IMAGE_NAME:-devstack-gate}
|
2014-09-26 13:32:27 +10:00
|
|
|
export NODEPOOL_SCRIPTDIR=${NODEPOOL_SCRIPTDIR:-nodepool/scripts}
|
2014-10-03 17:36:54 -04:00
|
|
|
export CONFIG_SOURCE=${CONFIG_SOURCE:-https://git.openstack.org/openstack-infra/system-config}
|
2014-09-26 13:32:27 +10:00
|
|
|
export CONFIG_REF=${CONFIG_REF:-master}
|
2016-03-28 16:19:59 -07:00
|
|
|
export EXTRA_ELEMENTS=${EXTRA_ELEMENTS:-}
|
2014-09-26 13:32:27 +10:00
|
|
|
|
2014-10-07 10:16:27 -07:00
|
|
|
disk-image-create -x --no-tmpfs -o $IMAGE_NAME $DISTRO \
|
2016-05-19 19:26:08 -05:00
|
|
|
vm openstack-repos puppet nodepool-base cache-devstack simple-init $EXTRA_ELEMENTS
|