1 Summary: Next-Generation Provisioning for bare metal and virtual servers
7 Source0: https://github.com/puppetlabs/Razor/archive/%{version}.tar.gz?/%{name}-%{version}.tgz
8 # Source0-md5: b7b595cfb9a523018e1139da2dd3ebd0
9 URL: https://github.com/puppetlabs/Razor/wiki
10 BuildRequires: rpm-rubyprov
11 BuildRequires: rpmbuild(macros) >= 1.656
14 Requires: ruby-bson_ext
15 Requires: ruby-colored
16 Requires: ruby-daemons
20 Requires: ruby-net-ssh
23 Requires: ruby-require_all
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Razor is an advanced provisioning application which can deploy both
31 bare-metal and virtual systems. It's aimed at solving the problem of
32 how to bring new metal into a state where your existing
33 DevOps/configuration management workflows can take it over.
35 Newly added machines in a Razor deployment will PXE-boot from a
36 special Razor Microkernel image, then check in, provide Razor with
37 inventory information, and wait for further instructions. Razor will
38 consult user-created policy rules to choose which preconfigured model
39 to apply to a new node, which will begin to follow the model's
40 directions, giving feedback to Razor as it completes various steps.
41 Models can include steps for handoff to a DevOps system or to any
42 other system capable of controlling the node (such as a vCenter server
43 taking possession of ESX systems).
46 %setup -q -n Razor-%{version}
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
53 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
54 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc README.md LICENSE CONTRIBUTING.md TESTING.md
62 %attr(755,root,root) %{_bindir}/razor
63 %attr(755,root,root) %{_bindir}/razor_daemon.rb
65 %attr(755,root,root) %{_bindir}/api.js
66 %attr(755,root,root) %{_bindir}/common.js
67 %attr(755,root,root) %{_bindir}/http_range_req.js
68 %attr(755,root,root) %{_bindir}/image_svc.js
69 %{ruby_vendorlibdir}/project_razor.rb
70 %{ruby_vendorlibdir}/project_razor