Skip to content

Commit

Permalink
updated the docs with latest script changes
Browse files Browse the repository at this point in the history
Signed-off-by: vviveksharma <[email protected]>
  • Loading branch information
vviveksharma committed Jul 26, 2024
1 parent 83d2691 commit b90f984
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion content/install_chef_air_gap.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ custom template, and then modify the package and Ruby gem sources.
template file name, be sure to replace `airgap.erb` with the
template file you created during the last step.
4. Update `airgap.erb` to replace `omnitruck.chef.io` with the URL of
4. Update `airgap.erb` to replace `https://chefdownload-commercial.chef.io/install.sh?license_id=<YOUR LICENSE ID>` with the URL of
`install.sh` on your artifact store:
```ruby
install_sh="<%= knife_config[:bootstrap_url] ? knife_config[:bootstrap_url] : "http://packages.example.com/install.sh" %>"
```
enter your licenseId in the place of YOUR LICENSE ID
5. Still in your text editor, locate the following line near the bottom
of your `airgap.erb` file:
Expand Down
20 changes: 15 additions & 5 deletions content/upgrade_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,48 @@ The following sections describe the upgrade process for Chef Infra Client. If yo

To upgrade Chef Infra Client on a node from the command line, run the install script to install the latest Chef Infra Client release:

Please follow steps mentioned in this document [Chef Software Install Script](/install_omnibus/)

Linux, macOS, and Unix-based hosts:

- [Chef Software Install Script](/install_omnibus/)
```bash
curl -L https://chef.io/chef/install.sh | sudo bash
```

Windows hosts:

- [Chef Software Install Script](/install_omnibus/)
```powershell
. { iwr -useb https://chefdownload-commercial.chef.io/install.ps1?license_id=<YOUR LICENSE ID1> } | iex; install
```

### Specifying the Version to Install

The install script accepts arguments to allow installing specific versions of Chef Infra Client on systems.

Please follow steps mentioned in this document [Chef Software Install Script](/install_omnibus/)

Linux, macOS, and Unix-based hosts:

```bash
curl -L https://chef.io/chef/install.sh | sudo bash -s -- -v 17.9.26
curl -L https://chefdownload-commercial.chef.io/install.sh?license_id=<YOUR LICENSE ID> | sudo bash -s -- -v 17.9.26
```

Windows hosts:

```powershell
. { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install -version 17.9.26
. { iwr -useb https://chefdownload-commercial.chef.io/install.ps1?license_id=<YOUR LICENSE ID1> } | iex; install -version 17.9.26
```

### Upgrading Multiple Hosts with Knife

The `knife ssh` command in Chef Workstation can be used to execute the install script on multiple Linux, macOS, and Unix-based hosts at once:

```bash
knife ssh 'name:*' 'curl -L https://chef.io/chef/install.sh | sudo bash'
knife ssh 'name:*' 'curl -L https://chefdownload-commercial.chef.io/install.sh?license_id=<YOUR LICENSE ID> | sudo bash'
```

enter your licenseId in the place of YOUR LICENSE ID

## Cookbook-Based Upgrade

The [chef_client_updater](https://supermarket.chef.io/cookbooks/chef_client_updater) cookbook can be used to install or upgrade Chef Infra Client package on a node.

0 comments on commit b90f984

Please sign in to comment.