Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ogrange/bento
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: chef/bento
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
Showing 340 changed files with 14,577 additions and 20,786 deletions.
10 changes: 10 additions & 0 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Documentation available at https://expeditor.chef.io/docs/getting-started/
---

# Slack channel in Chef Software slack to send notifications about build failures, etc
slack:
notify_channel: chef-found-notify

github:
# This deletes the GitHub PR branch after successfully merged into the release branch
delete_branch_on_merge: true
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Order is important. The last matching pattern has the most precedence.

* @chef/chef-workstation-owners @chef/chef-workstation-approvers @chef/chef-workstation-reviewers @Stromweld
.expeditor/ @chef/jex-team
*.md @chef/docs-team
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: � Bug Report
about: If something isn't working as expected �.
labels: "Status: Untriaged"
---

# Version

[Version of the project installed]

## Environment

[Details about the environment such as the Operating System, cookbook details, etc...]

## Scenario

[What you are trying to achieve and you can't?]

## Steps to Reproduce

[If you are filing an issue what are the things we need to do in order to repro your problem?]

## Expected Result

[What are you expecting to happen as the consequence of above reproduction steps?]

## Actual Result

[What actually happens after the reproduction steps?]
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Design Proposal
about: I have a significant change I would like to propose and discuss before starting
labels: "Status: Untriaged"
---

# When a Change Needs a Design Proposal

A design proposal should be opened any time a change meets one of the following qualifications:

- Significantly changes the user experience of a project in a way that impacts users.
- Significantly changes the underlying architecture of the project in a way that impacts other developers.
- Changes the development or testing process of the project such as a change of CI systems or test frameworks.

## Why We Use This Process

- Allows all interested parties (including any community member) to discuss large impact changes to a project.
- Serves as a durable paper trail for discussions regarding project architecture.
- Forces design discussions to occur before PRs are created.
- Reduces PR refactoring and rejected PRs.

---

<!--- Proposal description and rationale. -->

## Motivation

<!---
As a <<user_profile>>,
I want to <<functionality>>,
so that <<benefit>>.
-->

## Specification

<!--- A detailed description of the planned implementation. -->

## Downstream Impact

<!--- Which other tools will be impacted by this work? -->
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 🚀 Enhancement Request
about: I have a suggestion (and may want to implement it 🙂)!
labels: "Status: Untriaged"
---

# Describe the Enhancement

<!--- What you are trying to achieve that you can't? -->

## Describe the Need

<!--- What kind of user do you believe would utilize this enhancement, and how many users might want this functionality -->

## Current Alternative

<!--- Is there a current alternative that you can utilize to workaround the lack of this enhancement -->

## Can We Help You Implement This

<!--- The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need. -->
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 🤗 Support Question
about: If you have a question 💬, please check out our Slack!
---

We use GitHub issues to track bugs and feature requests. If you need help please post to our Mailing List or join the Chef Community Slack.

- Chef Community Slack at <http://community-slack.chef.io/>.
- Chef Mailing List <https://discourse.chef.io/>

Support issues opened here will be closed and redirected to Slack or Discourse.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
time: "06:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
19 changes: 19 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 180
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14
# Issues with these labels will never be considered stale
exemptLabels:
- WIP
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: This issue has been closed due to no activity please reopen if you believe this is still an issue.
105 changes: 105 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
on:
pull_request:

concurrency:
group: ci-build-${{ github.ref }}
cancel-in-progress: true

jobs:
markdown-lint:
uses: chef/github-workflows/.github/workflows/markdown-lint.yml@main

markdown-link-checker:
uses: chef/github-workflows/.github/workflows/markdown-link-checker.yml@main

yaml-lint:
uses: chef/github-workflows/.github/workflows/yaml-lint.yml@main

json-lint:
uses: chef/github-workflows/.github/workflows/json-lint.yml@main

xml-lint:
uses: chef/github-workflows/.github/workflows/xml-lint.yml@main

shellcheck-lint:
uses: chef/github-workflows/.github/workflows/shellcheck-lint.yml@main

powershell-lint:
uses: chef/github-workflows/.github/workflows/powershell-lint.yml@main

packer-iso-check:
uses: chef/github-workflows/.github/workflows/packer-iso-url-checker.yml@main
with:
EXCLUDE_REGEX: 'amazonlinux-2.*|rhel.*|sles.*|solaris.*|windows-11-aarch64.*,macos-*'

# packer-lint:
# uses: chef/github-workflows/.github/workflows/packer-lint.yml@main
# secrets: inherit

pkr-bld-amazonlinux-arm64:
uses: ./.github/workflows/pkr-bld-amazonlinux-arm64.yml
secrets: inherit

pkr-bld-amazonlinux-x64:
uses: ./.github/workflows/pkr-bld-amazonlinux-x64.yml
secrets: inherit

pkr-bld-hyperv-x64:
uses: ./.github/workflows/pkr-bld-hyperv-x64.yml
secrets: inherit

pkr-bld-parallels-arm64:
uses: ./.github/workflows/pkr-bld-parallels-arm64.yml
secrets: inherit

pkr-bld-parallels-x64:
uses: ./.github/workflows/pkr-bld-parallels-x64.yml
secrets: inherit

pkr-bld-qemu-arm64:
uses: ./.github/workflows/pkr-bld-qemu-arm64.yml
secrets: inherit

pkr-bld-qemu-x64:
uses: ./.github/workflows/pkr-bld-qemu-x64.yml
secrets: inherit

pkr-bld-virtualbox-arm64:
uses: ./.github/workflows/pkr-bld-virtualbox-arm64.yml
secrets: inherit

pkr-bld-virtualbox-x64:
uses: ./.github/workflows/pkr-bld-virtualbox-x64.yml
secrets: inherit

pkr-bld-vmware-arm64:
uses: ./.github/workflows/pkr-bld-vmware-arm64.yml
secrets: inherit

pkr-bld-vmware-x64:
uses: ./.github/workflows/pkr-bld-vmware-x64.yml
secrets: inherit

check_jobs_pass:
if: always()
needs:
- markdown-lint
- yaml-lint
- json-lint
- xml-lint
- powershell-lint
- shellcheck-lint
# - packer-lint
runs-on: Ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@main
with:
allowed-failures:
allowed-skips: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}

# pkr-bld-parallels-test:
# uses: ./.github/workflows/test-pkr-bld-parallels.yml
# secrets: inherit
33 changes: 33 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
on:
schedule:
- cron: '0 0 * * 0'

jobs:
markdown-lint:
uses: chef/github-workflows/.github/workflows/markdown-lint.yml@main

markdown-link-checker:
uses: chef/github-workflows/.github/workflows/markdown-link-checker.yml@main

yaml-lint:
uses: chef/github-workflows/.github/workflows/yaml-lint.yml@main

json-lint:
uses: chef/github-workflows/.github/workflows/json-lint.yml@main

xml-lint:
uses: chef/github-workflows/.github/workflows/xml-lint.yml@main

shellcheck-lint:
uses: chef/github-workflows/.github/workflows/shellcheck-lint.yml@main

powershell-lint:
uses: chef/github-workflows/.github/workflows/powershell-lint.yml@main

packer-iso-check:
uses: chef/github-workflows/.github/workflows/packer-iso-url-checker.yml@main

packer-lint:
uses: chef/github-workflows/.github/workflows/packer-lint.yml@main
secrets: inherit
63 changes: 63 additions & 0 deletions .github/workflows/pkr-bld-amazonlinux-arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
on:
workflow_call:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# PACKER_LOG: "1"

jobs:
aarch64:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os:
- amazonlinux-2023
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install Vagrant Virtualbox
run: |
brew tap hashicorp/tap
brew update
brew install qemu
brew install --cask hashicorp/tap/hashicorp-vagrant
brew install --cask virtualbox
- name: Install Chef
uses: actionshub/chef-install@3.0.0
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
version: latest
- name: Checkout
uses: actions/checkout@main
- name: Install Bento
run: |
eval "$(chef shell-init bash)"
gem build bento.gemspec
gem install bento-*.gem
- name: Bento build
run: |
eval "$(chef shell-init bash)"
export LOGNAME=$USER
./${{ matrix.os }}-aarch64-virtualbox-build.sh
ls -alh builds
cat builds/${{ matrix.os }}*-x86_64._metadata.json
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.os }}-virtualbox-x86_64"
path: |
builds/*.box
builds/*.json
overwrite: true
retention-days: 10
compression-level: 0 # no compression
- name: Bento Test
run: |
eval "$(chef shell-init bash)"
export LOGNAME=$USER
bento test
Loading