Skip to content

Commit

Permalink
Merge branch 'sous-chefs-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
PovilasV1 committed Oct 26, 2023
2 parents 2cd30ed + 56a90c4 commit 1dc16eb
Show file tree
Hide file tree
Showing 109 changed files with 4,682 additions and 3,514 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
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
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use chefworkstation
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @sous-chefs/maintainers
8 changes: 8 additions & 0 deletions .github/lock.yml
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.
78 changes: 78 additions & 0 deletions .github/workflows/ci.yml
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"
25 changes: 25 additions & 0 deletions .github/workflows/stale.yml
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.
51 changes: 47 additions & 4 deletions .gitignore
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/
48 changes: 0 additions & 48 deletions .kitchen.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .markdownlint-cli2.yaml
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
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rules "~MD013", "~MD024"
24 changes: 24 additions & 0 deletions .overcommit.yml
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
29 changes: 2 additions & 27 deletions .rubocop.yml
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'
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .vscode/extensions.json
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"
]
}
15 changes: 15 additions & 0 deletions .yamllint
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
6 changes: 5 additions & 1 deletion Berksfile
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
Loading

0 comments on commit 1dc16eb

Please sign in to comment.