Phase in initial openstack script

This commit is contained in:
Nico Schottelius 2024-01-06 17:25:46 +01:00
parent 1bcd1b90b4
commit 8ecb1efd16
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#!/bin/sh
mkdir -p ~/osh
python3 -m venv ~/osh/venv
. ~/osh/venv/bin/activate
UPPER_CONSTRAINTS_FILE=https://releases.openstack.org/constraints/upper/${OPENSTACK_RELEASE:-xena}} pip install cmd2 python-openstackclient python-heatclient --ignore-installed
# Create /etc/openstack for me
sudo -H mkdir -p /etc/openstack
sudo -H chown -R $(id -un): /etc/openstack
# create config - probably need to fix auth_url
tee /etc/openstack/clouds.yaml << EOF
clouds:
openstack_helm:
region_name: RegionOne
identity_api_version: 3
cacert: /etc/openstack-helm/certs/ca/ca.pem
auth:
username: 'admin'
password: 'password'
project_name: 'admin'
project_domain_name: 'default'
user_domain_name: 'default'
auth_url: 'https://keystone.openstack.svc.cluster.local/v3'
EOF