Merge branch 'sdoran-flatten-role'

This commit is contained in:
Sam Doran 2017-07-21 17:13:48 -04:00
commit fc6b9da839
13 changed files with 48 additions and 10 deletions

39
README.md Normal file
View File

@ -0,0 +1,39 @@
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)
Install Keystone in a Kubernetes cluster.
Requirements
------------
Access to Kubernetes cluster
Role Variables
--------------
| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `action` | `provision` | List of tasks to run. |
| `core_host` | `https://rhev-i32c-03.mpc.lab.eng.bos.redhat.com:6443` | |
| `kube_context` | `kubernetes-admin@kubernetes` | |
| `config_file` | `/root/.kube/config` | |
Dependencies
------------
- `ansible.kubernetes-modules`
Example Playbook
----------------
- hosts: all
roles:
- tripleo.k8s-keystone
License
-------
MIT

View File

View File

@ -1,3 +0,0 @@
coe_host: "https://rhev-i32c-03.mpc.lab.eng.bos.redhat.com:6443"
kube_context: "kubernetes-admin@kubernetes"
config_file: /root/.kube/config

1
tasks/main.yml Normal file
View File

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

View File

@ -9,10 +9,11 @@
register: create_project
- name: Upload config files
template: src="{{item}}"
dest="/tmp/{{item}}"
backup=yes
mode=0644
template:
src: "{{item}}"
dest: /tmp/{{item}}
backup: yes
mode: 0644
with_items:
- httpd.conf
- httpd-keystone-main.conf
@ -23,10 +24,10 @@
- name: Generate config files
config_template:
src: 'templates/base.conf.j2'
dest: '/tmp/keystone.conf'
src: base.conf.j2
dest: /tmp/keystone.conf
config_overrides: '{{keystone_config}}'
config_type: 'ini'
config_type: ini
- name: Read configs into memory
slurp: