diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-05-01 14:32:51 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-05-02 15:31:47 -0500 |
commit | c21e199a328c1d52232c213d2b243016cca46812 (patch) | |
tree | 8b203ef25e00d7f87b695d7ba6eddfb86cf3a3f9 /ci/openstack.sh | |
parent | 6baf75637c2543d26e5887f3cb5903b10185e3e1 (diff) |
added support for install from git repository. please modify
default_deployment_config.yaml to install from release repo
for ocata,master etc. Also user can define their own URL and
more information can be obtained at jujucharms.com
Change-Id: I4943dbf68c6d980b2a2da65417b16631df768b48
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/openstack.sh')
-rwxr-xr-x | ci/openstack.sh | 110 |
1 files changed, 48 insertions, 62 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh index 80355dfa..24d068f9 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -92,41 +92,25 @@ create_openrc() { adminPasswd=$(juju config keystone | grep admin-password -A 5 | grep value | awk '{print $2}' 2> /dev/null) fi - configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v2.0 RegionOne > ~/joid_config/admin-openrc + configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v3 RegionOne > ~/joid_config/admin-openrc + chmod 0600 ~/joid_config/admin-openrc } configOpenrc() { -if [ "$API_FQDN" != "None" ]; then - cat <<-EOF - export SERVICE_ENDPOINT=$4 - unset SERVICE_TOKEN - unset SERVICE_ENDPOINT - export OS_USERNAME=$1 - export OS_PASSWORD=$2 - export OS_TENANT_NAME=$3 - export OS_AUTH_URL=$4 - export OS_REGION_NAME=$5 - export OS_ENDPOINT_TYPE='internalURL' - export CINDER_ENDPOINT_TYPE='internalURL' - export GLANCE_ENDPOINT_TYPE='internalURL' - export KEYSTONE_ENDPOINT_TYPE='internalURL' - export NEUTRON_ENDPOINT_TYPE='internalURL' - export NOVA_ENDPOINT_TYPE='internalURL' -EOF -else - cat <<-EOF - export SERVICE_ENDPOINT=$4 - unset SERVICE_TOKEN - unset SERVICE_ENDPOINT - export OS_USERNAME=$1 - export OS_PASSWORD=$2 - export OS_TENANT_NAME=$3 - export OS_AUTH_URL=$4 - export OS_REGION_NAME=$5 +cat <<-EOF +export OS_AUTH_URL=$4 +export OS_USERNAME=$1 +export OS_PASSWORD=$2 +export OS_USER_DOMAIN_NAME=admin_domain +export OS_PROJECT_DOMAIN_NAME=admin_domain +export OS_PROJECT_NAME=$3 +export OS_TENANT_NAME=$3 +export OS_REGION_NAME=$5 +export OS_IDENTITY_API_VERSION=3 +# Swift needs this: +export OS_AUTH_VERSION=3 EOF - -fi } if [ "$API_FQDN" != "None" ]; then @@ -232,36 +216,38 @@ neutron subnet-show ext-subnet > /dev/null 2>&1 || neutron subnet-create ext-net --name ext-subnet --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \ --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET +#congress team is not updating and supporting charm anymore so defer it. + # Create Congress datasources -sudo apt-get install -y python-congressclient - -openstack congress datasource create nova "nova" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 -openstack congress datasource create neutronv2 "neutronv2" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 -openstack congress datasource create ceilometer "ceilometer" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 -openstack congress datasource create cinder "cinder" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 -openstack congress datasource create glancev2 "glancev2" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 -openstack congress datasource create keystone "keystone" \ - --config username=$OS_USERNAME \ - --config tenant_name=$OS_TENANT_NAME \ - --config password=$OS_PASSWORD \ - --config auth_url=http://$keystoneIp:5000/v2.0 +#sudo apt-get install -y python-congressclient + +#openstack congress datasource create nova "nova" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 +#openstack congress datasource create neutronv2 "neutronv2" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 +#openstack congress datasource create ceilometer "ceilometer" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 +#openstack congress datasource create cinder "cinder" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 +#openstack congress datasource create glancev2 "glancev2" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 +#openstack congress datasource create keystone "keystone" \ +# --config username=$OS_USERNAME \ +# --config tenant_name=$OS_TENANT_NAME \ +# --config password=$OS_PASSWORD \ +# --config auth_url=http://$keystoneIp:5000/v2.0 |