Adding makefile for puppet-manifests
Change-Id: I67159e6454819c5d1c80f7ee965658991ddedaed Story: 2004043 Task: 27549 Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
This commit is contained in:
parent
a97f859216
commit
272f6a8605
|
@ -88,15 +88,10 @@ Platform puppet configuration files and manifests
|
||||||
%setup
|
%setup
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -m 755 -D bin/puppet-manifest-apply.sh %{buildroot}%{local_bindir}/puppet-manifest-apply.sh
|
make install \
|
||||||
install -m 755 -D bin/apply_network_config.sh %{buildroot}%{local_bindir}/apply_network_config.sh
|
BINDIR=%{buildroot}%{local_bindir} \
|
||||||
install -d -m 0755 %{buildroot}%{config_dir}
|
CONFIGDIR=%{buildroot}%{config_dir} \
|
||||||
install -m 640 etc/hiera.yaml %{buildroot}%{config_dir}
|
MODULEDIR=%{buildroot}%{module_dir}
|
||||||
cp -R hieradata %{buildroot}%{config_dir}
|
|
||||||
cp -R manifests %{buildroot}%{config_dir}
|
|
||||||
install -d -m 0755 %{buildroot}%{module_dir}
|
|
||||||
cp -R modules/platform %{buildroot}%{module_dir}
|
|
||||||
cp -R modules/openstack %{buildroot}%{module_dir}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
BINDIR ?= /usr/local/bin
|
||||||
|
CONFIGDIR ?= /etc/puppet
|
||||||
|
MODULEDIR ?= /usr/share/puppet/modules
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -m 755 -D bin/puppet-manifest-apply.sh $(BINDIR)/puppet-manifest-apply.sh
|
||||||
|
install -m 755 -D bin/apply_network_config.sh $(BINDIR)/apply_network_config.sh
|
||||||
|
install -d -m 0755 $(CONFIGDIR)
|
||||||
|
install -m 640 etc/hiera.yaml $(CONFIGDIR)/
|
||||||
|
cp -R hieradata $(CONFIGDIR)/
|
||||||
|
cp -R manifests $(CONFIGDIR)/
|
||||||
|
install -d -m 0755 $(MODULEDIR)
|
||||||
|
cp -R modules/platform $(MODULEDIR)/
|
||||||
|
cp -R modules/openstack $(MODULEDIR)/
|
Loading…
Reference in New Issue