From 2512e40c8dd2895a051c112c4af825f9d2d49e9e Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Wed, 16 Dec 2015 01:39:07 +0300 Subject: [PATCH] fuel-library package cleanup This commit removes not required for deployment 'spec' and '.git' dirs. Also it adds 'Puppetfile' file for some debugging purposes. Change-Id: I1b3af8fb61542fcd0ccf01c13dc345c1687c0635 Closes-Bug: #1515988 --- specs/fuel-library8.0.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specs/fuel-library8.0.spec b/specs/fuel-library8.0.spec index 9a9033f159..053d77ec4d 100644 --- a/specs/fuel-library8.0.spec +++ b/specs/fuel-library8.0.spec @@ -67,6 +67,9 @@ mkdir -p %{buildroot}/usr/share/dockerctl mkdir -p %{buildroot}/sbin/ mkdir -p %{buildroot}/sbin/ cp -fr %{_builddir}/%{name}-%{version}/deployment/puppet/* %{buildroot}/etc/puppet/%{openstack_version}/modules/ +#LP1515988 +find %{buildroot}/etc/puppet/%{openstack_version}/modules -maxdepth 2 -type d \( -name .git -or -name spec \) -exec rm -rf '{}' + +cp -f %{_builddir}/%{name}-%{version}/deployment/Puppetfile %{buildroot}/etc/puppet/%{openstack_version}/modules/ #FUEL DOCKERCTL UTILITY install -m 0644 %{dockerctl_source}/dockerctl-alias.sh %{buildroot}/etc/profile.d/dockerctl.sh install -m 0755 %{dockerctl_source}/dockerctl %{buildroot}/usr/bin