Browse Source

Merge pull request #1539 from joelddiaz/ansible-zabbix-rpm

package up lib_zabbix into its own subpackage
Joel Diaz 9 years ago
parent
commit
30b0cf9811
1 changed files with 18 additions and 0 deletions
  1. 18 0
      openshift-ansible.spec

+ 18 - 0
openshift-ansible.spec

@@ -74,6 +74,10 @@ cp -rp playbooks %{buildroot}%{_datadir}/ansible/%{name}/
 # openshift-ansible-roles install
 cp -rp roles %{buildroot}%{_datadir}/ansible/%{name}/
 
+# openshift-ansible-zabbix install (standalone lib_zabbix library)
+mkdir -p %{buildroot}%{_datadir}/ansible/zabbix
+cp -rp roles/lib_zabbix/library/* %{buildroot}%{_datadir}/ansible/zabbix/
+
 # openshift-ansible-filter-plugins install
 cp -rp filter_plugins %{buildroot}%{_datadir}/ansible_plugins/
 
@@ -117,6 +121,20 @@ Scripts to make it nicer when working with hosts that are defined only by metada
 
 
 # ----------------------------------------------------------------------------------
+# openshift-ansible-zabbix subpackage
+# ----------------------------------------------------------------------------------
+%package zabbix
+Summary:       Openshift and Atomic Enterprise Ansible Zabbix library
+Requires:      python-openshift-tools-zbxapi
+BuildArch:     noarch
+
+%description zabbix
+Python library for interacting with Zabbix with Ansible.
+
+%files zabbix
+%{_datadir}/ansible/zabbix
+
+# ----------------------------------------------------------------------------------
 # openshift-ansible-docs subpackage
 # ----------------------------------------------------------------------------------
 %package docs