Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add windows.optionalfeatures resource #4130

Merged
merged 3 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ vulnerabilityassessmentsettings
vulnmgmt
wil
xssmatchstatement
optionalfeature
43 changes: 41 additions & 2 deletions providers/os/resources/os.lr
Original file line number Diff line number Diff line change
Expand Up @@ -1387,8 +1387,14 @@ windows {
// Hotfixes installed on the computer
hotfixes() []windows.hotfix

// Information about Windows Server roles, role services, and features that are available for installation and installed on a specified server.
// Deprecated: use serverFeatures instead
features() []windows.feature
chris-rock marked this conversation as resolved.
Show resolved Hide resolved

// Information about Windows Server roles, role services, and features that are available for installation and installed on a specified server.
serverFeatures() []windows.serverFeature

// Information about optional features in a Windows image.
optionalFeatures() []windows.optionalFeature
}

// Windows hotfix resource
Expand All @@ -1406,8 +1412,26 @@ windows.hotfix {
installedBy string
}

// Deprecated: use serverFeature instead
// Windows feature resource
windows.feature {
private windows.feature {
init(name string)
// Feature full path
path string
// Command IDs of role, role service, or feature
name string
// Feature name
displayName string
// Feature description
description string
// Whether the feature is installed
installed bool
// Feature installation state
installState int
}

// Windows Server feature resource
private windows.serverFeature @defaults("name") {
init(name string)
// Feature full path
path string
Expand All @@ -1423,6 +1447,21 @@ windows.feature {
installState int
}

// Windows optional feature resource
private windows.optionalFeature @defaults("name") {
init(name string)
// Command ID of optional feature
name string
// Feature name
displayName string
// Feature description
description string
// Whether the feature is enabled
enabled bool
// Feature installation state
state int
}

// Windows Firewall resource
windows.firewall {
// Global firewall settings
Expand Down
Loading
Loading