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

Replace docs for hide-healthy with hide-by-mins #1417

Merged
merged 1 commit into from
Aug 13, 2020
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
2 changes: 1 addition & 1 deletion www/content/workstation/config_rb.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ settings](/workstation/config_rb_optional_settings/) that can be added to the
the `config.rb` file. The reasons for not adding them can vary. For
example, using `--yes` as a default in the `config.rb` file will cause
knife to always assume that "Y" is the response to any prompt, which may
lead to undesirable outcomes. Other settings, such as `--hide-healthy`
lead to undesirable outcomes. Other settings, such as `--hide-by-mins`
(used only with the `knife status` subcommand) or `--bare-directories`
(used only with the `knife list` subcommand) probably aren't used often
enough (and in the same exact way) to justify adding them to the
Expand Down
6 changes: 3 additions & 3 deletions www/content/workstation/config_rb_optional_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Many optional settings should not be added to the config.rb file. The
reasons for not adding them can vary. For example, using `--yes` as a
default in the config.rb file will cause knife to always assume that "Y"
is the response to any prompt, which may lead to undesirable outcomes.
Other settings, such as `--hide-healthy` (used only with the
Other settings, such as `--hide-by-mins` (used only with the
`knife status` subcommand) or `--bare-directories` (used only with the
`knife list` subcommand) probably aren't used often enough (and in the
same exact way) to justify adding them to the config.rb file. In
Expand Down Expand Up @@ -1224,9 +1224,9 @@ The following `knife ssh` settings can be added to the config.rb file:
The following `knife status` settings can be added to the config.rb
file:

`knife[:hide_healthy]`
`knife[:hide_by_mins]`

: Adds the the `--hide-healthy` option.
: Adds the the `--hide-by-mins` option.

`knife[:run_list]`

Expand Down
21 changes: 0 additions & 21 deletions www/content/workstation/knife_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ This subcommand has the following options:
within the last specified number of minutes. The number of minutes
to hide is provided as an integer, such as `--hide-by-mins 10`.

`-H`, `--hide-healthy`

: Hide nodes on which a Chef Infra Client run has occurred within the
previous hour.

Deprecated in favor of the `--hide-by-mins` option in Chef Client
12.6 and above.

`-l`, `--long`

: Display all attributes in the output and show the output as JSON.
Expand Down Expand Up @@ -95,19 +87,6 @@ to return something like:
27 hours ago, union-3-432.lxc, centos 7.3.1611.
```

On systems running Chef Client 12.5 or prior:

``` bash
knife status --hide-healthy
```

to return something like:

``` bash
1 hour ago, i-256f884f, ubuntu 12.04, ec2-67-202-63-102.compute-1.amazonaws.com, 67.202.63.102, role[web].
1 hour ago, i-a47823c9, ubuntu 10.04, ec2-174-129-127-206.compute-1.amazonaws.com, 184.129.143.111, role[lb].
```

**View status using a query**

{{% ws_knife_status_returned_by_query %}}
Expand Down