tripleo-ansible/tripleo_ansible/roles/tripleo_keystone_resources/molecule/default/converge.yml

53 lines
1.8 KiB
YAML

---
# Copyright 2019 Red Hat, Inc.
# All Rights Reserved.
#
# 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.
- name: Converge
hosts: all
become: true
tasks:
- name: Create openstack directory
file:
path: /etc/openstack
state: directory
- name: Configure /etc/openstack/clouds.yaml
include_role:
name: tripleo_keystone_resources
tasks_from: clouds
vars:
tripleo_keystone_resources_cloud_name: openstack
tripleo_keystone_resources_cloud_config:
auth:
auth_url: http://localhost:5000/
project_name: "admin"
username: "admin"
password: "ADMIN_PASS"
project_domain_id: default
user_domain_id: default
identity_api_version: 3
region_name: RegionOne
- name: Create keystone admin resources
include_role:
name: tripleo_keystone_resources
tasks_from: admin
vars:
tripleo_keystone_resources_cloud_name: openstack
tripleo_keystone_resources_region: RegionOne
tripleo_keystone_resources_admin_password: "ADMIN_PASS"
tripleo_keystone_resources_admin_endpoint: "http://localhost:35357"
tripleo_keystone_resources_internal_endpoint: "http://localhost:5000"
tripleo_keystone_resources_public_endpoint: "http://localhost:5000"