Remove tuskar element

We no longer support or develop tuskar, so remove this element

Change-Id: I442572c7f4d1c00f5f4823ee1efc584d79ea511a
This commit is contained in:
Steven Hardy 2016-05-25 12:22:22 +01:00
parent de7012df7c
commit fb8dfb4aa5
15 changed files with 0 additions and 235 deletions

View File

@ -1,20 +0,0 @@
Install and configure Tuskar.
Configuration
-------------
Tuskar API requires the following keys to be set via Heat Metadata.
tuskar:
overcloud-admin-password:
- the password of the overcloud admin user. Use
OvercloudAdminPassword template parameter to
override this option.
db: "mysql://tuskar:unset@localhost/tuskar?charset=utf8"
- the connection string for a DB to be used by tuskar-api.
username:
- the name of the user to deploy the overcloud on behalf of
password:
- the password of the user to deploy the overcloud on behalf of
tenant_name:
- the tenant name of the user to deploy the overcloud on behalf of

View File

@ -1,7 +0,0 @@
os-apply-config
os-is-bootstrap-host
os-refresh-config
os-svc-install
package-installs
source-repositories
tripleo-heat-templates

View File

@ -1,6 +0,0 @@
if [ -z "${TUSKAR_VENV_DIR:-}" ]; then
export TUSKAR_VENV_DIR=${OPENSTACK_VENV_DIR:-"/opt/stack/venvs/tuskar"}
fi
if [ -z "${TUSKAR_EXTRA_INSTALL_OPTS:-}" ]; then
export TUSKAR_EXTRA_INSTALL_OPTS=${OPENSTACK_EXTRA_INSTALL_OPTS:-""}
fi

View File

@ -1 +0,0 @@
swig

View File

@ -1,12 +0,0 @@
#!/bin/bash
set -eux
os-svc-install $TUSKAR_EXTRA_INSTALL_OPTS -i "$TUSKAR_VENV_DIR" -u tuskar -r /opt/stack/tuskar
install -d -m 0750 -o tuskar -g tuskar /etc/tuskar
cp -a /opt/stack/tuskar/etc/tuskar/policy.json /etc/tuskar
os-svc-daemon -i "$TUSKAR_VENV_DIR" tuskar-api tuskar tuskar-api "--config-dir /etc/tuskar"
ln -s $TUSKAR_VENV_DIR/bin/tuskar-dbsync /usr/local/bin/tuskar-dbsync
ln -s $TUSKAR_VENV_DIR/bin/tuskar-load-roles /usr/local/bin/tuskar-load-roles

View File

@ -1,5 +0,0 @@
nova_username: "admin"
nova_tenantname: "admin"
# NOTE(rpodolyaka): limitation of tuskar-api, see https://bugs.launchpad.net/tuskar/+bug/1235236
nova_password: "{{tuskar.overcloud-admin-password}}"
keystone_url: "http://{{tuskar.overcloud-keystone-host}}:5000/v2.0/"

View File

@ -1,12 +0,0 @@
[DEFAULT]
auth_strategy=keystone
[database]
connection={{tuskar.db}}
[keystone_authtoken]
admin_password={{tuskar.service-password}}
admin_tenant_name=service
admin_user=tuskar
auth_uri = http://{{keystone.host}}:5000/v2.0
identity_uri=http://{{keystone.host}}:35357

View File

@ -1,84 +0,0 @@
#!/bin/bash
set -eux
TUSKAR_CONF=/etc/tuskar/tuskar.conf
TUSKAR_ROLE_DIRECTORY=${TUSKAR_ROLE_DIRECTORY:-}
function load_roles() {
TUSKAR_LOAD_ROLE_BASE="tuskar-load-role --config-file $TUSKAR_CONF "
roles=( $(echo "$1") )
dir="${2}" ;
suffix="${3}"
extra_data="${4}"
for ROLE in ${roles[@]}; do
lowercase=`echo $ROLE | tr '[:upper:]' '[:lower:]'`
if [ -f $dir/$lowercase$suffix ]; then
TUSKAR_LOAD_ROLE="$TUSKAR_LOAD_ROLE_BASE -n $ROLE
-f $dir/$lowercase$suffix $extra_data"
$TUSKAR_LOAD_ROLE # only need to load this once
# only need to load this once, so clear variable
extra_data=
fi
done
}
if [ -z "$TUSKAR_ROLE_DIRECTORY" ]; then
if [ -d /usr/share/openstack-tripleo-heat-templates/ ]; then
# Fedora/RHEL RPMs store the templates here
TUSKAR_ROLE_DIRECTORY='/usr/share/openstack-tripleo-heat-templates/'
else
# Default to the source installed version
TUSKAR_ROLE_DIRECTORY='/opt/stack/tripleo-heat-templates'
fi
fi
if os-is-bootstrap-host ; then
su -s /bin/bash -c "tuskar-dbsync --config-file $TUSKAR_CONF" tuskar
# pop trailing / from role directory if it is there
TUSKAR_ROLE_DIRECTORY=`echo $TUSKAR_ROLE_DIRECTORY | sed 's/\/$//'`
# Load the master seed and puppet or non-puppet roles, accordingly
PUPPET_DIR="$TUSKAR_ROLE_DIRECTORY/puppet"
OVERCLOUD_PLAN="$TUSKAR_ROLE_DIRECTORY/overcloud-without-mergepy.yaml"
TUSKAR_LOAD_SEED="tuskar-load-seed --config-file $TUSKAR_CONF
--master-seed $OVERCLOUD_PLAN "
if [ -d $PUPPET_DIR ]; then
TUSKAR_RESOURCE_REGISTRY=${TUSKAR_RESOURCE_REGISTRY:-"$TUSKAR_ROLE_DIRECTORY/overcloud-resource-registry-puppet.yaml"}
TUSKAR_LOAD_SEED="$TUSKAR_LOAD_SEED --resource-registry $TUSKAR_RESOURCE_REGISTRY"
$TUSKAR_LOAD_SEED
# Collect any role extra-data
ROLE_EXTRA_DATA=""
for puppet_extra_dir in hieradata manifests; do
if [ -d "$PUPPET_DIR/$puppet_extra_dir" ]; then
for i in `ls -1 "$PUPPET_DIR/$puppet_extra_dir"` ; do
ROLE_EXTRA_DATA="$ROLE_EXTRA_DATA --extra-data
$PUPPET_DIR/$puppet_extra_dir/$i "
done
fi
done
# extraconfig/tasks includes package update script/template
# also grab validation scripts
for i in `find "$TUSKAR_ROLE_DIRECTORY/extraconfig/tasks" \
"$TUSKAR_ROLE_DIRECTORY/validation-scripts/" -type f`; do
ROLE_EXTRA_DATA="$ROLE_EXTRA_DATA --extra-data $i "
done
ROLES=( "Compute" "Controller" "Swift-Storage" "Cinder-Storage" "Ceph-Storage" )
# we are dropping the -puppet.yaml extension upstream
if ls $PUPPET_DIR/*-puppet.yaml &>/dev/null; then
load_roles "$(echo ${ROLES[@]})" $PUPPET_DIR "-puppet.yaml" "$ROLE_EXTRA_DATA"
else
load_roles "$(echo ${ROLES[@]})" $PUPPET_DIR ".yaml" "$ROLE_EXTRA_DATA"
fi
else
TUSKAR_RESOURCE_REGISTRY=${TUSKAR_RESOURCE_REGISTRY:-"$TUSKAR_ROLE_DIRECTORY/overcloud-resource-registry.yaml"}
TUSKAR_LOAD_SEED="$TUSKAR_LOAD_SEED --resource-registry $TUSKAR_RESOURCE_REGISTRY"
$TUSKAR_LOAD_SEED
# Load the non-puppet roles if there:
ROLES=( "Compute" "Controller" "Swift-Storage" "Cinder-Storage" "Ceph-Storage" )
load_roles "$(echo ${ROLES[@]})" $TUSKAR_ROLE_DIRECTORY ".yaml"
fi
fi

View File

@ -1,5 +0,0 @@
#!/bin/bash
set -eux
os-svc-enable -an tuskar-api
os-svc-restart -an tuskar-api

View File

@ -1,70 +0,0 @@
#!/bin/bash
source /root/stackrc
i="0"
while tuskar plan-list 2>&1 | grep "Max retries"; do
i=$[$i+1]
if [ "$i" -gt "10" ]; then
echo "Could not connect to tuskar-api service" 1>&2
exit 1
fi
done
PLAN_ID=$(tuskar plan-show overcloud | awk '$2=="uuid" {print $4}')
if [ -z "$PLAN_ID" ]; then
tuskar plan-create overcloud
PLAN_ID=$(tuskar plan-show overcloud | awk '$2=="uuid" {print $4}')
NEW_PLAN="yes"
fi
for ROLE_NAME in "Controller" "Compute" "Swift-Storage" "Cinder-Storage" "Ceph-Storage" ; do
ROLE_ID=$(tuskar role-list | awk '$4==VAR {print $2}' VAR="$ROLE_NAME")
ROLE_EXISTS=$(tuskar plan-show $PLAN_ID | grep $ROLE_ID)
if [ -z "$ROLE_EXISTS" ]; then
tuskar plan-add-role $PLAN_ID -r $ROLE_ID
fi
done
if [ -n "$NEW_PLAN" ]; then
# Set defaults
tuskar plan-update -P Ceph-Storage-1::Flavor=baremetal \
-P Ceph-Storage-1::count=0 \
-P Ceph-Storage-1::Image=overcloud-full \
-P Cinder-Storage-1::CinderISCSIHelper=lioadm \
-P Cinder-Storage-1::count=0 \
-P Cinder-Storage-1::Image=overcloud-full \
-P Cinder-Storage-1::Flavor=baremetal \
-P Compute-1::count=1 \
-P Compute-1::Flavor=baremetal \
-P Compute-1::Image=overcloud-full \
-P Compute-1::NeutronBridgeMappings=datacentre:br-ex \
-P Compute-1::NeutronEnableTunnelling=True \
-P Compute-1::NeutronFlatNetworks=datacentre \
-P Compute-1::NeutronNetworkType=gre \
-P Compute-1::NeutronNetworkVLANRanges=datacentre:1:1000 \
-P Compute-1::NeutronPhysicalBridge=br-ex \
-P Compute-1::NeutronPublicInterface=nic1 \
-P Compute-1::NeutronTunnelTypes=gre \
-P Compute-1::NovaComputeLibvirtType=qemu \
-P Compute-1::NtpServer= \
-P Controller-1::CinderISCSIHelper=lioadm \
-P Controller-1::CloudName=overcloud \
-P Controller-1::count=1 \
-P Controller-1::Flavor=baremetal \
-P Controller-1::Image=overcloud-full \
-P Controller-1::NeutronBridgeMappings=datacentre:br-ex \
-P Controller-1::NeutronEnableTunnelling=True \
-P Controller-1::NeutronFlatNetworks=datacentre \
-P Controller-1::NeutronNetworkType=gre \
-P Controller-1::NeutronNetworkVLANRanges=datacentre:1:1000 \
-P Controller-1::NeutronPublicInterface=nic1 \
-P Controller-1::NeutronTunnelTypes=gre \
-P Controller-1::NtpServer= \
-P Swift-Storage-1::count=0 \
-P Swift-Storage-1::Flavor=baremetal \
-P Swift-Storage-1::Image=overcloud-full \
$PLAN_ID
fi

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eu
add-rule INPUT -p tcp --dport 8585 -j ACCEPT

View File

@ -1,5 +0,0 @@
{
"default": {
"tuskar_package": "openstack-tuskar"
}
}

View File

@ -1 +0,0 @@
tuskar git /opt/stack/tuskar https://git.openstack.org/openstack/tuskar

View File

@ -1,2 +0,0 @@
tuskar-api:
default: openstack-tuskar-api