import openshift_master_ca role from openshift-ansible

This commit is contained in:
Adam Miller 2015-08-05 16:37:49 +00:00
parent 9c028cb242
commit a51431f2af
5 changed files with 78 additions and 0 deletions

View file

@ -25,6 +25,7 @@ To re-import/update the OpenShift Ansible roles:
openshift_facts
openshift_manage_node
openshift_master
openshift_master_ca
openshift_master_certificates
openshift_master_cluster
openshift_node

View file

@ -0,0 +1,34 @@
OpenShift Master CA
========================
TODO
Requirements
------------
TODO
Role Variables
--------------
TODO
Dependencies
------------
TODO
Example Playbook
----------------
TODO
License
-------
Apache License Version 2.0
Author Information
------------------
Jason DeTiberus (jdetiber@redhat.com)

View file

@ -0,0 +1,16 @@
---
galaxy_info:
author: Jason DeTiberus
description:
company: Red Hat, Inc.
license: Apache License, Version 2.0
min_ansible_version: 1.8
platforms:
- name: EL
versions:
- 7
categories:
- cloud
- system
dependencies:
- { role: openshift_repos }

View file

@ -0,0 +1,22 @@
---
- name: Install the OpenShift package for admin tooling
yum: pkg=openshift state=present
register: install_result
- name: Reload generated facts
openshift_facts:
- name: Create openshift_master_config_dir if it doesn't exist
file:
path: "{{ openshift_master_config_dir }}"
state: directory
- name: Create the master certificates if they do not already exist
command: >
{{ openshift.common.admin_binary }} create-master-certs
--hostnames={{ openshift.common.all_hostnames | join(',') }}
--master={{ openshift.master.api_url }}
--public-master={{ openshift.master.public_api_url }}
--cert-dir={{ openshift_master_config_dir }} --overwrite=false
args:
creates: "{{ openshift_master_config_dir }}/master.server.key"

View file

@ -0,0 +1,5 @@
---
openshift_master_config_dir: /etc/openshift/master
openshift_master_ca_cert: "{{ openshift_master_config_dir }}/ca.crt"
openshift_master_ca_key: "{{ openshift_master_config_dir }}/ca.key"
openshift_master_ca_serial: "{{ openshift_master_config_dir }}/ca.serial.txt"