Stefan Dinescu 8c6cf0e629 Add playbook for installing Trident Netapp backend
Changes included:
- add separate playbook for configuring the netapp storage
  backend for kubernetes
- templates for trident are generated using the "tridentctl
  -n trident install --generate-custom-yaml"
- change to the push-docker-images role to support being
  imported for the trident playbook
- the YAML files generated from these templates are stored
  in /etc/kubernetes/trident/setup. This location can be
  customized using ansible overrides.
- merged the "upgrade_k8s_networking=true" and
  "upgrade_kubernetes=true" variables into the
  "mode" variable.

Changes made to the generated templates:
- changed default REST api port from 8000 to 8677; this was
  done due to port 8000 already being used by armada in
  StarlingX. The port can be changed at any time through
  ansible overrides
- allow configuration of any namespace for the pods to be
  launched in; the default is still "trident"
- images pulled by the trident pods are pulled from the
  local registry. They are pre-pulled to the local registry
  by the push-docker-images role
- add an imagePullSecret to the service account so images
  can be pulled from the local registry
- add additional nodeSelector in order to restrict the
  main trident service to launching only on controller
  nodes

Change-Id: I5ca9db9a17ba2cf8d1a000ab0b4e36656d8b290c
Co-Authored-By: Stefan Dinescu <stefan.dinescu@windriver.com>
Co-Authored-By: Ovidiu Poncea <ovidiu.poncea@windriver.com>
Depends-On: https://review.opendev.org/#/c/711907/
Story: 2007391
Task: 38985
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2020-03-17 16:06:47 +02:00

50 lines
1.0 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: 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}%{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}/*