Merge "Fix some Markdown formatting issues"

This commit is contained in:
Jenkins 2013-10-31 14:19:15 +00:00 committed by Gerrit Code Review
commit b7c11a0f98
28 changed files with 366 additions and 311 deletions

View File

@ -3,12 +3,13 @@
# **aggregates.sh** # **aggregates.sh**
# This script demonstrates how to use host aggregates: # This script demonstrates how to use host aggregates:
# * Create an Aggregate #
# * Updating Aggregate details # * Create an Aggregate
# * Testing Aggregate metadata # * Updating Aggregate details
# * Testing Aggregate delete # * Testing Aggregate metadata
# * Testing General Aggregates (https://blueprints.launchpad.net/nova/+spec/general-host-aggregates) # * Testing Aggregate delete
# * Testing add/remove hosts (with one host) # * Testing General Aggregates (https://blueprints.launchpad.net/nova/+spec/general-host-aggregates)
# * Testing add/remove hosts (with one host)
echo "**************************************************" echo "**************************************************"
echo "Begin DevStack Exercise: $0" echo "Begin DevStack Exercise: $0"

View File

@ -3,8 +3,9 @@
# **boot_from_volume.sh** # **boot_from_volume.sh**
# This script demonstrates how to boot from a volume. It does the following: # This script demonstrates how to boot from a volume. It does the following:
# * Create a bootable volume #
# * Boot a volume-backed instance # * Create a bootable volume
# * Boot a volume-backed instance
echo "*********************************************************************" echo "*********************************************************************"
echo "Begin DevStack Exercise: $0" echo "Begin DevStack Exercise: $0"

View File

@ -1,16 +1,17 @@
# functions - Common functions used by DevStack components # functions - Common functions used by DevStack components
# #
# The following variables are assumed to be defined by certain functions: # The following variables are assumed to be defined by certain functions:
# ``ENABLED_SERVICES`` #
# ``ERROR_ON_CLONE`` # - ``ENABLED_SERVICES``
# ``FILES`` # - ``ERROR_ON_CLONE``
# ``GLANCE_HOSTPORT`` # - ``FILES``
# ``OFFLINE`` # - ``GLANCE_HOSTPORT``
# ``PIP_DOWNLOAD_CACHE`` # - ``OFFLINE``
# ``PIP_USE_MIRRORS`` # - ``PIP_DOWNLOAD_CACHE``
# ``RECLONE`` # - ``PIP_USE_MIRRORS``
# ``TRACK_DEPENDS`` # - ``RECLONE``
# ``http_proxy``, ``https_proxy``, ``no_proxy`` # - ``TRACK_DEPENDS``
# - ``http_proxy``, ``https_proxy``, ``no_proxy``
# Save trace setting # Save trace setting

View File

@ -2,15 +2,16 @@
# Functions to control configuration and operation of apache web server # Functions to control configuration and operation of apache web server
# Dependencies: # Dependencies:
# ``functions`` file #
# is_apache_enabled_service # - ``functions`` file
# install_apache_wsgi # - is_apache_enabled_service
# config_apache_wsgi # - install_apache_wsgi
# enable_apache_site # - config_apache_wsgi
# disable_apache_site # - enable_apache_site
# start_apache_server # - disable_apache_site
# stop_apache_server # - start_apache_server
# restart_apache_server # - stop_apache_server
# - restart_apache_server
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -116,6 +117,7 @@ function restart_apache_server() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -1,19 +1,19 @@
# vim: tabstop=4 shiftwidth=4 softtabstop=4 ## vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 Hewlett-Packard Development Company, L.P. ## Copyright (c) 2012 Hewlett-Packard Development Company, L.P.
# All Rights Reserved. ## All Rights Reserved.
# ##
# Licensed under the Apache License, Version 2.0 (the "License"); you may ## 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 ## not use this file except in compliance with the License. You may obtain
# a copy of the License at ## a copy of the License at
# ##
# http://www.apache.org/licenses/LICENSE-2.0 ## http://www.apache.org/licenses/LICENSE-2.0
# ##
# Unless required by applicable law or agreed to in writing, software ## Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT ## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations ## License for the specific language governing permissions and limitations
# under the License. ## under the License.
# This file provides devstack with the environment and utilities to # This file provides devstack with the environment and utilities to
@ -24,7 +24,8 @@
# control physical hardware resources on the same network, if you know # control physical hardware resources on the same network, if you know
# the MAC address(es) and IPMI credentials. # the MAC address(es) and IPMI credentials.
# #
# At a minimum, to enable the baremetal driver, you must set these in loclarc: # At a minimum, to enable the baremetal driver, you must set these in localrc:
#
# VIRT_DRIVER=baremetal # VIRT_DRIVER=baremetal
# ENABLED_SERVICES="$ENABLED_SERVICES,baremetal" # ENABLED_SERVICES="$ENABLED_SERVICES,baremetal"
# #
@ -38,11 +39,13 @@
# Below that, various functions are defined, which are called by devstack # Below that, various functions are defined, which are called by devstack
# in the following order: # in the following order:
# #
# before nova-cpu starts: # before nova-cpu starts:
#
# - prepare_baremetal_toolchain # - prepare_baremetal_toolchain
# - configure_baremetal_nova_dirs # - configure_baremetal_nova_dirs
# #
# after nova and glance have started: # after nova and glance have started:
#
# - build_and_upload_baremetal_deploy_k_and_r $token # - build_and_upload_baremetal_deploy_k_and_r $token
# - create_baremetal_flavor $BM_DEPLOY_KERNEL_ID $BM_DEPLOY_RAMDISK_ID # - create_baremetal_flavor $BM_DEPLOY_KERNEL_ID $BM_DEPLOY_RAMDISK_ID
# - upload_baremetal_image $url $token # - upload_baremetal_image $url $token
@ -58,11 +61,13 @@ set +o xtrace
# ------------------- # -------------------
# sub-driver to use for kernel deployment # sub-driver to use for kernel deployment
# - nova.virt.baremetal.pxe.PXE #
# - nova.virt.baremetal.tilera.TILERA # - nova.virt.baremetal.pxe.PXE
# - nova.virt.baremetal.tilera.TILERA
BM_DRIVER=${BM_DRIVER:-nova.virt.baremetal.pxe.PXE} BM_DRIVER=${BM_DRIVER:-nova.virt.baremetal.pxe.PXE}
# sub-driver to use for remote power management # sub-driver to use for remote power management
#
# - nova.virt.baremetal.fake.FakePowerManager, for manual power control # - nova.virt.baremetal.fake.FakePowerManager, for manual power control
# - nova.virt.baremetal.ipmi.IPMI, for remote IPMI # - nova.virt.baremetal.ipmi.IPMI, for remote IPMI
# - nova.virt.baremetal.tilera_pdu.Pdu, for TilePro hardware # - nova.virt.baremetal.tilera_pdu.Pdu, for TilePro hardware
@ -84,11 +89,11 @@ BM_POSEUR_EXTRA_OPTS=${BM_POSEUR_EXTRA_OPTS:-}
# dedicated to baremetal. When enable this, make sure these conditions are # dedicated to baremetal. When enable this, make sure these conditions are
# fulfilled: # fulfilled:
# #
# 1) nova-compute and nova-network runs on the same host # 1) nova-compute and nova-network runs on the same host
# 2) nova-network uses FlatDHCPManager # 2) nova-network uses FlatDHCPManager
# #
# NOTE: the other BM_DNSMASQ_* have no effect on the behavior if this option # NOTE: the other BM_DNSMASQ_* have no effect on the behavior if this option
# is enabled. # is enabled.
BM_DNSMASQ_FROM_NOVA_NETWORK=`trueorfalse False $BM_DNSMASQ_FROM_NOVA_NETWORK` BM_DNSMASQ_FROM_NOVA_NETWORK=`trueorfalse False $BM_DNSMASQ_FROM_NOVA_NETWORK`
# BM_DNSMASQ_IFACE should match FLAT_NETWORK_BRIDGE # BM_DNSMASQ_IFACE should match FLAT_NETWORK_BRIDGE
@ -105,9 +110,9 @@ fi
# BM_DNSMASQ_DNS provide dns server to bootstrap clients # BM_DNSMASQ_DNS provide dns server to bootstrap clients
BM_DNSMASQ_DNS=${BM_DNSMASQ_DNS:-} BM_DNSMASQ_DNS=${BM_DNSMASQ_DNS:-}
# BM_FIRST_MAC *must* be set to the MAC address of the node you will boot. # BM_FIRST_MAC *must* be set to the MAC address of the node you will
# This is passed to dnsmasq along with the kernel/ramdisk to # boot. This is passed to dnsmasq along with the kernel/ramdisk to
# deploy via PXE. # deploy via PXE.
BM_FIRST_MAC=${BM_FIRST_MAC:-} BM_FIRST_MAC=${BM_FIRST_MAC:-}
# BM_SECOND_MAC is only important if the host has >1 NIC. # BM_SECOND_MAC is only important if the host has >1 NIC.
@ -121,9 +126,9 @@ BM_PM_ADDR=${BM_PM_ADDR:-0.0.0.0}
BM_PM_USER=${BM_PM_USER:-user} BM_PM_USER=${BM_PM_USER:-user}
BM_PM_PASS=${BM_PM_PASS:-pass} BM_PM_PASS=${BM_PM_PASS:-pass}
# BM_FLAVOR_* options are arbitrary and not necessarily related to physical # BM_FLAVOR_* options are arbitrary and not necessarily related to
# hardware capacity. These can be changed if you are testing # physical hardware capacity. These can be changed if you are testing
# BaremetalHostManager with multiple nodes and different flavors. # BaremetalHostManager with multiple nodes and different flavors.
BM_CPU_ARCH=${BM_CPU_ARCH:-x86_64} BM_CPU_ARCH=${BM_CPU_ARCH:-x86_64}
BM_FLAVOR_CPU=${BM_FLAVOR_CPU:-1} BM_FLAVOR_CPU=${BM_FLAVOR_CPU:-1}
BM_FLAVOR_RAM=${BM_FLAVOR_RAM:-1024} BM_FLAVOR_RAM=${BM_FLAVOR_RAM:-1024}
@ -288,8 +293,8 @@ function create_baremetal_flavor() {
} }
# pull run-time kernel/ramdisk out of disk image and load into glance # Pull run-time kernel/ramdisk out of disk image and load into glance.
# note that $file is currently expected to be in qcow2 format # Note that $file is currently expected to be in qcow2 format.
# Sets KERNEL_ID and RAMDISK_ID # Sets KERNEL_ID and RAMDISK_ID
# #
# Usage: extract_and_upload_k_and_r_from_image $token $file # Usage: extract_and_upload_k_and_r_from_image $token $file
@ -432,7 +437,7 @@ function clear_baremetal_of_all_nodes() {
done done
} }
# inform nova-baremetal about nodes, MACs, etc # Inform nova-baremetal about nodes, MACs, etc.
# Defaults to using BM_FIRST_MAC and BM_SECOND_MAC if parameters not specified # Defaults to using BM_FIRST_MAC and BM_SECOND_MAC if parameters not specified
# #
# Usage: add_baremetal_node <first_mac> <second_mac> # Usage: add_baremetal_node <first_mac> <second_mac>
@ -461,6 +466,7 @@ function add_baremetal_node() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -10,6 +10,7 @@
# enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator # enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
# Dependencies: # Dependencies:
#
# - functions # - functions
# - OS_AUTH_URL for auth in api # - OS_AUTH_URL for auth in api
# - DEST set to the destination directory # - DEST set to the destination directory
@ -18,12 +19,12 @@
# stack.sh # stack.sh
# --------- # ---------
# install_ceilometer # - install_ceilometer
# configure_ceilometer # - configure_ceilometer
# init_ceilometer # - init_ceilometer
# start_ceilometer # - start_ceilometer
# stop_ceilometer # - stop_ceilometer
# cleanup_ceilometer # - cleanup_ceilometer
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -162,6 +163,7 @@ function stop_ceilometer() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,19 +2,20 @@
# Install and start **Cinder** volume service # Install and start **Cinder** volume service
# Dependencies: # Dependencies:
#
# - functions # - functions
# - DEST, DATA_DIR, STACK_USER must be defined # - DEST, DATA_DIR, STACK_USER must be defined
# SERVICE_{TENANT_NAME|PASSWORD} must be defined # - SERVICE_{TENANT_NAME|PASSWORD} must be defined
# ``KEYSTONE_TOKEN_FORMAT`` must be defined # - ``KEYSTONE_TOKEN_FORMAT`` must be defined
# stack.sh # stack.sh
# --------- # ---------
# install_cinder # - install_cinder
# configure_cinder # - configure_cinder
# init_cinder # - init_cinder
# start_cinder # - start_cinder
# stop_cinder # - stop_cinder
# cleanup_cinder # - cleanup_cinder
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -82,7 +83,8 @@ VOLUME_NAME_PREFIX=${VOLUME_NAME_PREFIX:-volume-}
# Functions # Functions
# --------- # ---------
# _clean_lvm_lv removes all cinder LVM volumes # _clean_lvm_lv removes all cinder LVM volumes
# _clean_lvm_lv $VOLUME_GROUP $VOLUME_NAME_PREFIX #
# Usage: _clean_lvm_lv $VOLUME_GROUP $VOLUME_NAME_PREFIX
function _clean_lvm_lv() { function _clean_lvm_lv() {
local vg=$1 local vg=$1
local lv_prefix=$2 local lv_prefix=$2
@ -98,7 +100,8 @@ function _clean_lvm_lv() {
# _clean_lvm_backing_file() removes the backing file of the # _clean_lvm_backing_file() removes the backing file of the
# volume group used by cinder # volume group used by cinder
# _clean_lvm_backing_file() $VOLUME_GROUP #
# Usage: _clean_lvm_backing_file() $VOLUME_GROUP
function _clean_lvm_backing_file() { function _clean_lvm_backing_file() {
local vg=$1 local vg=$1
@ -551,6 +554,7 @@ function stop_cinder() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -124,6 +124,7 @@ function database_connection_url {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,7 +2,8 @@
# Functions to control the configuration and operation of the **MySQL** database backend # Functions to control the configuration and operation of the **MySQL** database backend
# Dependencies: # Dependencies:
# DATABASE_{HOST,USER,PASSWORD} must be defined #
# - DATABASE_{HOST,USER,PASSWORD} must be defined
# Save trace setting # Save trace setting
MY_XTRACE=$(set +o | grep xtrace) MY_XTRACE=$(set +o | grep xtrace)

View File

@ -2,7 +2,8 @@
# Functions to control the configuration and operation of the **PostgreSQL** database backend # Functions to control the configuration and operation of the **PostgreSQL** database backend
# Dependencies: # Dependencies:
# DATABASE_{HOST,USER,PASSWORD} must be defined #
# - DATABASE_{HOST,USER,PASSWORD} must be defined
# Save trace setting # Save trace setting
PG_XTRACE=$(set +o | grep xtrace) PG_XTRACE=$(set +o | grep xtrace)

View File

@ -2,20 +2,21 @@
# Functions to control the configuration and operation of the **Glance** service # Functions to control the configuration and operation of the **Glance** service
# Dependencies: # Dependencies:
# ``functions`` file #
# ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined # - ``functions`` file
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined # - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined
# ``SERVICE_HOST`` # - ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# ``KEYSTONE_TOKEN_FORMAT`` must be defined # - ``SERVICE_HOST``
# - ``KEYSTONE_TOKEN_FORMAT`` must be defined
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_glance # - install_glance
# configure_glance # - configure_glance
# init_glance # - init_glance
# start_glance # - start_glance
# stop_glance # - stop_glance
# cleanup_glance # - cleanup_glance
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -209,6 +210,7 @@ function stop_glance() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,21 +2,23 @@
# Install and start **Heat** service # Install and start **Heat** service
# To enable, add the following to localrc # To enable, add the following to localrc
# ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng #
# ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
# Dependencies: # Dependencies:
#
# - functions # - functions
# stack.sh # stack.sh
# --------- # ---------
# install_heatclient # - install_heatclient
# install_heat # - install_heat
# configure_heatclient # - configure_heatclient
# configure_heat # - configure_heat
# init_heat # - init_heat
# start_heat # - start_heat
# stop_heat # - stop_heat
# cleanup_heat # - cleanup_heat
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -198,6 +200,7 @@ function disk_image_create {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -1,21 +1,20 @@
# lib/horizon # lib/horizon
# Functions to control the configuration and operation of the horizon service # Functions to control the configuration and operation of the horizon service
# <do not include this template file in ``stack.sh``!>
# Dependencies: # Dependencies:
# ``functions`` file #
# ``apache`` file # - ``functions`` file
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined # - ``apache`` file
# <list other global vars that are assumed to be defined> # - ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_horizon # - install_horizon
# configure_horizon # - configure_horizon
# init_horizon # - init_horizon
# start_horizon # - start_horizon
# stop_horizon # - stop_horizon
# cleanup_horizon # - cleanup_horizon
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -25,8 +24,6 @@ set +o xtrace
# Defaults # Defaults
# -------- # --------
# <define global variables here that belong to this project>
# Set up default directories # Set up default directories
HORIZON_DIR=$DEST/horizon HORIZON_DIR=$DEST/horizon
@ -183,6 +180,7 @@ function stop_horizon() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -5,12 +5,13 @@
# requirements as a global list # requirements as a global list
# Dependencies: # Dependencies:
# ``functions`` file #
# - ``functions`` file
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# unfubar_setuptools # - unfubar_setuptools
# install_infra # - install_infra
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -51,6 +52,7 @@ function install_infra() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,21 +2,21 @@
# Functions to control the configuration and operation of the **Ironic** service # Functions to control the configuration and operation of the **Ironic** service
# Dependencies: # Dependencies:
# ``functions`` file #
# ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined # - ``functions`` file
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined # - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined
# ``SERVICE_HOST`` # - ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# ``KEYSTONE_TOKEN_FORMAT`` must be defined # - ``SERVICE_HOST``
# - ``KEYSTONE_TOKEN_FORMAT`` must be defined
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_ironic # - install_ironic
# install_ironicclient # - install_ironicclient
# configure_ironic # - init_ironic
# init_ironic # - start_ironic
# start_ironic # - stop_ironic
# stop_ironic # - cleanup_ironic
# cleanup_ironic
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -227,6 +227,7 @@ function stop_ironic() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,25 +2,26 @@
# Functions to control the configuration and operation of **Keystone** # Functions to control the configuration and operation of **Keystone**
# Dependencies: # Dependencies:
# ``functions`` file #
# ``DEST``, ``STACK_USER`` # - ``functions`` file
# ``IDENTITY_API_VERSION`` # - ``DEST``, ``STACK_USER``
# ``BASE_SQL_CONN`` # - ``IDENTITY_API_VERSION``
# ``SERVICE_HOST``, ``SERVICE_PROTOCOL`` # - ``BASE_SQL_CONN``
# ``SERVICE_TOKEN`` # - ``SERVICE_HOST``, ``SERVICE_PROTOCOL``
# ``S3_SERVICE_PORT`` (template backend only) # - ``SERVICE_TOKEN``
# - ``S3_SERVICE_PORT`` (template backend only)
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_keystone # - install_keystone
# configure_keystone # - configure_keystone
# _config_keystone_apache_wsgi # - _config_keystone_apache_wsgi
# init_keystone # - init_keystone
# start_keystone # - start_keystone
# create_keystone_accounts # - create_keystone_accounts
# stop_keystone # - stop_keystone
# cleanup_keystone # - cleanup_keystone
# _cleanup_keystone_apache_wsgi # - _cleanup_keystone_apache_wsgi
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -393,6 +394,7 @@ function stop_keystone() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,7 +2,8 @@
# Functions to control the installation and configuration of **ldap** # Functions to control the installation and configuration of **ldap**
# ``lib/keystone`` calls the entry points in this order: # ``lib/keystone`` calls the entry points in this order:
# install_ldap() #
# - install_ldap()
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -91,6 +92,7 @@ function clear_ldap_state() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -7,24 +7,24 @@
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_neutron # - install_neutron
# install_neutronclient # - install_neutronclient
# install_neutron_agent_packages # - install_neutron_agent_packages
# install_neutron_third_party # - install_neutron_third_party
# configure_neutron # - configure_neutron
# init_neutron # - init_neutron
# configure_neutron_third_party # - configure_neutron_third_party
# init_neutron_third_party # - init_neutron_third_party
# start_neutron_third_party # - start_neutron_third_party
# create_nova_conf_neutron # - create_nova_conf_neutron
# start_neutron_service_and_check # - start_neutron_service_and_check
# create_neutron_initial_network # - create_neutron_initial_network
# setup_neutron_debug # - setup_neutron_debug
# start_neutron_agents # - start_neutron_agents
# #
# ``unstack.sh`` calls the entry points in this order: # ``unstack.sh`` calls the entry points in this order:
# #
# stop_neutron # - stop_neutron
# Functions in lib/neutron are classified into the following categories: # Functions in lib/neutron are classified into the following categories:
# #
@ -895,6 +895,7 @@ function stop_neutron_third_party() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,22 +2,23 @@
# Functions to control the configuration and operation of the **Nova** service # Functions to control the configuration and operation of the **Nova** service
# Dependencies: # Dependencies:
# ``functions`` file #
# ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined # - ``functions`` file
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined # - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined
# ``LIBVIRT_TYPE`` must be defined # - ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# ``INSTANCE_NAME_PREFIX``, ``VOLUME_NAME_PREFIX`` must be defined # - ``LIBVIRT_TYPE`` must be defined
# ``KEYSTONE_TOKEN_FORMAT`` must be defined # - ``INSTANCE_NAME_PREFIX``, ``VOLUME_NAME_PREFIX`` must be defined
# - ``KEYSTONE_TOKEN_FORMAT`` must be defined
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_nova # - install_nova
# configure_nova # - configure_nova
# create_nova_conf # - create_nova_conf
# init_nova # - init_nova
# start_nova # - start_nova
# stop_nova # - stop_nova
# cleanup_nova # - cleanup_nova
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -687,6 +688,7 @@ function stop_nova() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,11 +2,13 @@
# Configure the Docker hypervisor # Configure the Docker hypervisor
# Enable with: # Enable with:
# VIRT_DRIVER=docker #
# VIRT_DRIVER=docker
# Dependencies: # Dependencies:
# ``functions`` file #
# ``nova`` and ``glance`` configurations # - ``functions`` file
# - ``nova`` and ``glance`` configurations
# install_nova_hypervisor - install any external requirements # install_nova_hypervisor - install any external requirements
# configure_nova_hypervisor - make configuration changes, including those to other services # configure_nova_hypervisor - make configuration changes, including those to other services

View File

@ -6,11 +6,12 @@
# pre-released versions of oslo libraries. # pre-released versions of oslo libraries.
# Dependencies: # Dependencies:
# ``functions`` file #
# - ``functions`` file
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_oslo # - install_oslo
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -52,6 +53,7 @@ function cleanup_oslo() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -3,15 +3,16 @@
# rpc backend settings # rpc backend settings
# Dependencies: # Dependencies:
# ``functions`` file #
# ``RABBIT_{HOST|PASSWORD}`` must be defined when RabbitMQ is used # - ``functions`` file
# - ``RABBIT_{HOST|PASSWORD}`` must be defined when RabbitMQ is used
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# check_rpc_backend # - check_rpc_backend
# install_rpc_backend # - install_rpc_backend
# restart_rpc_backend # - restart_rpc_backend
# iniset_rpc_backend # - iniset_rpc_backend
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -200,6 +201,7 @@ function qpid_is_supported() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -1,15 +1,16 @@
# lib/savanna-dashboard # lib/savanna-dashboard
# Dependencies: # Dependencies:
# ``functions`` file #
# ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined # - ``functions`` file
# ``SERVICE_HOST # - ``DEST``, ``DATA_DIR``, ``STACK_USER`` must be defined
# - ``SERVICE_HOST``
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_savanna_dashboard # - install_savanna_dashboard
# configure_savanna_dashboard # - configure_savanna_dashboard
# cleanup_savanna_dashboard # - cleanup_savanna_dashboard
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)

View File

@ -2,22 +2,24 @@
# Functions to control the configuration and operation of the **Swift** service # Functions to control the configuration and operation of the **Swift** service
# Dependencies: # Dependencies:
# ``functions`` file #
# ``apache`` file # - ``functions`` file
# ``DEST``, ``SCREEN_NAME``, `SWIFT_HASH` must be defined # - ``apache`` file
# ``STACK_USER`` must be defined # - ``DEST``, ``SCREEN_NAME``, `SWIFT_HASH` must be defined
# ``SWIFT_DATA_DIR`` or ``DATA_DIR`` must be defined # - ``STACK_USER`` must be defined
# ``lib/keystone`` file # - ``SWIFT_DATA_DIR`` or ``DATA_DIR`` must be defined
# - ``lib/keystone`` file
#
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_swift # - install_swift
# _config_swift_apache_wsgi # - _config_swift_apache_wsgi
# configure_swift # - configure_swift
# init_swift # - init_swift
# start_swift # - start_swift
# stop_swift # - stop_swift
# cleanup_swift # - cleanup_swift
# _cleanup_swift_apache_wsgi # - _cleanup_swift_apache_wsgi
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -624,6 +626,7 @@ function stop_swift() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -2,34 +2,38 @@
# Install and configure Tempest # Install and configure Tempest
# Dependencies: # Dependencies:
# ``functions`` file #
# ``lib/nova`` service is running # - ``functions`` file
# <list other global vars that are assumed to be defined> # - ``lib/nova`` service is running
# - ``DEST``, ``FILES`` # - Global vars that are assumed to be defined:
# - ``ADMIN_PASSWORD`` # - ``DEST``, ``FILES``
# - ``DEFAULT_IMAGE_NAME`` # - ``ADMIN_PASSWORD``
# - ``S3_SERVICE_PORT`` # - ``DEFAULT_IMAGE_NAME``
# - ``SERVICE_HOST`` # - ``S3_SERVICE_PORT``
# - ``BASE_SQL_CONN`` ``lib/database`` declares # - ``SERVICE_HOST``
# - ``PUBLIC_NETWORK_NAME`` # - ``BASE_SQL_CONN`` ``lib/database`` declares
# - ``Q_USE_NAMESPACE`` # - ``PUBLIC_NETWORK_NAME``
# - ``Q_ROUTER_NAME`` # - ``Q_USE_NAMESPACE``
# - ``VIRT_DRIVER`` # - ``Q_ROUTER_NAME``
# - ``LIBVIRT_TYPE`` # - ``VIRT_DRIVER``
# - ``KEYSTONE_SERVICE_PROTOCOL``, ``KEYSTONE_SERVICE_HOST`` from lib/keystone # - ``LIBVIRT_TYPE``
# - ``KEYSTONE_SERVICE_PROTOCOL``, ``KEYSTONE_SERVICE_HOST`` from lib/keystone
#
# Optional Dependencies: # Optional Dependencies:
# ALT_* (similar vars exists in keystone_data.sh) #
# ``LIVE_MIGRATION_AVAILABLE`` # - ``ALT_*`` (similar vars exists in keystone_data.sh)
# ``USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION`` # - ``LIVE_MIGRATION_AVAILABLE``
# ``DEFAULT_INSTANCE_TYPE`` # - ``USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION``
# ``DEFAULT_INSTANCE_USER`` # - ``DEFAULT_INSTANCE_TYPE``
# ``CINDER_MULTI_LVM_BACKEND`` # - ``DEFAULT_INSTANCE_USER``
# ``HEAT_CREATE_TEST_IMAGE`` # - ``CINDER_MULTI_LVM_BACKEND``
# - ``HEAT_CREATE_TEST_IMAGE``
#
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_tempest # - install_tempest
# configure_tempest # - configure_tempest
# init_tempest # - init_tempest
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -345,6 +349,7 @@ function init_tempest() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -3,18 +3,19 @@
# <do not include this template file in ``stack.sh``!> # <do not include this template file in ``stack.sh``!>
# Dependencies: # Dependencies:
# ``functions`` file #
# ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined # - ``functions`` file
# <list other global vars that are assumed to be defined> # - ``SERVICE_{TENANT_NAME|PASSWORD}`` must be defined
# - <list other global vars that are assumed to be defined>
# ``stack.sh`` calls the entry points in this order: # ``stack.sh`` calls the entry points in this order:
# #
# install_XXXX # - install_XXXX
# configure_XXXX # - configure_XXXX
# init_XXXX # - init_XXXX
# start_XXXX # - start_XXXX
# stop_XXXX # - stop_XXXX
# cleanup_XXXX # - cleanup_XXXX
# Save trace setting # Save trace setting
XTRACE=$(set +o | grep xtrace) XTRACE=$(set +o | grep xtrace)
@ -79,6 +80,7 @@ function stop_XXXX() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

36
lib/tls
View File

@ -1,24 +1,27 @@
# lib/tls # lib/tls
# Functions to control the configuration and operation of the TLS proxy service # Functions to control the configuration and operation of the TLS proxy service
# Dependencies:
# !! source _before_ any services that use ``SERVICE_HOST`` # !! source _before_ any services that use ``SERVICE_HOST``
# ``functions`` file #
# ``DEST``, ``DATA_DIR`` must be defined # Dependencies:
# ``HOST_IP``, ``SERVICE_HOST`` #
# ``KEYSTONE_TOKEN_FORMAT`` must be defined # - ``functions`` file
# - ``DEST``, ``DATA_DIR`` must be defined
# - ``HOST_IP``, ``SERVICE_HOST``
# - ``KEYSTONE_TOKEN_FORMAT`` must be defined
# Entry points: # Entry points:
# configure_CA #
# init_CA # - configure_CA
# - init_CA
# configure_proxy # - configure_proxy
# start_tls_proxy # - start_tls_proxy
# make_root_ca # - make_root_ca
# make_int_ca # - make_int_ca
# new_cert $INT_CA_DIR int-server "abc" # - new_cert $INT_CA_DIR int-server "abc"
# start_tls_proxy HOST_IP 5000 localhost 5000 # - start_tls_proxy HOST_IP 5000 localhost 5000
# Defaults # Defaults
@ -321,6 +324,7 @@ function start_tls_proxy() {
} }
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End:

View File

@ -181,6 +181,7 @@ function stop_trove() {
# Restore xtrace # Restore xtrace
$XTRACE $XTRACE
# Local variables: # Tell emacs to use shell-script-mode
# mode: shell-script ## Local variables:
# End: ## mode: shell-script
## End: