Re: [Puppet Users] How to debug catalog transfer?

2014-03-25 Thread Andy Spiegl
open a new issue. Just lemme know. Thanks, Andy. On 2014-03-21, 17:57, Andy Spiegl wrote: > I patched id.rb: > > < Facter.add(:id) do > < setcode "whoami" > < end > --- > > Facter.add(:id) do > > setcode do > > system( "whoa

Re: [Puppet Users] How to debug catalog transfer?

2014-03-21 Thread Andy Spiegl
I patched id.rb: < Facter.add(:id) do < setcode "whoami" < end --- > Facter.add(:id) do > setcode do > system( "whoami" ).encode("UTF-8") > end > end Works fine: id: "nt-autorität\x5csystem" Unfortunately I STILL get the error when running as service. I cannot find anymore umlauts

Re: [Puppet Users] How to debug catalog transfer? (new idea!)

2014-03-21 Thread Andy Spiegl
Just checked with an English Windows 7: id: "nt authority\x5csystem" Uhm, so why is it "binary" in the German version? I suppose decoded this is "NT Authorität\x5csystem" and that's where the umlaut \x84 comes from which puppet doesn't like. On 2014-0

Re: [Puppet Users] How to debug catalog transfer? (new idea!)

2014-03-20 Thread Andy Spiegl
> Okay, now we know that the problem has to do with the user SYSTEM. > What could he be missing? Maybe an environment variable? I have an idea! I was playing around with foreman and noticed a new error message: root@foreman:~# /etc/puppet/node.rb winpet1 Could not send facts to Foreman: "\x84"

Re: [Puppet Users] How to debug catalog transfer?

2014-03-20 Thread Andy Spiegl
On 2014-03-19, 13:32, Rob Reynolds wrote: > I meant change the puppet agent service to another user in the services > console just to rule that out. Oh, I see! I just did that, used the user ADMINISTRATOR and ... IT WORKED! Okay, now we know that the problem has to do with the user SYSTEM.

Re: [Puppet Users] How to debug catalog transfer?

2014-03-19 Thread Andy Spiegl
> Can you confirm if you change the user on the agent to run as you > that the issue goes away? Yes, running as "ADMINISTRATOR" works without flaws. I don't know how to run "puppet agent -t" as SYSTEM. Is that possible at all? Thanks, Andy. -- Support bacteria - it's the only culture some p

Re: [Puppet Users] How to debug catalog transfer?

2014-03-18 Thread Andy Spiegl
I tried downgrading to puppet MSI 3.4.2 and even removed as much as I could from my site.pp and modules dir. But I still get the same error. :-( Andy. On 2014-03-18, 13:47, Rob Reynolds wrote: > On Tue, Mar 18, 2014 at 1:35 PM, Andy Spiegl wrote: > > > > https://projects

Re: [Puppet Users] How to debug catalog transfer?

2014-03-18 Thread Andy Spiegl
> https://projects.puppetlabs.com/issues/22493#note-20 - I'm not sure the > user created the issue or not. > > Does the situation described in that thread apply to you? I tried with the dir.rb from the github-link but unfortunately it didn't change anything. It's so strange because it works when

Re: [Puppet Users] How to debug catalog transfer?

2014-03-18 Thread Andy Spiegl
> > > What is the user that the service is running under? > > Good questions. Aren't all services running as administrator? > > Not necessarily. It all depends on whether you took the default SYSTEM or > set your own credentials on install or afterwards in the services console. Thanks, I learned

Re: [Puppet Users] How to debug catalog transfer?

2014-03-17 Thread Andy Spiegl
> What is the user that the service is running under? Good questions. Aren't all services running as administrator? > What version is the puppet agent on? The master? Client: 3.4.3 (Windows 7 with all updates) Server: 3.4.3-1puppetlabs1 (Debian stable) Thanks, Andy. > > Hi! > > > > I've got a

[Puppet Users] How to debug catalog transfer?

2014-03-14 Thread Andy Spiegl
Hi! I've got a problem with Windows clients: When running "puppet agent -t" manually everything works. (as "administrator" in a "run as administrator" shell) But a run from the puppet-service throws "Error 400 on SERVER: Could not inte rn from pson: "\x84" on US-ASCII" and puppet uses the cac

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-21 Thread Andy Spiegl
Hi Rafael, > It download the tarball, extract it to the target /usr/local , check > with MD5 and install my ERP. Windows doesn't have md5sum functionality built in. I have to get md5sum.exe to the machine somehow. The ARCHIVE module uses curl, rm, tar, unzip, ... Lots of unix tools. :-( Thanks,

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-21 Thread Andy Spiegl
> Tell me more about your goal! > > What you really need!? > > Are your client Windows or Linux ? Most of them are Linux, but many user workstations are Windows. I am trying to set up puppet to update the most security crucial programs on these Windows machines: Java, Flash, Firefox, Thunderbird

[Puppet Users] Re: how to require a md5sum before installing?

2014-02-19 Thread Andy Spiegl
Hi Rafael, > http://forge.puppetlabs.com/gini/archive Thanks, I'll try that! Sounds promising. Now I only have to find a way to securely get md5sum.exe onto the machines, uhm... Thanks! Andy. -- Every generation laughs at the old fashions but religiously follows the new. (Henry David Tho

Re: [Puppet Users] Re: how to require a md5sum before installing?

2014-02-17 Thread Andy Spiegl
> My solution to that, has been to use a packaging system. Thanks, that's a good solution! For my windows clients I need something different, though. :-( Apparently there is no solution yet. How would I go about writing a plugin myself? Unfortunately I'm still too new to puppet... Thanks, Andy

[Puppet Users] how to require a md5sum before installing?

2014-02-14 Thread Andy Spiegl
Hi, I've got several modules which grab installer files from a network share. The share is readonly and as well protected as possibly. But still, I have a bad feeling about it and would like to introduce an extra layer of security. Like checking the md5sum of the file before running the installe

Re: [Puppet Users] Finally found workaround for problem with German windows clients

2014-02-07 Thread Andy Spiegl
Hi Josh, > This assumes Time.new.zone returns a string encoded with the Windows-1250 > code page. You are probably better off omitting the source encoding, since > ruby should already know what it is: > >Time.new.zone.encode("UTF-8") Thanks for this information! While facter 2 isn't out

Re: [Puppet Users] Finally found workaround for problem with German windows clients

2014-01-29 Thread Andy Spiegl
Following up on my own post: > One has to patch this file (on ALL client PCs!): > C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/timezone.rb > > + Iconv.iconv("UTF-8", "windows-1250",Time.new.zone) > - Time.new.zone > -

[Puppet Users] Finally found workaround for problem with German windows clients

2014-01-29 Thread Andy Spiegl
A while ago I asked here for solutions with windows and puppet 3.x I always got this error during the agent run: > Could not intern from pson: "\xE4" on US-ASCII After trying and debugging for a long time I finally found the right comment in the right bug report: http://projects.puppetlabs.com/i

Re: [Puppet Users] puppet run interval

2014-01-29 Thread Andy Spiegl
> Would you please be willing to include some context into your replies? Would YOU please NOT use fullquotes into your replies? Thanks, Andy. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving em

Re: [Puppet Users] recursive descent

2013-12-18 Thread Andy Spiegl
On 2013-12-18, 07:27, jcbollinger wrote: > For example, you can keep the needed manifest code DRY and clear by > using a variable to specify the sources: Good idea, thanks! Andy. -- The foolish man seeks happiness in the distance, the wise grows it under his feet. -- James Oppenheim -- Yo

Re: [Puppet Users] recursive descent

2013-12-18 Thread Andy Spiegl
On 2013-12-17, 16:31, Ben Ford wrote: > If you override something in a recursive directory, you're > overriding everything. I see, that makes sense. > If you add source => 'puppet:///modules/nagios/var_lib_nagios/plugins' then > I suspect you'll get what you want. You are right, that did it. Th

Re: [Puppet Users] recursive descent

2013-12-17 Thread Andy Spiegl
> > http://christian.hofstaedtler.name/blog/2008/11/puppet-managing-directories-recursively.html I thought I had understood recursive directory management. It worked fine until I switched to puppet v3 (Debian 3.3.2-1puppetla to be exact) Since then, files in subdirs aren't copied anymore. An exa

Re: [Puppet Users] Best practice for win7 clients?

2013-11-15 Thread Andy Spiegl
> Are these non-enUS Windows clients? Yes, German. I removed all occurrences of German characters from the puppet configs but that didn't help either. Even the simplest test failed with this error message. Any German puppet users out there??? :-) > WIth the chocolatey provider, I would say use

[Puppet Users] Best practice for win7 clients?

2013-11-14 Thread Andy Spiegl
Hi all, after setting up puppet for my linux clients yesterday I started tackling the windows7 PCs. I managed setting up users and deploying files but I couldn't get it to install software, e.g. Mozilla Firefox. I ran into various problem. First, puppet agent threw strange errors probably becaus