Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect from chef-client to chef-server using packer chef-client provisioner Packer #10510

Closed
sushantifi opened this issue Jan 22, 2021 · 2 comments
Labels
community-supported-plugin denotes requests for plugins that are supported by the community, not by HashiCorp engineers provisioner/chef question remote-plugin/chef

Comments

@sushantifi
Copy link

i have been trying to install chef-client using packer in azure vm windows 2016 datacenter image but after creating image i checked in chef workstation that the image with chef-client configuration machine is not connected to chef server.

Is it necessary to perform knife command manually? but knife commands need private IP of vm so how can image with chef-client configuration will auto connect to the chef server?

Here is template code that i have tried:

{

"type": "chef-client",

"install_command": "powershell.exe -Command (New-Object System.Net.WebClient).DownloadFile('http://chef.io/chef/install.msi', 'C:\\Windows\\Temp\\chef.msi');Start-Process 'msiexec' -ArgumentList '/qb /i C:\\Windows\\Temp\\chef.msi' -NoNewWindow -Wait",

"Server_Url": "https://api.chef.io/organizations/xyz",

"Guest_Os_Type": "Windows",

"Chef_Environment": "",

"Ssl_Verify_Mode": "Verify_None",

"chef_license": "accept",

"Validation_Client_Name": "xyz94",

"Validation_Key_Path": "C:/packer/packer-repo/packer-master/DE/setup_files/xyz94.pem",

"Skip_Clean_Client": "True",

"Skip_Clean_Node": "False"

    

},
@ghost
Copy link

ghost commented Apr 20, 2021

This issue has been automatically migrated to hashicorp/packer-plugin-chef#7 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-chef#7.

@ghost
Copy link

ghost commented May 21, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators May 21, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community-supported-plugin denotes requests for plugins that are supported by the community, not by HashiCorp engineers provisioner/chef question remote-plugin/chef
Projects
None yet
Development

No branches or pull requests

3 participants