Tee Ngo f4e26d7b48 Fix remote bootstrap from Windows control host
This commit addresses the failure due to encoding error which occurs
during the apply of puppet bootstrap manifest if the playbook is run
from a Windows control host.

In addition:
  - readme is updated to specify netaddr package dependency. This
    package is not included by default as part of Cygwin.
  - ansible related packages are removed from centos_iso_image.inc
    as they will be automatically pulled in per playbookconfig
    spec.

Closes-Bug: 1835950
Change-Id: I113a99c8f149681e01f99f6a4953999af44ea7da
Signed-off-by: Tee Ngo <tee.ngo@windriver.com>
2019-07-09 17:28:06 -04:00

47 lines
990 B
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: python
Requires: python2-netaddr
Requires: python2-ptyprocess
Requires: python2-pexpect
Requires: sshpass
Requires: sysinv
%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}%{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}/*