Retire ansible-role-k8s-keystone

Change-Id: I0ea0cf28c5989bddf01b46fcb78fb1853662e215
This commit is contained in:
Alex Schultz 2019-05-21 09:49:13 -06:00
parent 3f2e79a64a
commit 165461a8d3
16 changed files with 8 additions and 13273 deletions

View File

@ -1,33 +0,0 @@
- project:
check:
jobs:
- ansible-role-k8s-keystone-kubernetes-centos
- ansible-role-k8s-keystone-openshift-centos
- job:
name: ansible-role-k8s-keystone-kubernetes-centos
parent: ansible-role-k8s-base
nodeset: ansible-role-k8s-centos
voting: false
vars:
coe: kubernetes
project_name: ansible-role-k8s-keystone
ansible_role_k8s_required:
- ansible-role-k8s-mariadb
required-projects:
- openstack/ansible-role-k8s-mariadb
- openstack/ansible-role-k8s-keystone
- job:
name: ansible-role-k8s-keystone-openshift-centos
parent: ansible-role-k8s-base
nodeset: ansible-role-k8s-centos
voting: false
vars:
coe: openshift
project_name: ansible-role-k8s-keystone
ansible_role_k8s_required:
- ansible-role-k8s-mariadb
required-projects:
- openstack/ansible-role-k8s-mariadb
- openstack/ansible-role-k8s-keystone

176
LICENSE
View File

@ -1,176 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

View File

@ -1,34 +1,10 @@
K8S Keystone
=========
[![Galaxy](https://img.shields.io/badge/galaxy-tripleo.k8s--keystone-blue.svg?style=flat)](https://galaxy.ansible.com/tripleo/k8s-keystone)
[![Build Status](https://travis-ci.org/tripleo/ansible-role-k8s-keystone.svg?branch=master)](https://travis-ci.org/tripleo/ansible-role-k8s-keystone)
This project is no longer maintained.
Install Keystone in a Kubernetes cluster.
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".
Requirements
------------
Access to Kubernetes cluster
Role Variables
--------------
| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `action` | `provision` | List of tasks to run. |
| `coe_host` | | |
| `coe_config_context` | | |
| `coe_config_file` | | |
Dependencies
------------
- `ansible.kubernetes-modules`
Example Playbook
----------------
- hosts: all
roles:
- tripleo.k8s-keystone
For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-dev on
Freenode.

View File

@ -1,51 +0,0 @@
coe_host:
coe_config_context:
coe_config_file:
action: provision
namespace: openstack
hiera_data: {}
hiera_data_file: ''
clouds_config: 'clouds-secret'
keystone_hostname: "keystone"
keystone_address: "{{keystone_hostname}}"
keystone_use_service_ip: true
mariadb_config:
host: mariadb
root_password: weakpassword
keystone_mounts:
- name: kolla-config
mountPath: /var/lib/kolla/config_files/
- name: keystone-fernet
mountPath: /etc/keystone/fernet-keys
keystone_mounts_extra: []
keystone_volumes:
- name: kolla-config
config_map:
name: keystone
- name: keystone-fernet
persistentVolumeClaim:
claimName: keystone-fernet
keystone_volumes_extra: []
keystone_config:
DEFAULT:
public_bind_host: "0.0.0.0"
database:
connection: "mysql+pymysql://root:weakpassword@mariadb:3306/keystone"
token:
provider: "fernet"
admin_username: 'admin'
admin_role_name: 'admin'
admin_project_name: 'admin'
admin_service_name: 'keystone'
admin_domain_name: 'Default'
admin_password: 'weakpassword'

View File

@ -1,26 +0,0 @@
galaxy_info:
author: Flavio Percoco
description:
company: Red Hat
license: Apache v2
min_ansible_version: 2.3
platforms:
- name: EL
versions:
- 7
galaxy_tags:
- openstack
- kubernetes
- keystone
dependencies:
- role: ansible.kubernetes-modules
install_python_requirements: no
# NOTE(flaper87): We are vendoring config_template in ansible-role-k8s-tripleo
# for now until it's split into its own package.
# - role: openstack-ansible-plugins
- role: ansible-role-k8s-tripleo

View File

@ -1,46 +0,0 @@
- name: Delete keystone fernet job
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-fernet
namespace: "{{namespace}}"
state: absent
- name: Delete keystone db-sync job
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-db-sync
namespace: "{{namespace}}"
state: absent
- name: Delete keystone deployment
k8s_v1beta1_deployment:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-api
namespace: "{{namespace}}"
state: absent
- name: Delete keystone service
k8s_v1_service:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone
namespace: "{{namespace}}"
state: absent
- name: Delete keystone configmaps
ignore_errors: yes
k8s_v1_config_map:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone
namespace: "{{namespace}}"
state: absent
debug: yes

View File

@ -1,55 +0,0 @@
- name: Translate hieradata
include_role:
name: 'ansible-role-k8s-tripleo'
vars:
hieradata: '{{hiera_data}}'
hieradata_file: '{{hiera_data_file}}'
schema:
# NOTE(flaper87): Needed for bootstrap
# operations
keystone::admin_password: admin_password
keystone::db::mysql::dbname: db.db_name
keystone::db::mysql::host: db.host
keystone::db::mysql::password: db.password
keystone::db::mysql::user: db.user
keystone::admin_token: DEFAULT.admin_token
keystone::admin_workers: eventlet_server.admin_workers
keystone::public_workers: eventlet_server.public_workers
keystone::public_bind_host: eventlet_server.public_bind_host
keystone::admin_bind_host: eventlet_server.admin_bind_host
keystone::public_endpoint: DEFAULT.admin_bind_host
keystone_ca_certificate: signing.ca_certs
keystone_signing_key: signing.keyfile
keystone_signing_certificate: signing.certfile
keystone::database_connection: database.connection
keystone::token_expiration: token.expiration
keystone::fernet_max_active_keys: fernet_tokens.max_active_keys
keystone::wsgi::apache::ssl: ssl.enable
keystone::notification_driver: oslo_messaging_notifications.driver
keystone::notification_topics: oslo_messaging_notifications.topics
keystone::rabbit_userid: oslo_messaging_rabbit.rabbit_userid
keystone::rabbit_password: oslo_messaging_rabbit.rabbit_password
keystone::rabbit_host: oslo_messaging_rabbit.rabbit_host
default: '{{keystone_config}}'
fact_variable: 'keystone_config'
# ?
# keystone::cron::token_flush::destination: '/dev/null'
# keystone::roles::admin::password: 211937d10baf281179d64c64533af6fcc1aa7475
# keystone::roles::admin::email: 'root@localhost'
# keystone::roles::admin::admin_tenant: 'admin'
# keystone::roles::admin::service_tenant: 'service'
# keystone::endpoint::public_url: http://192.168.24.1:5000
# keystone::endpoint::internal_url: http://192.168.24.1:5000
# keystone::endpoint::admin_url: "%{hiera('keystone_identity_uri')}"
# keystone::endpoint::region: "%{hiera('keystone_region')}"
# keystone::endpoint::version: ''
# keystone::wsgi::apache::bind_host: 192.168.24.1
# keystone::enable_credential_setup: true
# keystone::fernet_max_active_keys: 2

View File

@ -1 +0,0 @@
- include: "{{ action }}.yml"

View File

@ -1,276 +0,0 @@
- name: Upload config files
template:
src: "{{item}}"
dest: /tmp/{{item}}
backup: yes
mode: 0644
with_items:
- httpd.conf
- httpd-keystone-main.conf
- httpd-keystone-admin.conf
- include: hiera.yml
- name: Generate config files
config_template:
src: base.conf.j2
dest: /tmp/keystone.conf
config_overrides: '{{keystone_config}}'
config_type: ini
- name: Read configs into memory
slurp:
src: "/tmp/httpd-keystone-main.conf"
register: "httpd_keystone_main_conf"
- name: Read configs into memory
slurp:
src: "/tmp/httpd-keystone-admin.conf"
register: "httpd_keystone_admin_conf"
- name: Read configs into memory
slurp:
src: "/tmp/httpd.conf"
register: "httpd_conf"
- name: Read configs into memory
slurp:
src: "/tmp/keystone.conf"
register: "keystone_conf"
- name: Create keystone configmaps
ignore_errors: yes
k8s_v1_config_map:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone
namespace: "{{namespace}}"
state: present
debug: yes
labels:
service: keystone
data:
config.json: |
{
"command": "/usr/sbin/httpd -DFOREGROUND",
"config_files": [
{
"dest": "/etc/httpd/conf/httpd.conf",
"owner": "root",
"perm": "0644",
"source": "/var/lib/kolla/config_files/httpd.conf"
},
{
"dest": "/etc/keystone/keystone.conf",
"owner": "keystone",
"perm": "0644",
"source": "/var/lib/kolla/config_files/keystone.conf"
},
{
"dest": "/etc/httpd/conf.d/10-keystone-main.conf",
"owner": "root",
"perm": "0644",
"source": "/var/lib/kolla/config_files/httpd-keystone-main.conf"
},
{
"dest": "/etc/httpd/conf.d/10-keystone-admin.conf",
"owner": "root",
"perm": "0644",
"source": "/var/lib/kolla/config_files/httpd-keystone-admin.conf"
}
]
}
keystone.conf: |
{{keystone_conf['content'] | b64decode}}
httpd.conf: |
{{httpd_conf['content'] | b64decode}}
httpd-keystone-main.conf: |
{{httpd_keystone_main_conf['content'] | b64decode}}
httpd-keystone-admin.conf: |
{{httpd_keystone_admin_conf['content'] | b64decode}}
- name: Create keystone database
include_role:
name: ansible-role-k8s-tripleo
tasks_from: create-database
vars:
database_name: 'keystone'
# NOTE(flaper87): Requesting a PVC should probably not be the default, explore
# using secrets for the fernet keys
- name: Create keystone PVC
k8s_v1_persistent_volume_claim:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-fernet
namespace: "{{namespace}}"
state: present
spec_access_modes:
- ReadWriteMany
spec_storage_class_name: slow
spec_resources_requests:
storage: 1Gi
- name: Create keystone job
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-db-sync
namespace: "{{namespace}}"
state: present
restart_policy: OnFailure
containers:
- image: tripleoupstream/centos-binary-keystone
name: keystone-db-sync
env:
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
- name: KOLLA_BOOTSTRAP
value: ''
volume_mounts: "{{keystone_mounts + keystone_mounts_extra}}"
volumes: "{{keystone_volumes + keystone_volumes_extra}}"
state: present
- name: Keystone fernet bootstrap
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-fernet
namespace: "{{namespace}}"
state: present
restart_policy: OnFailure
containers:
- image: tripleoupstream/centos-binary-keystone-fernet
name: keystone-fernet-bootstrap
command: ["kolla_keystone_bootstrap", "keystone", "keystone"]
env:
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
volume_mounts: "{{keystone_mounts + keystone_mounts_extra}}"
volumes: "{{keystone_volumes + keystone_volumes_extra}}"
state: present
- name: Create keystone service
k8s_v1_service:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: "{{keystone_hostname}}"
namespace: "{{namespace}}"
state: present
ports:
- port: 5000
name: keystone-api-public
- port: 35357
name: keystone-api-admin
selector:
app: keystone-api
register: keystone_service
- set_fact:
keystone_address: "{{keystone_service.service.spec.cluster_ip}}"
when: keystone_use_service_ip
- name: Keystone bootstrap
k8s_v1_job:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-bootstrap
namespace: "{{namespace}}"
state: present
restart_policy: OnFailure
containers:
- image: tripleoupstream/centos-binary-keystone
name: keystone-bootstrap
# NOTE(flaper87): We might want to set bootstrap URLs, project name, etc
command:
- keystone-manage
- --config-file
- /var/lib/kolla/config_files/keystone.conf
- bootstrap
- --bootstrap-username
- '{{keystone_config.admin_username}}'
- --bootstrap-password
- '{{keystone_config.admin_password}}'
- --bootstrap-role-name
- '{{keystone_config.admin_role_name}}'
- --bootstrap-project-name
- '{{keystone_config.admin_project_name}}'
- --bootstrap-service-name
- '{{keystone_config.admin_service_name}}'
- --bootstrap-admin-url
- "http://{{keystone_address}}:35357/v3"
- --bootstrap-internal-url
- "http://{{keystone_address}}:5000/v3"
- --bootstrap-public-url
- "http://{{keystone_address}}:5000/v3"
- --bootstrap-region-id
- RegionOne
env:
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
- name: KOLLA_BOOTSTRAP
value: ''
volume_mounts: "{{keystone_mounts + keystone_mounts_extra}}"
volumes: "{{keystone_volumes + keystone_volumes_extra}}"
state: present
- name: Create keystone deployment
k8s_apps_v1beta1_deployment:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: keystone-api
namespace: "{{namespace}}"
replicas: 1
spec_revision_history_limit: 3
spec_template_metadata_labels:
app: keystone-api
containers:
- name: keystone-api
image: tripleoupstream/centos-binary-keystone
imagePullPolicy: IfNotPresent
env:
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
- name: KOLLA_KUBERNETES
value: ""
ports:
- name: api-public
containerPort: 5000
- name: api-admin
containerPort: 35357
volume_mounts: "{{keystone_mounts + keystone_mounts_extra}}"
volumes: "{{keystone_volumes + keystone_volumes_extra}}"
state: present
register: create_service
- set_fact:
clouds_yaml: |
clouds:
{{namespace}}:
region_name: RegionOne
identity_api_version: 3
auth:
username: '{{keystone_config.admin_username}}'
password: '{{keystone_config.admin_password}}'
project_name: '{{keystone_config.admin_project_name}}'
user_domain_name: '{{keystone_config.admin_domain_name}}'
project_domain_name: '{{keystone_config.admin_domain_name}}'
auth_url: 'http://keystone:5000/v3'
- name: Create keystone secrets
k8s_v1_secret:
host: "{{coe_host}}"
context: "{{coe_config_context}}"
kubeconfig: "{{coe_config_file}}"
name: '{{clouds_config}}'
namespace: "{{namespace}}"
state: present
data:
clouds.yaml: "{{clouds_yaml | b64encode}}"

View File

View File

@ -1,22 +0,0 @@
<VirtualHost *:35357>
## Vhost docroot
DocumentRoot "/var/www/cgi-bin/keystone"
## Directories, there should at least be a declaration for /var/www/cgi-bin/keystone
<Directory "/var/www/cgi-bin/keystone">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
## Logging
# ErrorLog "/var/log/httpd/keystone_wsgi_admin_error.log"
ServerSignature Off
# CustomLog "/var/log/httpd/keystone_wsgi_admin_access.log" combined
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess keystone_admin display-name=keystone-admin group=keystone processes=2 threads=1 user=keystone
WSGIProcessGroup keystone_admin
WSGIScriptAlias / "/var/www/cgi-bin/keystone/admin"
WSGIPassAuthorization On
</VirtualHost>

View File

@ -1,22 +0,0 @@
<VirtualHost *:5000>
## Vhost docroot
DocumentRoot "/var/www/cgi-bin/keystone"
## Directories, there should at least be a declaration for /var/www/cgi-bin/keystone
<Directory "/var/www/cgi-bin/keystone">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted
</Directory>
## Logging
# ErrorLog "/var/log/httpd/keystone_wsgi_main_error.log"
ServerSignature Off
# CustomLog "/var/log/httpd/keystone_wsgi_main_access.log" combined
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess keystone_main display-name=keystone-main group=keystone processes=2 threads=1 user=keystone
WSGIProcessGroup keystone_main
WSGIScriptAlias / "/var/www/cgi-bin/keystone/main"
WSGIPassAuthorization On
</VirtualHost>

View File

@ -1,113 +0,0 @@
Listen *:5000
Listen *:35357
ServerRoot "/etc/httpd"
DocumentRoot "/var/www/html"
User apache
Group apache
Include conf.modules.d/*.conf
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog /dev/stderr
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog /dev/stdout combined
</IfModule>
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig /etc/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +0,0 @@
[DEFAULT]
debug = true
[auth]
# Roles to assign to all users created by tempest (list value)
tempest_roles = _member_
use_dynamic_credentials = true
# Roles to assign to all users created by tempest (list value)
#tempest_roles =
default_credentials_domain_name = Default
admin_username = admin
admin_project_name = admin
admin_password = weakpassword
admin_domain_name = Default
[identity]
admin_username = admin
admin_tenant_name = admin
admin_domain_name = Default
disable_ssl_certificate_validation = true
catalog_type = identity
uri = http://{{keystone_ip}}:5000/v3
uri_v3 = http://{{keystone_ip}}:5000/v3
auth_version = v3
region = RegionOne
admin_role = admin
default_domain_id = default
admin_password = weakpassword
[service_available]
cinder = false
neutron = false
glance = false
swift = false
nova = false

View File

@ -1,59 +0,0 @@
---
- name: Get keystone cluster ip
shell:
cmd: |
kubectl get service keystone --namespace {{namespace}} --template={%raw%}{{.spec.clusterIP}}{%endraw%}
executable: /bin/bash
register: keystone_ip
- set_fact:
keystone_ip: "{{keystone_ip.stdout}}"
- name: Wait for keystone to become available
wait_for:
host: "{{keystone_ip}}"
port: "{{item}}"
delay: 2
timeout: 300
with_items:
- 35357
- 5000
- name: Test keystone jobs completion
shell:
cmd: |
set -ex
rst=$(kubectl --namespace {{namespace}} get jobs {{item}} --template={%raw%}"{{.status.succeeded}}"{%endraw%})
if [ "$rst" == "1" ]; then
exit 0
fi
exit 1
executable: /bin/bash
retries: 6
delay: 5
register: task_result
until: task_result.rc == 0
with_items:
- keystone-createdb
- keystone-db-sync
- keystone-fernet
- keystone-bootstrap
- name: Copy tempests config
become: true
template:
src: templates/tempest.conf
dest: /etc/tempest/tempest.conf
- name: Run tempest
shell:
cmd: |
set -x
set -e
tempest init tempest
cd tempest
tempest run -r identity
executable: /bin/bash
register: tempest_output