forked from redhat-partner-solutions/crucible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Michele Costa <[email protected]> Co-authored-by: Charlie Wheeler-Robinson <[email protected]> Co-authored-by: Marek Kochanowski <[email protected]> Co-authored-by: Pablo Iranzo Gómez <[email protected]> Co-authored-by: Dave Cain <[email protected]> Co-authored-by: Hanen Garcia <[email protected]> Co-authored-by: Arnaldo Hernandez <[email protected]> Co-authored-by: William Caban Babilonia <[email protected]> Co-authored-by: Ajay Simha <[email protected]> Co-authored-by: DirectedSoul1 <[email protected]> Co-authored-by: Ali Bokhari <[email protected]> Co-authored-by: Alex Krzos <[email protected]> Co-authored-by: Nati Fridman <[email protected]> Co-authored-by: a1bokhari <[email protected]>
- Loading branch information
Showing
224 changed files
with
7,051 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
skip_list: | ||
- '106' | ||
- '204' | ||
- '207' | ||
- '208' | ||
- '301' | ||
- '306' | ||
- '601' | ||
- '602' | ||
- '701' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Bug report | ||
description: File a bug report | ||
labels: [bug] | ||
body: | ||
- type: textarea | ||
id: bug_description | ||
attributes: | ||
label: Bug description | ||
description: Please provide as much information as possible to describe the bug, your environment, steps to reproduce, the actual and the expected behaviour. | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: openshift_version | ||
attributes: | ||
label: OpenShift version | ||
description: What version of OpenShift was chosen to be deployed by the automation suite? | ||
options: | ||
- "4.6" | ||
- "4.7" | ||
- "4.8" | ||
- "other (provide in the description)" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: assisted_installer_version | ||
attributes: | ||
label: Assisted Installer version | ||
description: What version of Assisted Installer was chosen to be installed by the automation suite? | ||
options: | ||
- "v1.0.18.3" | ||
- "v1.0.19.3" | ||
- "v1.0.20.3" | ||
- "v1.0.21.3" | ||
- "v1.0.22.3" | ||
- "v1.0.23.2" | ||
- "v1.0.24.2" | ||
- "other (provide in the description)" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs_output | ||
attributes: | ||
label: Relevant log output | ||
description: | | ||
Please copy and paste any relevant log output produced by the automation suite. Remember to **remove all sensitive details** from the pasted logs. | ||
This field will be automatically formatted into code. | ||
render: shell | ||
- type: textarea | ||
id: inventory_file | ||
attributes: | ||
label: Inventory file | ||
description: | | ||
Please copy and paste the inventory file used with the automation suite. Remember to **remove all sensitive details** from the pasted inventory file. | ||
This field will be automatically formatted as yaml. | ||
render: yaml | ||
- type: checkboxes | ||
id: terms_limited_support | ||
attributes: | ||
label: Required statements | ||
description: Before submitting this issue, you must agree to the following statements. | ||
options: | ||
- label: I have removed all sensitive details from the attached logs and inventory files. | ||
required: true | ||
- label: I acknowledge that Red Hat does not provide commercial support for the content of this repository. | ||
required: true | ||
- label: I acknowledge that any assistance is offered purely on a best-effort basis, as resource permits. | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Feature proposal | ||
description: Submit a feature proposal | ||
labels: [enhancement] | ||
body: | ||
- type: textarea | ||
id: feature_description | ||
attributes: | ||
label: Feature description | ||
description: | | ||
Please describe the proposed feature in as much detail as possible. | ||
In addition, provide justification as to why the feature should be implemented. | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: terms_limited_support | ||
attributes: | ||
label: Required statements | ||
description: Before submitting this issue, you must agree to the following statements. | ||
options: | ||
- label: I acknowledge that Red Hat does not provide commercial support for the content of this repository. | ||
required: true | ||
- label: I acknowledge that any assistance is offered purely on a best-effort basis, as resource permits. | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: build | ||
prefix-development: chore | ||
include: scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Ansible Lint # feel free to pick your own name | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
|
||
|
||
steps: | ||
# Important: This sets up your GITHUB_WORKSPACE environment variable | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- uses: actions/[email protected] | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi | ||
- name: Lint Ansible Playbook | ||
# replace "master" with any valid ref | ||
uses: ansible/ansible-lint-action@master | ||
with: | ||
# [required] | ||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..) | ||
# or valid Ansible directories according to the Ansible role | ||
# directory structure. | ||
# If you want to lint multiple ansible files, use the following syntax | ||
# targets: | | ||
# playbook_1.yml | ||
# playbook_2.yml | ||
targets: | | ||
boot_iso.yml | ||
deploy_cluster.yml | ||
generate_rwn_iso.yml | ||
install_cluster.yml | ||
# [optional] | ||
# Arguments to override a package and its version to be set explicitly. | ||
# Must follow the example syntax. | ||
|
||
# [optional] | ||
# Arguments to be passed to the ansible-lint | ||
|
||
# Options: | ||
# -q quieter, although not silent output | ||
# -p parseable output in the format of pep8 | ||
# --parseable-severity parseable output including severity of rule | ||
# -r RULESDIR specify one or more rules directories using one or | ||
# more -r arguments. Any -r flags override the default | ||
# rules in ansiblelint/rules, unless -R is also used. | ||
# -R Use default rules in ansiblelint/rules in addition to | ||
# any extra | ||
# rules directories specified with -r. There is no need | ||
# to specify this if no -r flags are used | ||
# -t TAGS only check rules whose id/tags match these values | ||
# -x SKIP_LIST only check rules whose id/tags do not match these | ||
# values | ||
# --nocolor disable colored output | ||
# --exclude=EXCLUDE_PATHS | ||
# path to directories or files to skip. This option is | ||
# repeatable. | ||
# -c C Specify configuration file to use. Defaults to ".ansible-lint" | ||
args: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
repository_dispatch: # run manually | ||
types: [check-link] | ||
# push: | ||
# ... | ||
|
||
name: Broken Link Check | ||
jobs: | ||
check: | ||
name: Broken Link Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Broken Link Check | ||
uses: technote-space/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Crucible tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run-tests: | ||
name: Run tests | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install required dependencies | ||
run: | | ||
pip install ansible | ||
pip install -r requirements.txt | ||
- name: Run all tests using Ansible | ||
run: ansible-playbook tests/run_tests.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Merge requirements | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
no-fixup-commits-check: | ||
name: All fixup commits are squashed | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Test if all fixup commits are squashed | ||
uses: 13rac1/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.DS_Store | ||
*.txt | ||
*.pub | ||
!requirements.txt | ||
__stuff/** | ||
.history/ | ||
.vscode | ||
te?mp | ||
logs? | ||
*.swp | ||
*.pyc | ||
inventory.yml | ||
*.vault.yml | ||
*.vault.yaml | ||
fetched/ | ||
|
||
tests/validate_inventory/failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
repos: | ||
- repo: meta | ||
hooks: | ||
- id: check-useless-excludes | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
args: ['--unsafe'] | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"ignoreUrls": true, | ||
"findRepeatWords": true, | ||
"maxRequests": 5, | ||
"ignoreDigits": true, | ||
"lang": "en", | ||
"dictionary": [ | ||
"OpenShift", | ||
"yml", | ||
"Playbook", | ||
"Ansible", | ||
"Nginx", | ||
"ArgoCD", | ||
"settable", | ||
"hostvars", | ||
"vars", | ||
"endpoint", | ||
"playbook", | ||
"Repo" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners | ||
|
||
# This file lists active Maintainers of Crucible. See CONTRIBUTING.md for | ||
# more information on receiving Code Reviews from Maintainers. | ||
|
||
# These owners will be the default owners for everything in the repository. | ||
# Unless a later match takes precedence, they will be requested for review | ||
# when someone opens a Pull Request. | ||
* @redhat-partner-solutions/red-hat-crucible |
Oops, something went wrong.