简体   繁体   中英

Running chef-client remotely on demand on Windows nodes

Looking for advice on best practices for executing a chef-client run on Windows instances remotely from a Linux box. All instances are hosted in AWS.

Right now, I run the following, which does execute and behave as expected:

knife winrm 'ec2_public_dns' 'chef-client...' -m -x Administrator -P 'WindowsPass'

My question is, is there a better way of doing this? Ideally, I wouldn't have passwords anywhere and am wondering if this is possible.

I think you can generate a TLS certificate to use for authentication, but I'm a little fuzzy on the details. https://github.com/chef/knife-windows#knife-windows-cert-generate has some details, but hopefully somewhere here can jump in with more knowledge.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM