Go to file
Charles Short 0b059ab1cb Fix py3 compatibility
- In python3 subprocess returns <class 'bytes'> type,
  in python2 this was <type 'str'>. Add universal_newlines
  argument to subprocess.Popen() call to ensure we get a
  string.
- Fix the divide behavior in python3 where the result number is a float,
  by retyping float to an int as it is represented in python2.
- Use six.moves.configparser to provide python3 compatibility.
  As ConfigParser in python 2 has been renamed to configparser in python 3.
- Fix print statements to use the proper python syntax.

Testing:
- Build the package with required changed.
- Build new ISO and ran the default playbook.

Story: 2006796
Task: 42293

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Iedc368456b937262b321ff298dab5fcb57df688b
2021-06-17 10:59:46 -04:00
2021-06-17 10:59:46 -04:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00
2020-07-08 15:45:35 -04:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Playbooks

Execution environment

  • Unix like OS (recent Linux based distributions, MacOS, Cygwin)
  • Python 2.7

Additional Required Packages

The playbooks in this repo have been verified with the following versions of Ansible and StarlingX playbooks dependencies:

  • sshpass 1.06
  • python2-ptyprocess 0.5
  • python2-pexpect 4.6
  • python2-netaddr 0.7
  • ansible 2.7.5

Supported StarlingX Releases

The playbooks in this repo are compatible with the following StarlingX releases:

  • 20.01

Executing StarlingX Playbooks

Executing Bootstrap Playbook

Please refer to StarlingX Deployment Guides, section Configuration controller-0 of the respective system configuration for instructions on how to set up and execute the bootstrap playbook from another host.

References

Description
StarlingX Ansible Playbooks
Readme 34 MiB
Languages
Jinja 73%
Python 17.5%
Shell 6.5%
Smarty 2.9%