StarlingX Ansible Playbooks
Go to file
Jim Gauld 51a8df2f73 Exclude tmp files from rsync during subcloud prestage
Subcloud prestage operations were intermittently failing rsync
due to incompatible file permissions. Occasional ostree CLI
commands get issued which create transient files under the given
repo. .tmp directory and various files get created, renamed, and
deleted (e.g., .lock, tmp.X, summary). These files are owned by
root, whereas the repo's files are owned by sysadmin during rsync
operation on the target.

This update excludes the tmp pattern during the rsync operation
since they are not required. This also modifies file permissions
during the rsync to be ugo+rw.

Closes-Bug: 2092319

TEST PLAN:
- PASS: DC Scale lab batch subcloud prestage
- PASS: Prestage a subcloud running N release with N-1 load for install.
        Restore the subcloud to N-1 release from backup.
        Verify the restore is successful.
- PASS: Prestage a subcloud with an N-1 subcloud with a major release.
        Verify that the deployment of a major release is successful.
- PASS: Prestage a subcloud with a minor release.
        Verify that the deployment of the minor release is successful.

Change-Id: Ia63be9f4de552efbd1551857b0b5864c87879a23
Signed-off-by: Jim Gauld <James.Gauld@windriver.com>
2024-12-23 10:56:09 -05:00
examples Update SX to DX migration playbook to support IPsec 2024-08-08 14:09:52 -04:00
playbookconfig Exclude tmp files from rsync during subcloud prestage 2024-12-23 10:56:09 -05:00
.ansible-lint Fix zuul failures from new release of ansible-lint 2020-08-18 10:49:30 -05:00
.gitignore Fixing up tox -e cover for stx-config 2018-12-20 08:53:15 -06:00
.gitreview Added .gitreview 2019-06-15 14:03:07 -05:00
.yamllint Enable yamllint for ansible playbook .yml files 2019-06-24 13:27:26 -05:00
.zuul.yaml Zuul: Set all nodesets to debian-bullseye 2024-12-02 22:19:26 +00:00
CONTRIBUTORS.wrs Clean up repo import 2019-06-15 14:21:19 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:04:06 -04:00
debian_iso_image.inc Add debian_iso_image.inc file 2021-10-27 01:56:02 -04:00
debian_pkg_dirs Add debian package for playbookconfig 2021-09-29 18:32:15 +03:00
LICENSE Clean up repo import 2019-06-15 14:21:19 -05:00
README.rst starlingx/ansible-playbooks README improvement 2023-07-19 12:13:55 -03:00
requirements.txt Fix remote play for backup and restore 2022-08-17 14:51:35 -03:00
test-requirements.txt Fix tox ansible lint failure due to a new module 2022-01-10 11:04:20 -06:00
tox.ini Prestaging support for --for-sw-deploy/--for-install 2024-06-19 00:38:00 +00:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Ansible1 Playbooks

Execution environment

  • Unix like OS (recent Linux based distributions, MacOS, Cygwin)
  • Python 3.8 and later

Additional Required Packages

In addition to the pakages listed in requirements.txt and test-requirements.txt, the following packages are required to run the playbooks remotely:

  • python3-pexpect
  • python3-ptyprocess
  • sshpass

Supported StarlingX Releases

The playbooks are compatible with StarlingX R8.0 and later.

Executing StarlingX Playbooks

Bootstrap Playbook

For instructions on how to set up and execute the bootstrap playbook from another host, please refer to the StarlingX Documentation2, at Installation Guides, section Configure controller-0 of the respective system deployment type.

Developer Notes

This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest3.

References


  1. https://docs.ansible.com/ansible/latest/installation_guide↩︎

  2. https://docs.starlingx.io↩︎

  3. https://opendev.org/starlingx/manifest.git↩︎