diff options
author | ianl678 <ian@lochrin.me> | 2022-11-30 04:00:54 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-29 12:00:54 -0500 |
commit | e05ee91a0b0f17b3807dfb710c3f18d7be425d4d (patch) | |
tree | 0dae87a8906f06a6e14339649f9b9ea20016387b | |
parent | 32d94dffcf69712023d8f3922b3b9f3a3d732f3a (diff) | |
download | chef-e05ee91a0b0f17b3807dfb710c3f18d7be425d4d.tar.gz |
Added option to set release version when using activation keys (#13352)
* Added option to set release version when using activation keys
Co-authored-by: tpowell-progress <104777878+tpowell-progress@users.noreply.github.com>
Signed-off-by: Ian Lochrin <ian@lochrin.me>
Signed-off-by: Lochrin, Ian M <ian.lochrin@westpac.com.au>
Signed-off-by: Ian Lochrin <ian@lochrin.me>
Co-authored-by: Lochrin, Ian M <ian.lochrin@westpac.com.au>
Co-authored-by: tpowell-progress <104777878+tpowell-progress@users.noreply.github.com>
-rw-r--r-- | lib/chef/resource/rhsm_register.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/rhsm_register.rb b/lib/chef/resource/rhsm_register.rb index 04c8f475bb..c414f4dcde 100644 --- a/lib/chef/resource/rhsm_register.rb +++ b/lib/chef/resource/rhsm_register.rb @@ -92,7 +92,7 @@ class Chef property :release, [Float, String], - description: "Sets the operating system minor release to use for subscriptions for the system. Products and updates are limited to the specified minor release version. This is used only used with the `auto_attach` option. For example, `release '6.4'` will append `--release=6.4` to the register command.", + description: "Sets the operating system minor release to use for subscriptions for the system. Products and updates are limited to the specified minor release version. This is used with the `auto_attach` option, it may also be used with activation keys. For example, `release '6.4'` will append `--release=6.4` to the register command.", introduced: "17.8" action :register, description: "Register the node with RHSM." do @@ -205,6 +205,7 @@ class Chef command << "--name=#{Shellwords.shellescape(new_resource.system_name)}" if new_resource.system_name command << "--serverurl=#{Shellwords.shellescape(new_resource.server_url)}" if new_resource.server_url command << "--baseurl=#{Shellwords.shellescape(new_resource.base_url)}" if new_resource.base_url + command << "--release=#{Shellwords.shellescape(new_resource.release)}" if new_resource.release command << "--force" if new_resource.force return command.join(" ") |