Skip to content

Commit

Permalink
Update Client 18.5 resources (#4299)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd authored Aug 22, 2024
1 parent a092723 commit 9e7bdda
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
11 changes: 10 additions & 1 deletion data/infra/resources/chef_client_systemd_timer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ syntax_full_code_block: |-
interval String # default value: "30min"
job_name String # default value: "chef-client"
run_on_battery true, false # default value: true
service_umask Integer, String
splay String # default value: "5min"
user String # default value: "root"
action Symbol # defaults to :add if not specified
Expand All @@ -33,7 +34,7 @@ syntax_full_properties_list:
the desired state."
- "`accept_chef_license`, `chef_binary_path`, `config_directory`, `cpu_quota`, `daemon_options`,
`delay_after_boot`, `description`, `environment`, `interval`, `job_name`, `run_on_battery`,
`splay`, and `user` are the properties available to this resource."
`service_umask`, `splay`, and `user` are the properties available to this resource."
actions_list:
:nothing:
shortcode: resources_common_actions_nothing.md
Expand Down Expand Up @@ -116,6 +117,14 @@ properties_list:
default_value: 'true'
description_list:
- markdown: Run the timer for Chef Infra Client if the system is on battery.
- property: service_umask
ruby_type: Integer, String
required: false
new_in: '18.5'
description_list:
- markdown: Fix umask for hardened systems that have a changed default umask. This
changes the chef-client umask so any files or folders are created with new umask.
Recommend setting to stand install default of 0022.
- property: splay
ruby_type: String
required: false
Expand Down
17 changes: 13 additions & 4 deletions data/infra/resources/powershell_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ resources_common_properties: true
resource: powershell_package
resource_description_list:
- markdown: Use the **powershell_package** resource to install and manage packages
with the PowerShell Package Manager for the Microsoft Windows platform. The **powershell_package**
via the PowerShell Package Manager for the Microsoft Windows platform. The powershell_package
resource requires administrative access, and a source must be configured in the
PowerShell Package Manager using the [**powershell_package_source**](/resources/powershell_package_source/) resource.
PowerShell Package Manager via the powershell_package_source resource.
resource_new_in: '12.16'
syntax_description: |
A **powershell_package** resource block manages a package on a node, typically by installing it. The simplest use of the **powershell_package** resource is:
Expand All @@ -20,6 +20,7 @@ syntax_description: |
which will install the named package using all of the default options and the default action (`:install`).
syntax_full_code_block: |-
powershell_package 'name' do
allow_clobber true, false # default value: false
options String, Array
package_name String, Array
skip_publisher_check true, false # default value: false
Expand All @@ -34,15 +35,23 @@ syntax_full_properties_list:
- "`name` is the name given to the resource block."
- "`action` identifies which steps Chef Infra Client will take to bring the node into
the desired state."
- "`options`, `package_name`, `skip_publisher_check`, `source`, `timeout`, and `version`
are the properties available to this resource."
- "`allow_clobber`, `options`, `package_name`, `skip_publisher_check`, `source`, `timeout`,
and `version` are the properties available to this resource."
actions_list:
:install:
markdown: Install a package. If a version is specified, install the specified
version of the package. (default)
:remove:
markdown: Remove a package.
properties_list:
- property: allow_clobber
ruby_type: true, false
required: false
default_value: 'false'
new_in: '18.5'
description_list:
- markdown: Overrides warning messages about installation conflicts about existing
commands on a computer.
- property: options
ruby_type: String, Array
required: false
Expand Down
2 changes: 1 addition & 1 deletion data/infra/resources/sysctl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ examples: |
sysctl 'kernel.sem' do
value '250 32000 100 128'
end
```
```

0 comments on commit 9e7bdda

Please sign in to comment.