Reputation: 21
I have existing servers (not bootstrapped by chef) and I want to remove some files on all these servers. I don't want to use a shell script but use chef instead. Should I install chef-client on each of those servers.
This is not about provisioning. More like you join a company and see existing servers and want to register those servers in chef so you can perform daily maintenance like start and stop services, cleaning up space.
Upvotes: 2
Views: 248
Reputation: 21226
If you just want to perform some tasks from time to time on the machines, then Chef is good but not the best choice. The point of Chef is that it runs as a service on target node and makes sure the node is in correct state.
I would recommend looking into ansible. It does not have anything to be installed on target machine and also no root privileges are needed. You just have to have ssh access to the machines from your workstation.
Upvotes: 0
Reputation: 54211
Yep, you can use knife bootstrap
to install chef-client and connect it to your Chef Server if you already have one, or use knife-solo
if you don't want to use a Chef Server. Chef only does what its recipes tell it, do you can use it for as much or as little as you want.
Upvotes: 2