c88eb575b8
Note: all scripts in tools/deployment/aiab directory have been moved into this repository as is (except a few changes to make them work), they require a heavy refactoring that will be done in separate patch-sets. * Add a virtual single node manifests that are based on a sloop type. * Use NFS provisioner instead of Ceph. * Update tools/openstack to be non-seaworthy specific, use a default region name and auth url. * Make type/sloop/config/common-software-config.yaml to be site specific, to allow to configure custom region_name. * Remove max-pods-per-cpu parameter for kubelet, treasuremap needs to support a diverse set of environments, without constraints on the number of available cores. Max pods configuration parameter is still present and helps to mitigate problems when kubernetes unexpectedly starts a large number of pods. Change-Id: I379a50d810b91b989f039dbb7c691f5ceec0cc67
42 lines
1.0 KiB
Bash
Executable File
42 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Utility to execute OpenStack CLI using Heat container.
|
|
# This is an example, and should be adjusted to ones needs.
|
|
#
|
|
# Usage: openstack endpoint list
|
|
|
|
set -e
|
|
|
|
OS_CLOUD_CFG=${HOME}/.openstack/clouds.yaml
|
|
|
|
: ${TERM_OPTS:=-it}
|
|
|
|
: ${OSH_KEYSTONE_URL:='http://keystone.openstack.svc.cluster.local:80/'}
|
|
: ${OSH_REGION_NAME:='RegionOne'}
|
|
: ${OSH_ADMIN_PASSWD:='password123'}
|
|
|
|
if [ ! -f $OS_CLOUD_CFG ]; then
|
|
echo " => Creating OpenStack client config"
|
|
mkdir -p $(dirname $OS_CLOUD_CFG)
|
|
tee $OS_CLOUD_CFG << EOF
|
|
clouds:
|
|
openstack_helm:
|
|
region_name: '${OSH_REGION_NAME}'
|
|
identity_api_version: 3
|
|
auth:
|
|
username: 'admin'
|
|
password: '${OSH_ADMIN_PASSWD}'
|
|
project_name: 'admin'
|
|
project_domain_name: 'default'
|
|
user_domain_name: 'default'
|
|
auth_url: '${OSH_KEYSTONE_URL}'
|
|
EOF
|
|
fi
|
|
|
|
exec sudo docker run --rm ${TERM_OPTS} --net host \
|
|
-v $(pwd):/target \
|
|
-v ${OS_CLOUD_CFG}:/etc/openstack/clouds.yaml:ro \
|
|
-e OS_CLOUD=openstack_helm \
|
|
docker.io/openstackhelm/heat:ocata openstack "$@"
|
|
|