forked from sous-chefs/percona
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
4,682 additions
and
3,514 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,19 @@ | ||
# https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root=true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# 2 space indentation | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Avoid issues parsing cookbook files later | ||
charset = utf-8 | ||
|
||
# Avoid cookstyle warnings | ||
trim_trailing_whitespace = 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 @@ | ||
use chefworkstation |
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 @@ | ||
* text=auto eol=lf |
Validating CODEOWNERS rules …
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 @@ | ||
* @sous-chefs/maintainers |
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,8 @@ | ||
--- | ||
daysUntilLock: 365 | ||
exemptLabels: [] | ||
lockLabel: false | ||
lockComment: > | ||
This thread has been automatically locked since there has not been | ||
any recent activity after it was closed. Please open a new issue for | ||
related bugs. |
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,78 @@ | ||
--- | ||
name: ci | ||
|
||
"on": | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-unit: | ||
uses: sous-chefs/.github/.github/workflows/[email protected] | ||
permissions: | ||
actions: write | ||
checks: write | ||
pull-requests: write | ||
statuses: write | ||
issues: write | ||
|
||
integration: | ||
needs: lint-unit | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: | ||
- almalinux-8 | ||
- almalinux-9 | ||
- centos-7 | ||
- centos-stream-8 | ||
- centos-stream-9 | ||
- debian-10 | ||
- debian-11 | ||
- ubuntu-1804 | ||
- ubuntu-2004 | ||
- ubuntu-2204 | ||
suite: | ||
- client-57 | ||
- client-80 | ||
- devel-57 | ||
- devel-80 | ||
- server-57 | ||
- server-80 | ||
- source-57 | ||
- source-80 | ||
- replication-57 | ||
- replication-80 | ||
- resources-57 | ||
- resources-80 | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Install Chef | ||
uses: actionshub/[email protected] | ||
# https://github.com/actions/virtual-environments/issues/181#issuecomment-610874237 | ||
- name: Disable apparmor for mysqld | ||
run: | | ||
set -x | ||
sudo apt-get -y remove mysql-server --purge | ||
sudo apt-get -y install apparmor-profiles | ||
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld | ||
- name: Dokken | ||
uses: actionshub/[email protected] | ||
env: | ||
CHEF_LICENSE: accept-no-persist | ||
KITCHEN_LOCAL_YAML: kitchen.dokken.yml | ||
with: | ||
suite: ${{ matrix.suite }} | ||
os: ${{ matrix.os }} | ||
- name: Print debug output on failure | ||
if: failure() | ||
run: | | ||
set -x | ||
sudo journalctl -l --since today | ||
sudo docker version | ||
sudo docker info | ||
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l" |
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,25 @@ | ||
--- | ||
name: Mark stale issues and pull requests | ||
|
||
"on": | ||
schedule: [cron: "0 0 * * *"] | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
close-issue-message: > | ||
Closing due to inactivity. | ||
If this is still an issue please reopen or open another issue. | ||
Alternatively drop by the #sous-chefs channel on the [Chef Community Slack](http://community-slack.chef.io/) and we'll be happy to help! | ||
Thanks, Sous-Chefs. | ||
days-before-close: 7 | ||
days-before-stale: 365 | ||
stale-issue-message: > | ||
Marking stale due to inactivity. | ||
Remove stale label or comment or this will be closed in 7 days. | ||
Alternatively drop by the #sous-chefs channel on the [Chef Community Slack](http://community-slack.chef.io/) and we'll be happy to help! | ||
Thanks, Sous-Chefs. |
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 |
---|---|---|
@@ -1,6 +1,49 @@ | ||
cookbooks/* | ||
*.rbc | ||
.config | ||
InstalledFiles | ||
pkg | ||
test/tmp | ||
test/version_tmp | ||
tmp | ||
.librarian/ | ||
.kitchen/ | ||
.kitchen.local.yml | ||
_Store | ||
*~ | ||
*# | ||
.#* | ||
\#*# | ||
*.un~ | ||
*.tmp | ||
*.bk | ||
*.bkup | ||
|
||
# editor files | ||
.idea | ||
.*.sw[a-z] | ||
|
||
# ruby/bundler/rspec files | ||
.ruby-version | ||
.ruby-gemset | ||
.rvmrc | ||
Gemfile.lock | ||
.bundle | ||
*.gem | ||
coverage | ||
spec/reports | ||
|
||
# YARD / rdoc artifacts | ||
.yardoc | ||
_yardoc | ||
doc/ | ||
rdoc | ||
|
||
# chef infra stuff | ||
Berksfile.lock | ||
.kitchen | ||
kitchen.local.yml | ||
vendor/ | ||
.coverage/ | ||
.zero-knife.rb | ||
Policyfile.lock.json | ||
|
||
# vagrant stuff | ||
.vagrant/ | ||
.vagrant.d/ |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
config: | ||
ul-indent: false # MD007 | ||
line-length: false # MD013 | ||
no-duplicate-heading: false # MD024 | ||
reference-links-images: false # MD052 |
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 @@ | ||
rules "~MD013", "~MD024" |
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,24 @@ | ||
--- | ||
PreCommit: | ||
TrailingWhitespace: | ||
enabled: true | ||
YamlLint: | ||
enabled: true | ||
required_executable: "yamllint" | ||
ChefSpec: | ||
enabled: true | ||
required_executable: "chef" | ||
command: ["chef", "exec", "rspec"] | ||
Cookstyle: | ||
enabled: true | ||
required_executable: "cookstyle" | ||
command: ["cookstyle"] | ||
MarkdownLint: | ||
enabled: false | ||
required_executable: "npx" | ||
command: ["npx", "markdownlint-cli2", "'**/*.md'"] | ||
include: ["**/*.md"] | ||
|
||
CommitMsg: | ||
HardTabs: | ||
enabled: 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 |
---|---|---|
@@ -1,29 +1,4 @@ | ||
--- | ||
AllCops: | ||
Exclude: | ||
- ".bundle/**/*" | ||
- ".kitchen/**/*" | ||
- "vendor/**/*" | ||
|
||
LineLength: | ||
Max: 80 | ||
Exclude: | ||
- "**/attributes/*.rb" | ||
- "**/metadata.rb" | ||
|
||
StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
||
StringLiteralsInInterpolation: | ||
EnforcedStyle: double_quotes | ||
|
||
PercentLiteralDelimiters: | ||
PreferredDelimiters: | ||
"%r": "()" | ||
"%w": "[]" # Arrays use brackets | ||
"%W": "[]" # Arrays use brackets | ||
|
||
SingleSpaceBeforeFirstArg: | ||
Enabled: false # too strict about metadata and certain formatting | ||
|
||
inherit_from: test/support/rubocop/enabled.yml | ||
inherit_from: test/support/rubocop/disabled.yml | ||
- 'Dangerfile' |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
{ | ||
"recommendations": [ | ||
"chef-software.chef", | ||
"rebornix.ruby", | ||
"editorconfig.editorconfig", | ||
"DavidAnson.vscode-markdownlint" | ||
] | ||
} |
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,15 @@ | ||
--- | ||
extends: default | ||
rules: | ||
line-length: | ||
max: 256 | ||
level: warning | ||
document-start: disable | ||
braces: | ||
forbid: false | ||
min-spaces-inside: 0 | ||
max-spaces-inside: 1 | ||
min-spaces-inside-empty: -1 | ||
max-spaces-inside-empty: -1 | ||
comments: | ||
min-spaces-from-content: 1 |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
source "https://supermarket.chef.io" | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata | ||
|
||
group :integration do | ||
cookbook 'test', path: 'test/fixtures/cookbooks/test' | ||
end |
Oops, something went wrong.