Skip to content

Commit fcdaca3

Browse files
tpcarmanclaude
andcommitted
Add Certificate and Backup healthchecks; add Backup Settings section to vCenter report
- Add vCenter Server Backup Settings section (InfoLevel 3+) with Backup Schedule and Backup Job History subsections via REST API - Add Certificate healthcheck (Critical: EXPIRED/EXPIRING, Warning: EXPIRING_SOON) - Add Backup healthcheck (Warning: schedule deactivated, Critical: job failed) - Update report JSON with Certificate and Backup healthcheck defaults - Update README vCenter healthcheck table with Certificate and Backup rows - Update CHANGELOG with Certificate healthcheck entry - Add pre-release support to Release.yml (manifest Prerelease string, conditional tweet/bsky jobs) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b100de0 commit fcdaca3

File tree

6 files changed

+193
-146
lines changed

6 files changed

+193
-146
lines changed

.github/workflows/Release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
shell: pwsh
1818
run: |
1919
Install-Module -Name AsBuiltReport.Core -Repository PSGallery -Force
20+
- name: Set Prerelease string in manifest
21+
if: ${{ github.event.release.prerelease }}
22+
shell: pwsh
23+
run: |
24+
$tag = '${{ github.event.release.tag_name }}'
25+
if ($tag -match '-(.+)$') {
26+
$prerelease = $Matches[1]
27+
Update-ModuleManifest `
28+
-Path .\AsBuiltReport.VMware.vSphere\AsBuiltReport.VMware.vSphere.psd1 `
29+
-Prerelease $prerelease
30+
}
2031
- name: Test Module Manifest
2132
shell: pwsh
2233
run: |
@@ -27,6 +38,7 @@ jobs:
2738
Publish-Module -Path .\AsBuiltReport.VMware.vSphere -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose
2839
tweet:
2940
needs: publish-to-psgallery
41+
if: ${{ !github.event.release.prerelease }}
3042
runs-on: ubuntu-latest
3143
steps:
3244
- uses: Eomm/why-don-t-you-tweet@v2
@@ -41,13 +53,40 @@ jobs:
4153
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
4254
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
4355
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
56+
tweet-prerelease:
57+
needs: publish-to-psgallery
58+
if: ${{ github.event.release.prerelease }}
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: Eomm/why-don-t-you-tweet@v2
62+
# We don't want to tweet if the repository is not a public one
63+
if: ${{ !github.event.repository.private }}
64+
with:
65+
tweet-message: "[Pre-release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} is now available for testing! Install with -AllowPrerelease ${{ github.event.release.html_url }} #VMware #vSphere #AsBuiltReport #vExpert"
66+
env:
67+
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
68+
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
69+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
70+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
4471
bsky-post:
4572
needs: publish-to-psgallery
73+
if: ${{ !github.event.release.prerelease }}
4674
runs-on: ubuntu-latest
4775
steps:
4876
- uses: zentered/bluesky-post-action@v0.2.0
4977
with:
5078
post: "[New Release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}! Check out what's new! ${{ github.event.release.html_url }} #VMware #vSphere #AsBuiltReport #vExpert"
79+
env:
80+
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
81+
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}
82+
bsky-post-prerelease:
83+
needs: publish-to-psgallery
84+
if: ${{ github.event.release.prerelease }}
85+
runs-on: ubuntu-latest
86+
steps:
87+
- uses: zentered/bluesky-post-action@v0.2.0
88+
with:
89+
post: "[Pre-release] ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} is now available for testing! Install with -AllowPrerelease ${{ github.event.release.html_url }} #VMware #vSphere #AsBuiltReport #vExpert"
5190
env:
5291
BSKY_IDENTIFIER: ${{ secrets.BSKY_IDENTIFIER }}
5392
BSKY_PASSWORD: ${{ secrets.BSKY_PASSWORD }}

AsBuiltReport.VMware.vSphere/AsBuiltReport.VMware.vSphere.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"Mail": true,
3333
"Licensing": true,
3434
"Alarms": true,
35-
"Backup": true
35+
"Backup": true,
36+
"Certificate": true
3637
},
3738
"Cluster": {
3839
"HAEnabled": true,

0 commit comments

Comments
 (0)