diff options
Diffstat (limited to 'roles/openshift_sdn_master')
-rw-r--r-- | roles/openshift_sdn_master/README.md | 41 | ||||
-rw-r--r-- | roles/openshift_sdn_master/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/openshift_sdn_master/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/openshift_sdn_master/meta/main.yml | 14 | ||||
-rw-r--r-- | roles/openshift_sdn_master/tasks/main.yml | 26 |
5 files changed, 86 insertions, 0 deletions
diff --git a/roles/openshift_sdn_master/README.md b/roles/openshift_sdn_master/README.md new file mode 100644 index 000000000..d0dcf6d11 --- /dev/null +++ b/roles/openshift_sdn_master/README.md @@ -0,0 +1,41 @@ +OpenShift SDN Master +==================== + +OpenShift SDN Master service installation + +Requirements +------------ + +A host with the openshift_master role applied + +Role Variables +-------------- + +From this role: +| Name | Default value | | +|----------------------------------|-----------------------|--------------------------------------------------| +| openshift_sdn_master_debug_level | openshift_debug_level | Verbosity of the debug logs for openshift-master | + +From openshift_common: +| Name | Default value | | +|-----------------------|---------------|--------------------------------------| +| openshift_debug_level | 0 | Global openshift debug log verbosity | + +Dependencies +------------ + + +Example Playbook +---------------- + +TODO + +License +------- + +Apache License, Version 2.0 + +Author Information +------------------ + +TODO diff --git a/roles/openshift_sdn_master/defaults/main.yml b/roles/openshift_sdn_master/defaults/main.yml new file mode 100644 index 000000000..da7655546 --- /dev/null +++ b/roles/openshift_sdn_master/defaults/main.yml @@ -0,0 +1,2 @@ +--- +openshift_sdn_master_debug_level: "{{ openshift_debug_level | default(0) }}" diff --git a/roles/openshift_sdn_master/handlers/main.yml b/roles/openshift_sdn_master/handlers/main.yml new file mode 100644 index 000000000..cd645f2c5 --- /dev/null +++ b/roles/openshift_sdn_master/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: restart openshift-sdn-master + service: name=openshift-sdn-master state=restarted diff --git a/roles/openshift_sdn_master/meta/main.yml b/roles/openshift_sdn_master/meta/main.yml new file mode 100644 index 000000000..e6e5514d1 --- /dev/null +++ b/roles/openshift_sdn_master/meta/main.yml @@ -0,0 +1,14 @@ +--- +galaxy_info: + author: Jason DeTiberus + description: OpenShift SDN Master + company: Red Hat, Inc. + license: Apache License, Version 2.0 + min_ansible_version: 1.7 + platforms: + - name: EL + versions: + - 7 + categories: + - cloud +dependencies: [] diff --git a/roles/openshift_sdn_master/tasks/main.yml b/roles/openshift_sdn_master/tasks/main.yml new file mode 100644 index 000000000..e1761afdc --- /dev/null +++ b/roles/openshift_sdn_master/tasks/main.yml @@ -0,0 +1,26 @@ +--- +- name: Install openshift-sdn-master + yum: + pkg: openshift-sdn-master + state: installed + +- name: Configure openshift-sdn-master settings + lineinfile: + dest: /etc/sysconfig/openshift-sdn-master + regexp: '^OPTIONS=' + line: "OPTIONS=\"-v={{ openshift_sdn_master_debug_level }}\"" + notify: + - restart openshift-sdn-master + +- name: Set openshift-sdn-master facts + include: "{{ role_path | dirname }}/openshift_common/tasks/set_facts.yml" + facts: + - section: sdn-master + option: debug_level + value: "{{ openshift_sdn_master_debug_level }}" + +- name: Enable openshift-sdn-master + service: + name: openshift-sdn-master + enabled: yes + state: started |