X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-init;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-devtools%2Fpython%2Ffiles%2Fpython-keystone%2Fkeystone-init;h=0000000000000000000000000000000000000000;hb=6fc6934434f70595536a387ece31bc30141cafb5;hp=db4b4faacd0ec805d0bde49ca3b0330100c3cbe8;hpb=eb1e26510491ba49de693ab3b0498edcb06be6c5;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-init b/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-init deleted file mode 100644 index db4b4fa..0000000 --- a/meta-starlingx/meta-stx-integ/recipes-devtools/python/files/python-keystone/keystone-init +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# -# Basic keystone setup as described on: -# https://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-install.html -# https://docs.openstack.org/keystone/pike/install/keystone-install-ubuntu.html -# -# Prerequisites: /etc/postgresql/postgresql-init must be run first to create the DB -# -# After complete you should be able to query keystone with something like the -# following (https://docs.openstack.org/keystone/latest/api_curl_examples.html) -# -#curl -i \ -# -H "Content-Type: application/json" \ -# -d ' -#{ "auth": { -# "identity": { -# "methods": ["password"], -# "password": { -# "user": { -# "name": "%ADMIN_USER%", -# "domain": { "id": "default" }, -# "password": "%ADMIN_PASSWORD%" -# } -# } -# } -# } -#}' \ -# "http://localhost:5000/v3/auth/tokens" ; echo - - -# Substitutions setup at do_intall() -DB_USER=%DB_USER% -KEYSTONE_USER=%KEYSTONE_USER% -KEYSTONE_GROUP=%KEYSTONE_GROUP% -CONTROLLER_IP=%CONTROLLER_IP% -ADMIN_USER=%ADMIN_USER% -ADMIN_PASSWORD=%ADMIN_PASSWORD% -ADMIN_ROLE=%ADMIN_ROLE% - -# Create the keystone DB and grant the necessary permissions -sudo -u postgres psql -c "CREATE DATABASE keystone" 2> /dev/null -sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE keystone TO ${DB_USER}" 2> /dev/null - -keystone-manage db_sync - -keystone-manage fernet_setup --keystone-user ${KEYSTONE_USER} --keystone-group ${KEYSTONE_GROUP} -keystone-manage credential_setup --keystone-user ${KEYSTONE_USER} --keystone-group ${KEYSTONE_GROUP} - -keystone-manage bootstrap \ - --bootstrap-password ${ADMIN_PASSWORD} \ - --bootstrap-username ${ADMIN_USER} \ - --bootstrap-project-name admin \ - --bootstrap-role-name ${ADMIN_ROLE} \ - --bootstrap-service-name keystone \ - --bootstrap-region-id RegionOne \ - --bootstrap-admin-url http://${CONTROLLER_IP}:35357 \ - --bootstrap-internal-url http://${CONTROLLER_IP}:5000 \ - --bootstrap-public-url http://${CONTROLLER_IP}:5000 - -#keystone-manage pki_setup --keystone-user=root --keystone-group=daemon