add osbs orchestrator/worker playbooks/roles

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller
2017-07-12 16:14:20 -05:00
committed by Adam Miller
parent 74087cff26
commit 037d4931b4
39 changed files with 2066 additions and 53 deletions

View File

@@ -0,0 +1,34 @@
OpenShift prerequisites Role
============================
An Ansible role to manage prerequisites for OSE installation.
It performs the following operations:
* Sets necessary sebools for GlusterFS and NFS.
https://docs.openshift.com/container-platform/3.3/install_config/install/prerequisites.html#prereq-selinux
* Installs python-six package
https://github.com/openshift/openshift-ansible/issues/3020
Role Variables Example
----------------------
# Set up sebools
openshift_sebools:
- name: virt_sandbox_use_fusefs
state: yes
persistent: yes
Example Playbook
----------------
- hosts: all
roles:
- openshift-prerequisites
Dependencies
------------
None.

View File

@@ -0,0 +1,14 @@
---
# SELinux booleans
openshift_sebools:
# https://docs.openshift.com/container-platform/3.3/install_config/persistent_storage/persistent_storage_glusterfs.html#selinux
- name: virt_sandbox_use_fusefs
state: yes
persistent: yes
# https://docs.openshift.com/container-platform/3.3/install_config/persistent_storage/persistent_storage_nfs.html#nfs-selinux
- name: virt_use_nfs
state: yes
persistent: yes
- name: virt_sandbox_use_nfs
state: yes
persistent: yes

View File

@@ -0,0 +1,13 @@
# Standards: 1.6
---
galaxy_info:
author: Andrej Golis
description: Set up prerequisites for OSE installation
company: Red Hat, Inc.
license: BSD
min_ansible_version: 2.1
platforms:
- name: EL
versions:
- 7
dependencies: []

View File

@@ -0,0 +1,23 @@
---
- name: Install python-six package
package:
name: python-six
state: present
- name: Install libselinux-python package
package:
name: libselinux-python
state: present
- name: Configure SELinux
selinux:
state: enforcing
policy: targeted
- name: enable/disable sebools
seboolean:
name: "{{ item.name }}"
state: "{{ item.state }}"
persistent: "{{ item.persistent }}"
with_items: "{{ openshift_sebools }}"
when: openshift_sebools != ""