Commit Graph

15 Commits

Author SHA1 Message Date
Ghanshyam Mann 72ea117f61 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: Ic549bdcc76a5e12a0104143fbe79fd0db2c866b0
2024-02-24 11:44:35 -08:00
Sandeep Yadav c8b9b7ea2b collect only specific network facts
When running a playbook with become: true, it also runs the facts
module with sudo, so ansible_user_dir will have the value of the
root user, rather than the expected home directory of the
ansible_ssh_user.

This can create issues in further tasks as ansible cache is used,
variables like ansible_user_dir can persist when next tasks run.

~~~
fatal: [undercloud]: FAILED! => {"changed": false, "error":
"[Errno 13] Permission denied:
'/root/tripleo_undercloud_install.sh'", "msg": "Unable to
 output shell script /root/tripleo_undercloud_install.sh:
 [Errno 13] Permission denied: '/root/tripleo_undercloud_install.sh'"}
~~~

With this patch, We are modfying making two changes:-

1) Removing not required become: true as interfaces information can be
captured as normal user.

2) Modifying the setup: module to only collect particular network
fact subsets and not even the min subset.

Change-Id: Ib167b88b03f01bb8945c53cd000b5fcac85dd320
2022-04-26 15:47:28 +05:30
Ronelle Landy 3d81be6217 Ensure locale is set to en_US.UTF-8 for baremetal systems
RHEL 8.4 guest images set the locale to LANG=en_US
which results in error during the deploy.
This role ensure that the locale includes
LANG=en_US.UTF-8 after the image boots.

Related-Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1935345
Change-Id: I06dd113e41d4b47e74663cc5c7bea74434cfa0fc
2021-03-04 16:43:30 +00:00
Ronelle Landy 9ba91813fc Move ens3 role to a baremetal-only playbook/role
Removing the ens3 network-scripts file is needed when
creating a Centos 8 VM for the undercloud in baremetal
deployments.

Change-Id: I28760c662b7aaf27582c46281855d79f874f369e
2020-07-02 10:42:46 -04:00
Sandeep Yadav 48f1cdb604 Update baremetal-prep-virthost for Rhel8/C8
Rhel/Centos8 don't have bridge-utils utility. We have to create
network bridge using nmcli tool. Added template for RHEL8/C8
- add-provisioning-interface-os-major-version-8.sh.j2 and modified
logic in playbook to call relevant template based on OS Version.

We also set the required firewalld commands to allow proper network
traffic flow from undercloud to baremetal overcloud nodes.

Change-Id: I5e56b387283fa8deff857bcf3a39a007a3d876a3
2020-06-16 21:46:15 +05:30
Zuul 2e001a3b11 Merge "lint: enabled whitespace fixes" 2020-01-11 21:29:34 +00:00
Sorin Sbarnea 16649df878 lint: bumping to latest versions
- run `pre-commit autoupdate` and fixed new issues
- adopted newer pre-commit config for ansible-lint 4.2.0+
- fixed some reported broken rules
- temporary disabled few rules, just to contain the size of of review,
  planning to drop/fix them in follow-ups.

Change-Id: I807ba4e919527be56c85ec72d0f4c7148f04e994
2020-01-05 19:36:36 +00:00
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
Ronelle Landy 536df41285 Add user variables to the virthost connection
Without these variables, the user connecting to
the virthost will default to stack- which will
not work with zuul.

Change-Id: Ieffcccabcc92ae99cf9672c9acb8c83f6657812a
2019-03-04 08:24:12 -05:00
Sorin Sbarnea 72141b7fab Adopt yamllint strict linting
Upgrades yamllint to latest version and adots use of its strict
checking.

Fix all known problems reported by yamllint so we don't have to do
that while touching these files.

Change-Id: I4bdc520d9e2aff086c4b463718bc1e053261a4f5
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-26 12:37:21 +00:00
Sorin Sbarnea cc82349363 Adapt code to newer code style (linters)
Makes those files conformant with current linting rules and avoids
linting errors when we need to toch them again.

Previous doing "pre-commit run -a" uncovered these errors, now is no
longer reporting any other errors.

Change-Id: Ie4cf229c8f11c2b55b323eac23c89483b26d3781
2018-11-16 12:42:51 +00:00
Harry Rybacki ce7982192f Integrate undercloud_user var into oooq-extras
We need to differentiate local_working_dir from working_dir
as well as decouple the stack user from `ansible_user` var.
Both of these are causing issues as we begin to automate
deployments in more environments.

- Cleanup duplicate variables that are consumed via extras-common
  - Note: extras-common depends on the common role in OOOQ
- Cleanup redundant var and superfluous quotes from overcloud-scale
  role
- Cleanup redundant comments in <role>/defaults/main.yml

Closes-bug: 1654574
Change-Id: I9c7a3166ed1fc5042c11e420223134ea912b45c5
2017-01-18 09:32:16 -05:00
Wes Hayutin 19933e5f03 Ensure that each role in extras has a dependency on extras-common
As more ansible variables are shared or reused across roles it is
important to define these variables in a role that is always
executed.  In this case that role is extras-common.

Note: This review is a blocker for https://review.openstack.org/#/c/418998/

Change-Id: I31fd13d7bcb98d73e7f16048c57c027d95faeec5
2017-01-18 09:32:16 -05:00
Harry Rybacki 3fdbe98f24 Cleanup unused portions of roles
We have built up a lot of cruft over the months within our roles.
This review aims to clean up the unused sections. Now that we have
each role within a single repository, ensuring a clean house
is even more important than when they were separate.

Change-Id: Ibb34b376c516a09ba0f7fdb02580e8803497fc50
2017-01-09 09:21:37 -05:00
Attila Darazs f8c2ad100e Cleanup and move files for baremetal-prep-virthost 2016-11-21 11:50:31 +01:00