import openshift_master_ca role from openshift-ansible
This commit is contained in:
parent
9c028cb242
commit
a51431f2af
5 changed files with 78 additions and 0 deletions
|
@ -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
|
||||
|
|
34
roles/openshift_master_ca/README.md
Normal file
34
roles/openshift_master_ca/README.md
Normal 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)
|
16
roles/openshift_master_ca/meta/main.yml
Normal file
16
roles/openshift_master_ca/meta/main.yml
Normal 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 }
|
22
roles/openshift_master_ca/tasks/main.yml
Normal file
22
roles/openshift_master_ca/tasks/main.yml
Normal 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"
|
5
roles/openshift_master_ca/vars/main.yml
Normal file
5
roles/openshift_master_ca/vars/main.yml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue