summaryrefslogtreecommitdiffstats
path: root/inventory/openshift-ansible-inventory.spec
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-03-24 14:57:28 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-03-24 14:57:28 -0400
commit38c621e71ba8fe5e351da184eaf16d589d948d93 (patch)
tree4a94cff42ab5aea52d3c7584b80ea0a2efd9a495 /inventory/openshift-ansible-inventory.spec
parent1c1df6a5733626865efc607d063f2a2a9b80499b (diff)
parent96729907e131f0cef6f37bcca062e9b092e67d29 (diff)
downloadopenshift-38c621e71ba8fe5e351da184eaf16d589d948d93.tar.gz
openshift-38c621e71ba8fe5e351da184eaf16d589d948d93.tar.bz2
openshift-38c621e71ba8fe5e351da184eaf16d589d948d93.tar.xz
openshift-38c621e71ba8fe5e351da184eaf16d589d948d93.zip
Merge pull request #122 from twiest/tito
Added tito build stuff
Diffstat (limited to 'inventory/openshift-ansible-inventory.spec')
-rw-r--r--inventory/openshift-ansible-inventory.spec37
1 files changed, 37 insertions, 0 deletions
diff --git a/inventory/openshift-ansible-inventory.spec b/inventory/openshift-ansible-inventory.spec
new file mode 100644
index 000000000..156b81b86
--- /dev/null
+++ b/inventory/openshift-ansible-inventory.spec
@@ -0,0 +1,37 @@
+Summary: OpenShift Ansible Inventories
+Name: openshift-ansible-inventory
+Version: 0.0.0
+Release: 1%{?dist}
+License: ASL 2.0
+URL: https://github.com/openshift/openshift-ansible
+Source0: %{name}-%{version}.tar.gz
+Requires: python2
+BuildRequires: python2-devel
+BuildArch: noarch
+
+%description
+Ansible Inventories used with the openshift-ansible scripts and playbooks.
+
+%prep
+%setup -q
+
+%build
+
+%install
+mkdir -p %{buildroot}/usr/share/ansible/inventory
+mkdir -p %{buildroot}/usr/share/ansible/inventory/aws
+mkdir -p %{buildroot}/usr/share/ansible/inventory/gce
+
+cp -p multi_ec2.py multi_ec2.yaml.example %{buildroot}/usr/share/ansible/inventory
+cp -p aws/ec2.py aws/ec2.ini %{buildroot}/usr/share/ansible/inventory/aws
+cp -p gce/gce.py %{buildroot}/usr/share/ansible/inventory/gce
+
+%files
+%dir /usr/share/ansible/inventory
+/usr/share/ansible/inventory/multi_ec2.py*
+/usr/share/ansible/inventory/multi_ec2.yaml.example
+/usr/share/ansible/inventory/aws/ec2.py*
+%config(noreplace) /usr/share/ansible/inventory/aws/ec2.ini
+/usr/share/ansible/inventory/gce/gce.py*
+
+%changelog