diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 000000000..1aaa6c394 --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,124 @@ +--- +on: + pull_request: + +jobs: + pkr-bld-amazonlinux-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-amazonlinux-x64.yml + secrets: inherit + + pkr-bld-hyperv-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-hyperv-x64.yml + secrets: inherit + + pkr-bld-parallels-arm64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-parallels-arm64.yml + secrets: inherit + + pkr-bld-parallels-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-parallels-x64.yml + secrets: inherit + + pkr-bld-qemu-arm64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-qemu-arm64.yml + secrets: inherit + + pkr-bld-qemu-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-qemu-x64.yml + secrets: inherit + + pkr-bld-virtualbox-arm64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-virtualbox-arm64.yml + secrets: inherit + + pkr-bld-virtualbox-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-virtualbox-x64.yml + secrets: inherit + + pkr-bld-vmware-arm64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-vmware-arm64.yml + secrets: inherit + + pkr-bld-vmware-x64: + # needs: + # - yaml-lint + # - json-lint + # - xml-lint + # - powershell-lint + # - shellcheck-lint + # - packer-iso-check + # - packer-lint + uses: ./.github/workflows/pkr-bld-vmware-x64.yml + secrets: inherit diff --git a/.github/workflows/ci-verify.yml b/.github/workflows/ci-verify.yml new file mode 100644 index 000000000..c56b11dfd --- /dev/null +++ b/.github/workflows/ci-verify.yml @@ -0,0 +1,55 @@ +--- +on: + pull_request: + 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 + secrets: inherit + + packer-lint: + uses: chef/github-workflows/.github/workflows/packer-lint.yml@main + secrets: inherit + + check_jobs_pass: + if: always() + needs: + - markdown-lint + - yaml-lint + - json-lint + - xml-lint + - powershell-lint + - shellcheck-lint + - packer-iso-check + - 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) }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 6aa5b000e..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,183 +0,0 @@ ---- -on: - pull_request: - -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 - secrets: inherit - - packer-lint: - uses: chef/github-workflows/.github/workflows/packer-lint.yml@main - secrets: inherit - - pkr-bld-amazonlinux-x64: -# needs: -# - yaml-lint -# - json-lint -# - xml-lint -# - powershell-lint -# - shellcheck-lint -# - packer-iso-check -# - packer-lint - uses: ./.github/workflows/pkr-bld-amazonlinux-x64.yml - secrets: inherit - - # pkr-bld-virtualbox-arm64: - # # needs: - # # - yaml-lint - # # - json-lint - # # - xml-lint - # # - powershell-lint - # # - shellcheck-lint - # # - packer-iso-check - # # - packer-lint - # uses: ./.github/workflows/pkr-bld-virtualbox-arm64.yml - # secrets: inherit - - pkr-bld-virtualbox-x64: - # needs: - # - yaml-lint - # - json-lint - # - xml-lint - # - powershell-lint - # - shellcheck-lint - # - packer-iso-check - # - packer-lint - uses: ./.github/workflows/pkr-bld-virtualbox-x64.yml - secrets: inherit - - # pkr-bld-parallels-arm64: - # # needs: - # # - yaml-lint - # # - json-lint - # # - xml-lint - # # - powershell-lint - # # - shellcheck-lint - # # - packer-iso-check - # # - packer-lint - # uses: ./.github/workflows/pkr-bld-parallels-arm64.yml - # secrets: inherit - - pkr-bld-parallels-x64: - # needs: - # - yaml-lint - # - json-lint - # - xml-lint - # - powershell-lint - # - shellcheck-lint - # - packer-iso-check - # - packer-lint - uses: ./.github/workflows/pkr-bld-parallels-x64.yml - secrets: inherit - - # pkr-bld-vmware-arm64: - # # needs: - # # - yaml-lint - # # - json-lint - # # - xml-lint - # # - powershell-lint - # # - shellcheck-lint - # # - packer-iso-check - # # - packer-lint - # uses: ./.github/workflows/pkr-bld-vmware-arm64.yml - # secrets: inherit - - pkr-bld-vmware-x64: - # needs: - # - yaml-lint - # - json-lint - # - xml-lint - # - powershell-lint - # - shellcheck-lint - # - packer-iso-check - # - packer-lint - uses: ./.github/workflows/pkr-bld-vmware-x64.yml - secrets: inherit - - pkr-bld-hyperv-x64: - # needs: - # - yaml-lint - # - json-lint - # - xml-lint - # - powershell-lint - # - shellcheck-lint - # - packer-iso-check - # - packer-lint - uses: ./.github/workflows/pkr-bld-hyperv-x64.yml - secrets: inherit - -# pkr-bld-qemu-arm64: -# # needs: -# # - yaml-lint -# # - json-lint -# # - xml-lint -# # - powershell-lint -# # - shellcheck-lint -# # - packer-iso-check -# # - packer-lint -# uses: ./.github/workflows/pkr-bld-qemu-arm64.yml -# secrets: inherit - - pkr-bld-qemu-x64: - # needs: - # - yaml-lint - # - json-lint - # - xml-lint - # - powershell-lint - # - shellcheck-lint - # - packer-iso-check - # - packer-lint - uses: ./.github/workflows/pkr-bld-qemu-x64.yml - secrets: inherit - - check_jobs_pass: - if: always() - needs: - - markdown-lint - - yaml-lint - - json-lint - - xml-lint - - powershell-lint - - shellcheck-lint - # - packer-iso-check - # - packer-lint - # - pkr-bld-amazonlinux-x64 - # - pkr-bld-hyperv-x64 - # - pkr-bld-parallels-arm64 - # - pkr-bld-parallels-x64 - # - pkr-bld-qemu-arm64 - # - pkr-bld-qemu-x64 - # - pkr-bld-virtualbox-arm64 - # - pkr-bld-virtualbox-x64 - # - pkr-bld-vmware-arm64 - # - pkr-bld-vmware-x64 - 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) }} diff --git a/.github/workflows/pkr-bld-amazonlinux-x64.yml b/.github/workflows/pkr-bld-amazonlinux-x64.yml index 49f6342f8..1dfc95d17 100644 --- a/.github/workflows/pkr-bld-amazonlinux-x64.yml +++ b/.github/workflows/pkr-bld-amazonlinux-x64.yml @@ -8,33 +8,27 @@ on: jobs: x86_64: runs-on: [self-hosted, X64, virtualbox] + strategy: + fail-fast: false + matrix: + os: + - amazonlinux-2 steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: ./AMZ_build_virtualbox-ovf.sh - name: Upload build artifact uses: actions/upload-artifact@main diff --git a/.github/workflows/pkr-bld-hyperv-x64.yml b/.github/workflows/pkr-bld-hyperv-x64.yml index acc926d76..43a637a1e 100644 --- a/.github/workflows/pkr-bld-hyperv-x64.yml +++ b/.github/workflows/pkr-bld-hyperv-x64.yml @@ -50,30 +50,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@main -# - name: Pull Change list -# id: changed-files -# uses: collin-miller/git-changesets@master -# - name: Verify Changed files -# id: verify-changed-files -# run: | -# echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt -# if grep ".*\.pkrvars.hcl" changed.txt; then -# echo "files_changed=true" >> $GITHUB_OUTPUT -# else -# echo "files_changed=false" >> $GITHUB_OUTPUT -# fi + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') - name: Setup Packer -# if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init -# if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: packer fmt -check -recursive . + - name: Packer Validate + run: packer validate -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build -# if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only="${{ matrix.provider }}.vm" -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@main diff --git a/.github/workflows/pkr-bld-parallels-arm64.yml b/.github/workflows/pkr-bld-parallels-arm64.yml index 09a9d7e50..cc8a25f6a 100644 --- a/.github/workflows/pkr-bld-parallels-arm64.yml +++ b/.github/workflows/pkr-bld-parallels-arm64.yml @@ -35,30 +35,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi - - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' - uses: hashicorp/setup-packer@main - with: - version: latest + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') +# - name: Setup Packer +# if: steps.verify-changed-files.outputs.files_changed == 'true' +# uses: hashicorp/setup-packer@main +# with: +# version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pkr-bld-parallels-x64.yml b/.github/workflows/pkr-bld-parallels-x64.yml index 2af687438..46c47215d 100644 --- a/.github/workflows/pkr-bld-parallels-x64.yml +++ b/.github/workflows/pkr-bld-parallels-x64.yml @@ -48,30 +48,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pkr-bld-qemu-arm64.yml b/.github/workflows/pkr-bld-qemu-arm64.yml index a8b6d5338..46696d9c1 100644 --- a/.github/workflows/pkr-bld-qemu-arm64.yml +++ b/.github/workflows/pkr-bld-qemu-arm64.yml @@ -35,30 +35,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi - - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' - uses: hashicorp/setup-packer@main - with: - version: latest + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') +# - name: Setup Packer +# if: steps.verify-changed-files.outputs.files_changed == 'true' +# uses: hashicorp/setup-packer@main +# with: +# version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var "qemu_accelerator=hvf" -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pkr-bld-qemu-x64.yml b/.github/workflows/pkr-bld-qemu-x64.yml index 1625605ad..eb3a82666 100644 --- a/.github/workflows/pkr-bld-qemu-x64.yml +++ b/.github/workflows/pkr-bld-qemu-x64.yml @@ -48,32 +48,24 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') - name: Download virtio-win.iso run: curl https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.229-1/virtio-win.iso -o packer_templates/win_answer_files/virtio-win.iso - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var "qemu_accelerator=hvf" -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@main diff --git a/.github/workflows/pkr-bld-virtualbox-arm64.yml b/.github/workflows/pkr-bld-virtualbox-arm64.yml index 48f6651f6..c78e18d86 100644 --- a/.github/workflows/pkr-bld-virtualbox-arm64.yml +++ b/.github/workflows/pkr-bld-virtualbox-arm64.yml @@ -35,30 +35,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi - - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' - uses: hashicorp/setup-packer@main - with: - version: latest + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') +# - name: Setup Packer +# if: steps.verify-changed-files.outputs.files_changed == 'true' +# uses: hashicorp/setup-packer@main +# with: +# version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@main diff --git a/.github/workflows/pkr-bld-virtualbox-x64.yml b/.github/workflows/pkr-bld-virtualbox-x64.yml index 8b581833f..87e0f864e 100644 --- a/.github/workflows/pkr-bld-virtualbox-x64.yml +++ b/.github/workflows/pkr-bld-virtualbox-x64.yml @@ -48,30 +48,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@main diff --git a/.github/workflows/pkr-bld-vmware-arm64.yml b/.github/workflows/pkr-bld-vmware-arm64.yml index 0c6bfaf6f..539b163ca 100644 --- a/.github/workflows/pkr-bld-vmware-arm64.yml +++ b/.github/workflows/pkr-bld-vmware-arm64.yml @@ -35,30 +35,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi - - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' - uses: hashicorp/setup-packer@main - with: - version: latest + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') +# - name: Setup Packer +# if: steps.verify-changed-files.outputs.files_changed == 'true' +# uses: hashicorp/setup-packer@main +# with: +# version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-aarch64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/pkr-bld-vmware-x64.yml b/.github/workflows/pkr-bld-vmware-x64.yml index e97262588..fe89c624f 100644 --- a/.github/workflows/pkr-bld-vmware-x64.yml +++ b/.github/workflows/pkr-bld-vmware-x64.yml @@ -48,30 +48,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@main - - name: Pull Change list - id: changed-files - uses: collin-miller/git-changesets@master - - name: Verify Changed files - id: verify-changed-files - run: | - echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt - if grep ".*\.pkrvars.hcl" changed.txt; then - echo "files_changed=true" >> $GITHUB_OUTPUT - else - echo "files_changed=false" >> $GITHUB_OUTPUT - fi + - name: iso-availability + shell: pwsh + run: Invoke-RestMethod -Method Head -Verbose -Uri $(Get-Content os_pkrvars/$('${{ matrix.os }}'.split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl | ConvertFrom-StringData).iso_url.Trim('"') - name: Setup Packer - if: steps.verify-changed-files.outputs.files_changed == 'true' uses: hashicorp/setup-packer@main with: version: latest - name: Packer Init - if: steps.verify-changed-files.outputs.files_changed == 'true' env: PACKER_GITHUB_API_TOKEN: "${{ secrets.PACKER_GITHUB_API_TOKEN }}" run: packer init -upgrade packer_templates + - name: Packer FMT + run: if packer fmt -check -recursive .; then exit 0; else echo "Some packer files need to be formatted, run 'packer fmt -recursive .' to fix"; exit 1; fi + - name: Packer Validate + run: packer validate -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Packer build - if: steps.verify-changed-files.outputs.files_changed == 'true' run: packer build -timestamp-ui -only=${{ matrix.provider }}.vm -var-file=os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates - name: Upload build artifact uses: actions/upload-artifact@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index e654dd7e3..bb82164f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,28 +8,28 @@ Markdown table generated at | | hyperv
x86_64 | parallels
x86_64 | parallels
aarch64 | qemu
x86_64 | qemu
aarch64 | virtualbox
x86_64 | virtualbox
aarch64 | vmware
x86_64 | vmware
aarch64 | |:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | almalinux-8 | | x | | x | | x | | x | | -| almalinux-9 | | x | | | | x | | x | | +| almalinux-9 | | x | x | | | x | | x | | | amazonlinux-2 | | na | na | na | na | x | | na | na | | amazonlinux-2022 | na | na | na | na | na | na | na | na | na | | centos-7 | | x | | x | | x | | x | | | centos-stream-8 | | x | | x | | x | | x | | | centos-stream-9 | | | | | | x | | x | | -| debian-10 | | | | | | x | | x | | -| debian-11 | | x | | | | x | | x | | -| fedora-36 | | x | | x | | x | | x | | -| fedora-37 | | x | | x | | x | | x | | +| debian-10 | | | x | | | x | | x | | +| debian-11 | | x | x | | | x | | x | | +| fedora-36 | | x | x | x | | x | | x | | +| fedora-37 | | x | x | x | | x | | x | | | freebsd-12 | | | na | | na | x | na | | na | | freebsd-13 | | | na | | na | x | na | | na | -| opensuse-leap-15 | | | na | | na | | na | x | na | +| opensuse-leap-15 | | | na | x | na | | na | x | na | | oraclelinux-7 | | x | | x | | x | | x | | | oraclelinux-8 | | | | x | | x | | x | | -| oraclelinux-9 | | x | | | | x | | x | | +| oraclelinux-9 | | x | x | | | x | | x | | | rhel-7 | | | | | | | | | | | rhel-8 | | | | | | | | | | | rhel-9 | | | | | | | | | | | rockylinux-8 | | x | | x | | x | | x | | -| rockylinux-9 | | x | | | | x | | x | | -| scientificlinux-7 | | x | na | | na | x | na | x | na | +| rockylinux-9 | | x | x | | | x | | x | | +| scientificlinux-7 | | x | na | x | na | x | na | x | na | | sles-12 | | | na | | na | | na | | na | | sles-13 | | | na | | na | | na | | na | | solaris-11 | | | na | | na | | na | | na | @@ -37,9 +37,9 @@ Markdown table generated at | springdalelinux-8 | | x | na | x | na | x | na | x | na | | springdalelinux-9 | | x | na | | na | x | na | x | na | | ubuntu-18.04 | | x | | | | x | | x | | -| ubuntu-20.04 | | | | | | | | | | -| ubuntu-22.04 | | x | | x | | x | | | | -| ubuntu-22.10 | | x | | x | | x | | x | | +| ubuntu-20.04 | | | x | | | | | | | +| ubuntu-22.04 | | x | x | x | | x | | x | | +| ubuntu-22.10 | | x | x | x | | x | | x | | | ubuntu-23.04 | na | na | na | na | na | na | na | na | na | | windows-10 | x | x | na | | na | x | na | | na | | windows-10gen2 | | na | na | na | na | na | na | na | na | @@ -50,7 +50,25 @@ Markdown table generated at | windows-2019 | x | x | na | | na | x | na | | na | | windows-2022 | x | x | na | | na | x | na | | na | -## [unreleased] (2023-02-22) +## [unreleased] (2023-03-05) + +## [v202303.05.0] (2023-03-05) + +### Fixes and updates + +- added aarch64 builds and runner + +### Todo + +- Fix failing builds +- Finish removal of deprecated chef-solo provider to powershell provider for windows +- migrate from http directory for hosting files to cd_files in source templates + - This makes all builds compatable with hyper-v gen 2 which removes floppy disk capability + - This also makes things universal for Virtualbox 6.1 to 7.x due to latter requiring extra config for guests on NAT to be able to connect to host +- Update pipelines to only run on updated pkrvars files +- Look into making all build uefi default builds +- Create CD pipeline to upload vagrant boxes after PR is merged +- Create CD pipeline to build and upload new versions of vagrant boxes once every 3 months with the latest patches ## [v202302.22.0] (2023-02-22) diff --git a/os_pkrvars/centos/centos-stream-9-x86_64.pkrvars.hcl b/os_pkrvars/centos/centos-stream-9-x86_64.pkrvars.hcl index b8eff55a4..6275223b8 100644 --- a/os_pkrvars/centos/centos-stream-9-x86_64.pkrvars.hcl +++ b/os_pkrvars/centos/centos-stream-9-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "file:https://mirror.stream.centos.org/9-stream/BaseOS parallels_guest_os_type = "centos" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-7-aarch64.pkrvars.hcl b/os_pkrvars/rhel/rhel-7-aarch64.pkrvars.hcl index 692d2f395..8e6b4003a 100644 --- a/os_pkrvars/rhel/rhel-7-aarch64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-7-aarch64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-7-x86_64.pkrvars.hcl b/os_pkrvars/rhel/rhel-7-x86_64.pkrvars.hcl index 4b37d60bc..d3f3d5372 100644 --- a/os_pkrvars/rhel/rhel-7-x86_64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-7-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-8-aarch64.pkrvars.hcl b/os_pkrvars/rhel/rhel-8-aarch64.pkrvars.hcl index 0563b97e9..ffb0f9cef 100644 --- a/os_pkrvars/rhel/rhel-8-aarch64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-8-aarch64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-8-x86_64.pkrvars.hcl b/os_pkrvars/rhel/rhel-8-x86_64.pkrvars.hcl index 4f37b78de..54368f658 100644 --- a/os_pkrvars/rhel/rhel-8-x86_64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-8-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/8ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-9-aarch64.pkrvars.hcl b/os_pkrvars/rhel/rhel-9-aarch64.pkrvars.hcl index e3d632afd..83c8224ff 100644 --- a/os_pkrvars/rhel/rhel-9-aarch64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-9-aarch64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] diff --git a/os_pkrvars/rhel/rhel-9-x86_64.pkrvars.hcl b/os_pkrvars/rhel/rhel-9-x86_64.pkrvars.hcl index 61e6f486c..efda20597 100644 --- a/os_pkrvars/rhel/rhel-9-x86_64.pkrvars.hcl +++ b/os_pkrvars/rhel/rhel-9-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "1b8004961150b60f6c5ec3f25139d3217eee55707cf9fa19e8269 parallels_guest_os_type = "rhel" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/9ks.cfg"] diff --git a/os_pkrvars/scientificlinux/scientificlinux-7-x86_64.pkrvars.hcl b/os_pkrvars/scientificlinux/scientificlinux-7-x86_64.pkrvars.hcl index 37eebacd1..90f2d7d52 100644 --- a/os_pkrvars/scientificlinux/scientificlinux-7-x86_64.pkrvars.hcl +++ b/os_pkrvars/scientificlinux/scientificlinux-7-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "7ac643e164c4a0da0b9f33411c68368cf908e0c34254904044957 parallels_guest_os_type = "centos" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel/7ks.cfg"] diff --git a/os_pkrvars/sles/sles-12-x86_64.pkrvars.hcl b/os_pkrvars/sles/sles-12-x86_64.pkrvars.hcl index 7ba7a51cd..a1e7e7266 100644 --- a/os_pkrvars/sles/sles-12-x86_64.pkrvars.hcl +++ b/os_pkrvars/sles/sles-12-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "5a12561f8c2869bca4f820787971f3b92f44dce77442906115cd2 parallels_guest_os_type = "suse" vbox_guest_os_type = "SUSE_LE_64" vmware_guest_os_type = "sles12-64" -boot_command = ["linux netdevice=eth0 netsetup=dhcp install=cd:/ lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/12-autoinst.xml textmode=1"] +boot_command = ["linux netdevice=eth0 netsetup=dhcp install=cd:/ lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/12-autoinst.xml textmode=1"] diff --git a/os_pkrvars/sles/sles-15-x86_64.pkrvars.hcl b/os_pkrvars/sles/sles-15-x86_64.pkrvars.hcl index d0cca8245..4cb327e06 100644 --- a/os_pkrvars/sles/sles-15-x86_64.pkrvars.hcl +++ b/os_pkrvars/sles/sles-15-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "c0ceebe14d23c6c9484a1594fc5159225292f0847f7f15046f45a parallels_guest_os_type = "suse" vbox_guest_os_type = "SUSE_LE_64" vmware_guest_os_type = "sles15-64" -boot_command = ["linux netdevice=eth0 netsetup=dhcp install=cd:/ lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/15-autoinst.xml textmode=1"] +boot_command = ["linux netdevice=eth0 netsetup=dhcp install=cd:/ lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/sles/15-autoinst.xml textmode=1"] diff --git a/os_pkrvars/solaris/solaris-11-x86_64.pkrvars.hcl b/os_pkrvars/solaris/solaris-11-x86_64.pkrvars.hcl index 928103568..19dec5cc2 100644 --- a/os_pkrvars/solaris/solaris-11-x86_64.pkrvars.hcl +++ b/os_pkrvars/solaris/solaris-11-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "sha256:e3a29507e583acbc0b912f371c8f328fea7cb6257d587c parallels_guest_os_type = "solaris" vbox_guest_os_type = "Solaris11_64" vmware_guest_os_type = "solaris11-64" -boot_command = ["efalserootsolariswhile (true); do sleep 5; test -f /a/etc/sudoers && grep -v \"vagrant\" \"/a/etc/sudoers\" 2> /dev/null && echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /a/etc/sudoers && break ; done &while (true); do grep \"You may wish to reboot\" \"/var/svc/log/application-auto-installer:default.log\" 2> /dev/null && reboot; sleep 10; done &sleep 5; curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/default.xml -o default.xml;curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/profile.xml -o profile.xml;cp default.xml /system/volatile/ai.xml;mkdir /system/volatile/profile;cp profile.xml /system/volatile/profile/profile.xml;svcadm enable svc:/application/auto-installer:default;tail -f /var/svc/log/application-auto-installer\\:default.log"] +boot_command = ["efalserootsolariswhile (true); do sleep 5; test -f /a/etc/sudoers && grep -v \"vagrant\" \"/a/etc/sudoers\" 2> /dev/null && echo \"vagrant ALL=(ALL) NOPASSWD: ALL\" >> /a/etc/sudoers && break ; done &while (true); do grep \"You may wish to reboot\" \"/var/svc/log/application-auto-installer:default.log\" 2> /dev/null && reboot; sleep 10; done &sleep 5; curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/default.xml -o default.xml;curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/solaris/profile.xml -o profile.xml;cp default.xml /system/volatile/ai.xml;mkdir /system/volatile/profile;cp profile.xml /system/volatile/profile/profile.xml;svcadm enable svc:/application/auto-installer:default;tail -f /var/svc/log/application-auto-installer\\:default.log"] diff --git a/os_pkrvars/springdalelinux/springdalelinux-7-x86_64.pkrvars.hcl b/os_pkrvars/springdalelinux/springdalelinux-7-x86_64.pkrvars.hcl index 09e5f1725..3c35a3201 100644 --- a/os_pkrvars/springdalelinux/springdalelinux-7-x86_64.pkrvars.hcl +++ b/os_pkrvars/springdalelinux/springdalelinux-7-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "ad47807e17f796bdca35bb3ec5b65f1340d43b698ee04dcf60fae parallels_guest_os_type = "centos" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/7ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/7ks.cfg"] diff --git a/os_pkrvars/springdalelinux/springdalelinux-8-x86_64.pkrvars.hcl b/os_pkrvars/springdalelinux/springdalelinux-8-x86_64.pkrvars.hcl index 1d2ee7fe5..779e07f5f 100644 --- a/os_pkrvars/springdalelinux/springdalelinux-8-x86_64.pkrvars.hcl +++ b/os_pkrvars/springdalelinux/springdalelinux-8-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "7535d3eadf5d60d12a026ccaf5f1235c660cc985bc1e8b7502a99 parallels_guest_os_type = "centos" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/8ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/8ks.cfg"] diff --git a/os_pkrvars/springdalelinux/springdalelinux-9-x86_64.pkrvars.hcl b/os_pkrvars/springdalelinux/springdalelinux-9-x86_64.pkrvars.hcl index 0768a7e18..16fe6ce5d 100644 --- a/os_pkrvars/springdalelinux/springdalelinux-9-x86_64.pkrvars.hcl +++ b/os_pkrvars/springdalelinux/springdalelinux-9-x86_64.pkrvars.hcl @@ -6,4 +6,4 @@ iso_checksum = "a282a61dfd9ac587aa635688ec3eae8ac95524094dac0355543c3 parallels_guest_os_type = "centos" vbox_guest_os_type = "RedHat_64" vmware_guest_os_type = "centos-64" -boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/9ks.cfg"] +boot_command = [" inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/springdalelinux/9ks.cfg"] diff --git a/os_pkrvars/ubuntu/ubuntu-22.04-aarch64.pkrvars.hcl b/os_pkrvars/ubuntu/ubuntu-22.04-aarch64.pkrvars.hcl index 40dac8936..f540f1724 100644 --- a/os_pkrvars/ubuntu/ubuntu-22.04-aarch64.pkrvars.hcl +++ b/os_pkrvars/ubuntu/ubuntu-22.04-aarch64.pkrvars.hcl @@ -1,8 +1,8 @@ os_name = "ubuntu" os_version = "22.04" os_arch = "aarch64" -iso_url = "http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso" -iso_checksum = "bc5a8015651c6f8699ab262d333375d3930b824f03d14ae51e551d89d9bb571c" +iso_url = "https://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.2-live-server-arm64.iso" +iso_checksum = "file:https://cdimage.ubuntu.com/releases/22.04/release/SHA256SUMS" hyperv_generation = 2 parallels_guest_os_type = "ubuntu" vbox_guest_os_type = "Ubuntu_64" diff --git a/os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl b/os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl index 47fb44d0b..da713f287 100644 --- a/os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl +++ b/os_pkrvars/ubuntu/ubuntu-22.04-x86_64.pkrvars.hcl @@ -1,10 +1,10 @@ os_name = "ubuntu" os_version = "22.04" os_arch = "x86_64" -iso_url = "http://releases.ubuntu.com/jammy/ubuntu-22.04.1-live-server-amd64.iso" -iso_checksum = "sha256:10f19c5b2b8d6db711582e0e27f5116296c34fe4b313ba45f9b201a5007056cb" +iso_url = "https://releases.ubuntu.com/jammy/ubuntu-22.04.2-live-server-amd64.iso" +iso_checksum = "file:https://releases.ubuntu.com/jammy/SHA256SUMS" hyperv_generation = 2 parallels_guest_os_type = "ubuntu" vbox_guest_os_type = "Ubuntu_64" vmware_guest_os_type = "ubuntu-64" -boot_command = ["cset gfxpayload=keeplinux /casper/vmlinuz quiet autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/ ---initrd /casper/initrdboot"] +boot_command = ["cset gfxpayload=keeplinux /casper/vmlinuz quiet autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu/ ---initrd /casper/initrdboot"] diff --git a/os_pkrvars/windows/windows-11-x86_64.pkrvars.hcl b/os_pkrvars/windows/windows-11-x86_64.pkrvars.hcl index fce6018c0..42d7a349f 100644 --- a/os_pkrvars/windows/windows-11-x86_64.pkrvars.hcl +++ b/os_pkrvars/windows/windows-11-x86_64.pkrvars.hcl @@ -8,4 +8,4 @@ iso_checksum = "sha256:e8b1d2a1a85a09b4bf6154084a8be8e3c814894a15a7bc parallels_guest_os_type = "win-11" vbox_guest_os_type = "Windows11_64" vmware_guest_os_type = "windows9srv-64" -boot_command = ["reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1exit"] +boot_command = ["reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassTPMCheck /d 1reg add HKLM\\SYSTEM\\Setup\\LabConfig /t REG_DWORD /v BypassSecureBootCheck /d 1exit"]