[packages/hiera] new, version 1.0.0

glen glen at pld-linux.org
Wed Apr 24 21:18:36 CEST 2013


commit d10b63a1bd8c37f74b351b93f6e074e14aaf576c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 24 22:18:03 2013 +0300

    new, version 1.0.0
    
    based on fedora hiera package
    a807fc3a78be43df17a70df3757b043309470f76

 hiera.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hiera.yaml | 13 +++++++++++++
 2 files changed, 68 insertions(+)
---
diff --git a/hiera.spec b/hiera.spec
new file mode 100644
index 0000000..828be54
--- /dev/null
+++ b/hiera.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+Summary:	A simple hierarchical database supporting plugin data sources
+Name:		hiera
+Version:	1.0.0
+Release:	1
+License:	Apache v2.0
+Group:		Applications/Databases
+Source0:	http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
+# We use a copy of misreleased 'newer' version of 1.0.0
+# http://projects.puppetlabs.com/issues/16621
+Source1:	%{name}.yaml
+URL:		http://projects.puppetlabs.com/projects/hiera/
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	rpm-rubyprov
+%if %{with tests}
+BuildRequires:	ruby-mocha
+BuildRequires:	ruby-rspec
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A simple hierarchical database supporting plugin data sources.
+
+%prep
+%setup -q
+cp -p %{SOURCE1} hiera.yaml
+
+%build
+%if %{with tests}
+ruby spec/spec_helper.rb
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{ruby_vendorlibdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p hiera.yaml $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT%{_var}/lib/hiera
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CHANGELOG LICENSE
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hiera.yaml
+%attr(755,root,root) %{_bindir}/hiera
+%{ruby_vendorlibdir}/hiera.rb
+%{ruby_vendorlibdir}/hiera
+%dir %{_var}/lib/hiera
diff --git a/hiera.yaml b/hiera.yaml
new file mode 100644
index 0000000..4f7e782
--- /dev/null
+++ b/hiera.yaml
@@ -0,0 +1,13 @@
+---
+:backend:
+  - yaml
+:hierarchy:
+  - defaults
+  - %{certname}
+  - %{environment}
+  - global
+
+:yaml:
+# datadir is empty here, so hiera uses its defaults, /var/lib/hiera
+# When specifying a datadir, make sure the path of the datadir exists
+  :datadir:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hiera.git/commitdiff/d10b63a1bd8c37f74b351b93f6e074e14aaf576c



More information about the pld-cvs-commit mailing list