简体   繁体   English

我如何启动测试厨师服务器以使用厨师测试厨师自动化

[英]How can I spin up test chef-server to test chef-automate using chef

I have a scenario where I want to setup chef-automate using chef. 我有一种情况,我想使用Chef来设置Chef-automatic。 In order to test chef-automate I need chef-server. 为了测试厨师自动化,我需要厨师服务器。 I was able to do it on local machine, installing chef-server and chef-automate. 我能够在本地计算机上完成安装厨师服务器和厨师自动化。 In order to do that I need automate.license which I can get for local testing from chef website. 为此,我需要可以从厨师网站进行本地测试的automate.license Though it has one-month validity. 虽然有效期为一个月。

In order to do that using chef, I need to have a license in my test-kitchen so everytime I run test kitchen in can install chef-server and chef-automate server. 为了使用厨师做到这一点,我需要在测试厨房中拥有一个许可证,以便每次在其中运行测试厨房时,都可以安装厨师服务器和厨师自动化服务器。

I have chef enterprise license. 我有厨师企业许可证。 I thought if I can use data bags or chef-vault but nothing seems to work as it will expose enterprise license. 我以为我可以使用数据袋或库房,但似乎无济于事,因为它会暴露企业许可证。

How can I achieve this without having renewing license every month for testing? 在没有每月更新许可证的情况下如何实现?

After talking to slack support team on slack, I was suggested following ideas. 与松弛支持团队讨论松弛问题后,建议我遵循以下想法。 I thought it might help someone so posting it here. 我认为这可能会对某人有所帮助,因此将其发布在此处。

  1. Use enterprise key . 使用enterprise key It is not that special. 没什么特别的。 If someone gets that key they are able to use chef-automate and in that, case key can be regenerated. 如果有人获得了该密钥,他们便可以使用Chef-automate,这样就可以重新生成密钥。

  2. Try to get 1-node key from Account Manager which can be used specifically for testing. 尝试从帐户管理器获取1节点密钥,该密钥可以专门用于测试。

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

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