https://github.com/soundcloud/knife-scrub
Knife plugin to scrub normal attributes
https://github.com/soundcloud/knife-scrub
Last synced: 4 months ago
JSON representation
Knife plugin to scrub normal attributes
- Host: GitHub
- URL: https://github.com/soundcloud/knife-scrub
- Owner: soundcloud
- License: apache-2.0
- Created: 2013-08-07T13:50:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T21:10:21.000Z (about 3 years ago)
- Last Synced: 2025-12-04T09:24:06.659Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 118
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# knife scrub
Chef Knife plugin to scrub normal attributes from chef-server.
## Installation
gem install knife-scrub
## Usage
The only objects `knife-scrub` can scrub so far are `normal` attributes
from previous roles or cookbook versions, as these might conflict with
existing `default` attributes.
```bash
$ knife scrub attributes nagios.services
```
It's possible to restrict the node search to a given pattern with `--query`:
```bash
$ knife scrub attributes -q roles:web nagios.services
```
In order to just display all nodes with normal attributes, use `--dry-run`:
```bash
$ knife scrub attributes -d nagios.services
```
The usual `--yes` / `-y` flag works as well:
```bash
$ knife scrub attributes -q roles:web -y nagios.services
```
## Authors
SoundCloud Inc., [Tobias Schmidt](mailto:ts@soundcloud.com)