2a5978d66c
This change will switch to PIGZ for file compression when working with more platform CPUs for faster run time. PIGZ is also added as the required file in playbook config. Test Plan: 1. Bring up StarlingX and verify that pigz utility is available. 2. Perform prestage for a subcloud with less than 4 platform cores. Verify that gzip compression is used. 3. Perform prestage for a subcloud with 4 platform cores. Verify that pigz compression is used. Story: 2009948 Task: 45045 Signed-off-by: BoYuan Chang <boyuan.chang@windriver.com> Change-Id: I77a999df87183946661ceac6845b986c1a009e2f
51 lines
1.1 KiB
RPMSpec
51 lines
1.1 KiB
RPMSpec
Name: playbookconfig
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: Ansible Playbooks for StarlingX Configurations
|
|
|
|
Group: base
|
|
License: Apache-2.0
|
|
URL: unknown
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Requires: ansible
|
|
Requires: pigz
|
|
Requires: pyparted
|
|
Requires: python
|
|
Requires: python2-netaddr
|
|
Requires: python2-ptyprocess
|
|
Requires: python2-pexpect
|
|
Requires: sshpass
|
|
Requires: sysinv
|
|
Requires: cgts-client
|
|
Requires: trident-installer
|
|
|
|
%description
|
|
This package contains playbooks used for configuring StarlingX.
|
|
|
|
%define local_stx_ansible_dir %{_datadir}/ansible/stx-ansible
|
|
%define local_etc_ansible /etc/ansible
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} PREFIX=%{local_stx_ansible_dir}
|
|
|
|
%post
|
|
cp %{local_stx_ansible_dir}/playbooks/ansible.cfg %{local_etc_ansible}
|
|
cp %{local_stx_ansible_dir}/playbooks/hosts %{local_etc_ansible}
|
|
chmod 644 %{local_etc_ansible}/ansible.cfg
|
|
chmod 644 %{local_etc_ansible}/hosts
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{local_stx_ansible_dir}/*
|