-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Conversation
If anyone can provide further testing and feedback for this PR, I would appreciate it. |
+1 This seems much more stable than the old version. |
I'm going to try this out. The current add-on gets chocolatey installed, but it totally hangs on dialog. |
The module does not peg to a particular version of chocolatey. It's There are also logs written to c:\ Sent from my phone. Please excuse typos and brevity, but never text speak.
|
I'll try this out. If I place this module in the root of my project in a library folder, does it take precedence over the built-in "old" version? Of course, I can just check out the full branch if that's what everyone else does... |
@ryanwalls yes, it will take precedence if you do that. |
It seems to depend on where your playbook is, unless you set the library On Mon, Apr 20, 2015 at 3:28 PM, ryanwalls [email protected] wrote:
|
FYI, using this module fixed the hanging issue for me. |
@elventear I've used this successfully to create Windows 2012R2 AMIs (based on This has certainly fixed #391 (and made the module nicer to follow too). Great stuff! |
Thanks for all the help testing, guys. |
else | ||
{ | ||
Throw "source is $source - must be one of chocolatey, ruby, webpi or windowsfeatures." | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You really should allow custom sources - not everyone is going to want to use the community feed.
@ferventcoder thanks for the review. I will try to address those ASAP. |
@elventear I am very interested in getting this merged and will be using the chocolatey module a great deal. I will make a fork of your repo and try to do some of the leg work on peoples suggestions within this thread. Would that be of help? I don't want to step on something you are already working on. |
@smadam813 If you provide a nice interface for custom repos, would be nice. |
Updated with verbose logging, per @ferventcoder comments. |
@elventear Submitted a pull request to your branch which adds the ability to specify a custom chocolatey repo. #2 |
Thanks @petemounce for the review, and @elventear for the patch! |
Refactor `win_chocolatey` module
🎉 🎈 |
Nice work :-) Sent from my phone. Please excuse typos and brevity, but never text speak.
|
Just curious, I am not listed as a contributor for this code as my commits do not show up after the merge. Could I be added @gregdek ? |
@smadam813 you are referenced in the author section of the module doc and in the commit message. In order to commit I had to rebase and there were too many commits; to make my life easier I had to squash all the commits into a single commit. |
@elventear No problem! I am new to git so was just wondering. I have many more modules I am working on that I will make pull requests for soon so not worried at all. Thanks! |
It seems chocolatey is broken again when running from ansible. Can anyone test a freshly installed environment to see if it works for them? In my tests, the script is fetching version 0.9.9.8 and the error I am getting is:
If I leave the ansible script behind and execute it manually it completes successfully. @ferventcoder have there been changes in Chocolatey that could trigger this issue? |
@elventear Choco does require and attempts to install .NET Framework 4.0. If it is not successful, you may not get the files unpacked (the |
@elventear No recent changes with the installer though that would have triggered something that wasn't already possible though. |
It might be better to have choco unpack itself just before it gets packaged up. That way when there are issues, it is more noticeable what it causing the issues (non-functional .NET 4.0 install) versus not finding some file. |
@ferventcoder is that something that the chocolatey install process should do? Or are you suggesting that ansible do that? |
Something choco should do, filed chocolatey/choco#347 |
Is there a way to get an older version of chocolatey? |
@elventear it's not a new issue. You are likely running into it the first time. Unless I'm missing something. If you have the logs from the install, I would be curious to see. |
@elventear unless I'm mistaken, it is literally the issue of not having a functioning .NET 4+ environment when choco 0.9.9+ attempts to install. Because of the way it unpacks itself, it requires .net 4 to be there to create all of the powershell files. |
Strange, I was just using this today bootstrapping new servers with no issues. Granted they were WIndows 2012 and come with .NET 4.5 on them. |
I am using ansible 1.9.2 with win_chocolatey module (v 0.9.9.8) to deploy jdk8 and other programs on a Windows Server 2012 R2 (include .NET 4.5). Here is my playbook : ---
- hosts: windows-test
vars:
java:
tasks:
- name: Packages from Chocolatey
tags: [windows,common,chocolatey,packages]
win_chocolatey:
name: "{{ item.name }} -y"
state: "present"
with_items:
- { name: "7zip.install" }
- { name: "notepad2-mod" }
- { name: "jdk8" } And here is my output with verbose enabled :
chocolatey logs always indicate me 0 packages failed and Exiting with 0. I thought it has been fixed, did I miss something ? |
@Chup4Chups you should no longer need -y when running chocolatey commands as this is the new default. Just out of curiosity, this sounds like the behavior from the old chocolatey module. Try adding branch = devel to each submodule under .gitsubmodule config. Then run "git submodule update --remote --rebase --recursive". See if this fixes your problem. |
@smadam813 I pulled the devel branch and unfortunately, I have now a weird error I can't solve :
Didn't find any issue about this :s |
Probably the same issue as here: |
Yep indeed, I missed this post. |
It is definetely a bug. Interesting that Ansible figures out that it should On Wed, Jul 1, 2015 at 7:17 PM, Chup4Chups [email protected] wrote:
|
So I had to hack things around to try to get a meaningful message of what my problem is and I discovered that I was getting this exception It seems this is a known issue and is related to this fix: https://support.microsoft.com/en-us/kb/2842230 Anyone else has run into the same issue? Should the ansible windows docs mention that KB? |
WinRM bump up to 800MB I think fixes it. I know some folks ran into this - offhand - chocolatey/choco#277 |
With the latest changes the
win_chocolatey
does not work at all starting with Chocolatey version 0.9.9+.Provided changes:
block. If there is any error, bail out and log all the command output
automatically.
output to determine success/failure.
-y
flag is a requirement bychocolatey)
choco
interface has changed, checkif chocolatey is installed and an older version. If so upgrade to
latest.
(@smadam813)
it's place. (@smadam813)
For reasons behind removing built-in sources, see: