Commit Graph

20 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
Rajesh Tailor 9bf550c808 Fix typo from `sdtout` to `stdout`
Change-Id: I0619f231f90f25d6f52fa4def35048e89278f267
2022-06-27 22:10:20 +05:30
wes hayutin 37109c55aa Revert "Upgrade linters (ansible-lint v5)"
This reverts commit ac93fbbb47.

Reason for revert: breaks default install path for quickstart

Change-Id: I7d513d1bffdfd4293f199c38216ceb00343e06c5
2021-03-12 17:50:42 +00:00
Sorin Sbarnea ac93fbbb47 Upgrade linters (ansible-lint v5)
Change-Id: I75562efd62fff9739d32f8b1b92e7826120e9d1a
2021-03-11 13:48:54 +00:00
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
Sorin Sbarnea 1c6b947bf2 ansible-lint: removed skip of 206
- Fixes 206 errors and removed the skip.
- Also replaces revision with latest tag (pushed today)

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I69d75ba9de8ab0e91eb45fd4f9febfdb28cdcb3a
2019-10-25 17:15:40 +01: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
Matt Young 7aa19020bc Add /root/.cache/image-create to cleanup role
This commit clears the DIB cache on virthosts used in rdophase2.

Change-Id: I6b77d1b0f11d7240179f67cca6a84e7909d3fd20
2017-07-24 15:18:21 +00:00
Harry Rybacki 2367ff2f42 Remove hardcoded instances of `stack` from roles
We are moving away from hardcoding the stack user and opting to
replace it with `undercloud_user` and `non_root_user` as appropriate
to increase flexibility of OOOQ and OOOQ-Extras.

Change-Id: I7ea43a3fabab2c69fd4f3b5550ea5e4627443406
2017-02-26 18:57:26 +00:00
Jenkins b16cfa42d0 Merge "Fix ansible-lint.sh script for roles." 2017-02-23 17:01:25 +00:00
Gael Chamoulaud 7499fb582a Fix ansible-lint.sh script for roles.
- According to the ansible-lint documentation, we can pass a role directory as
  an argument. But due to https://github.com/willthames/ansible-lint/issues/210,
  the role directory has to contain a trailing slash!

- This patch fixes the following ansible-lint rules:
  * ANSIBLE0004: Git checkouts must contain explicit version
  * ANSIBLE0008: Deprecated sudo
  * ANSIBLE0011: All tasks should be named
  * ANSIBLE0014: Environment variables don't work as part of command
  * ANSIBLE0015: Using bare variables is deprecated

- Temporarily skipping the following ansible-lint rules (Fixes will be part of
  others patches):
  * ANSIBLE0007: Using command rather than an argument to e.g file
    We have a lot of 'rm' command and we should use file module instead
  * ANSIBLE0012: Commands should not change things if nothing needs doing
  * ANSIBLE0013: Use Shell only when shell functionality is required

Change-Id: I3d5591ea9fd1691e8115d7093db87781a08a6082
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-21 14:06:41 +01:00
Matt Young 5ceb760c03 virthost-full-cleanup: Fix typo in README.md
README.md contains the pre "Q to U" name.

Change-Id: Iea89be1aa748386215dc6372ecc0f6f616aa7040
2017-02-03 16:44:18 -05: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
Gael Chamoulaud db2136fa16 [virthost-full-cleanup] use 'become' instead of 'sudo'
- This patch avoids deprecations warning about using sudo/sudo_user
  instead of become/become_user.

Change-Id: I1f4909cd25ffbe3d53dd55118fe1af0052cf6b9a
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-01-03 15:30:38 +01:00
Attila Darazs b706801eac Cleanup and move files for virthost-full-cleanup 2016-11-21 11:50:17 +01:00