f49b79fe40
This introduces a CRD for enabling/removing services from Keystone, it also introduces a basic DevStack plugin framework so that we can test things from it. It also adds a framework for the operator to setup SDK clients. Change-Id: I183e560c6b32de2ce7adefeb1daa26def675bbe3
48 lines
1.5 KiB
YAML
Executable File
48 lines
1.5 KiB
YAML
Executable File
---
|
|
# Copyright (c) 2020 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- hosts: all
|
|
pre_tasks:
|
|
- name: Create secret for DevStack credentials
|
|
shell: |
|
|
cat <<EOF | kubectl apply -f-
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: devstack
|
|
stringData:
|
|
OS_INSECURE: "true"
|
|
OS_AUTH_URL: http://{{ hostvars['controller']['nodepool']['private_ipv4'] }}/identity
|
|
OS_AUTH_TYPE: password
|
|
OS_PROJECT_DOMAIN_ID: default
|
|
OS_PROJECT_NAME: admin
|
|
OS_USER_DOMAIN_ID: default
|
|
OS_USERNAME: admin
|
|
OS_PASSWORD: secretadmin
|
|
EOF
|
|
roles:
|
|
- role: helm-template
|
|
vars:
|
|
helm_release_name: openstack-operator
|
|
helm_chart: ./chart
|
|
helm_values_file: ./chart/test-values.yaml
|
|
tasks:
|
|
# TODO(mnaser): Generate all manifests and ensure git is not dirty
|
|
- include_tasks: tests/memcached.yaml
|
|
- include_tasks: tests/rabbitmq.yaml
|
|
|
|
- import_playbook: devstack.yaml
|