简体   繁体   English

在Windows节点上按需远程运行Chef-Client

[英]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. 寻找有关在Linux实例上远程执行Windows实例上运行Chef-Client的最佳实践的建议。 All instances are hosted in AWS. 所有实例都托管在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' 刀具winrm'ec2_public_dns''chef-client ...'-m -x管理员-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. 我认为您可以生成用于身份验证的TLS证书,但是我对此细节有些模糊。 https://github.com/chef/knife-windows#knife-windows-cert-generate has some details, but hopefully somewhere here can jump in with more knowledge. https://github.com/chef/knife-windows#knife-windows-cert-generate具有一些详细信息,但希望此处的某个地方可以提供更多知识。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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