Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Document problems with Chef provisioner in README #102

Closed
wants to merge 1 commit into from
Closed

Document problems with Chef provisioner in README #102

wants to merge 1 commit into from

Conversation

vmrob
Copy link

@vmrob vmrob commented Sep 4, 2014

As Packer currently has no support for WinRM and all communication
with the VM is done over SSH in Cygwin, some Packer features fail to
work properly including Chef. While Chef works for many packages, it
doesn't work with those that make assumptions about available programs
in PATH such as msiexec.exe.

This patch addresses the issue by documenting the problem in README.md
with hopes that future developers will spend less time trying to solve
Chef-related issues.

This addresses the issue raised here: #101

As Packer currently has no support for WinRM and all communication
with the VM is done over SSH in Cygwin, some Packer features fail to
work properly including Chef. While Chef works for many packages, it
doesn't work with those that make assumptions about available programs
in PATH such as msiexec.exe.

This patch addresses the issue by documenting the problem in README.md
with hopes that future developers will spend less time trying to solve
Chef-related issues.
@kensykora
Copy link
Collaborator

Merging into develop. I'll fix the grammar error as well. Thanks for the PR!

@kensykora
Copy link
Collaborator

Merged 9824a4a

@kensykora kensykora closed this Nov 6, 2014
@stonith
Copy link
Contributor

stonith commented Nov 9, 2014

@vmrob I've gotten around the broken chef behaviour by executing chef via winrs via ssh. Dirty hack but seems to work for me.

          "type": "shell",
            "remote_path": "/cygdrive/c/Windows/Temp/script.bat",
            "execute_command": "winrs -u:vagrant -p:vagrant c:/windows/temp/script.bat",
            "scripts": [
                "./scripts/run-chef.bat",
                "./scripts/run-winupdates.bat"
            ]
        },

@kensykora
Copy link
Collaborator

@stonith I've needed to perform similar behaviors on Puppet as well.

@vmrob vmrob deleted the chef-debug branch November 18, 2014 19:05
dreamflash pushed a commit to dreamflash/packer-windows that referenced this pull request May 27, 2018
…erver-1803

Add Windows Server, version 1803
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants