Re: [Puppet Users] Puppet 3.6.2 package gem provider unable to update r10k gem

2014-09-23 Thread Wil Cooley
On Sep 22, 2014 7:19 PM, "treydock" wrote: > Error: /Stage[main]/R10k::Install/Package[r10k]/ensure: change from ["1.2.1"] to 1.3.4 failed: Could not update: Execution of '/usr/bin/gem install -v 1.3.4 --no-rdoc --no-ri r10k ' returned 1: ERROR: Can't use --version w/ multiple gems. Use name:ver

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread Neil - Puppet List
file { "/System/Library/User Template/English.lproj/Library/Preferences/${source}" : # the source is the file from the line directly below, this seems true as the correct files copy when I have only No its just not like that $source would need to be defined in or passed to the scope your file re

[Puppet Users] Re: class/subclass relationship ordering and containment

2014-09-23 Thread Mike Reed
Hey John, Thanks for the reply and comments to my questions. I understand what you're saying and the ideas of include/inherit/contain make better sense now. Cheers, Mike. On Friday, September 19, 2014 4:01:28 PM UTC-7, Mike Reed wrote: > > Hello all, > > I have a question about class and sub

Re: [Puppet Users] Re: Unable to do "puppet apply nodes.pp"

2014-09-23 Thread Felix Frank
On 09/21/2014 05:59 PM, Justin Timberlake wrote: > puppet:/etc/puppet/manifests # puppet apply -dv user-absent.pp > Debug: Runtime environment: run_mode=user, ruby_version=1.8.7, > puppet_version=3.7.0 > Debug: Executing '/usr/bin/env > PUPPET_DASHBOARD_URL=http://puppet.novell.com:3000 > /usr/s

Re: [Puppet Users] How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?

2014-09-23 Thread Robin Lee Powell
Oh, yes, that's *lovely*, thank you! On Tue, Sep 23, 2014 at 11:33:03AM -0400, Christopher Wood wrote: > It's a bit unintuitively named (for my values of intuition), maybe this helps? > > https://docs.puppetlabs.com/references/latest/configuration.html#usecacheonfailure > > On Tue, Sep 23, 2014

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Trevor Vaughan
Hi Gabriel, >From the recent PuppetConf talk on Puppet Server, the goal appears to be to move this way. However, many things need to be worked out. Not the least of which is how 'puppet apply' and msterless is going to work. The speed improvements and smaller resource usage appear quite impressiv

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Matt Zagrabelny
On Tue, Sep 23, 2014 at 2:03 PM, Gabriel Filion wrote: > On 23/09/14 12:11 PM, Nate Wolfe wrote: >> We are thrilled to announce the preview release of Puppet Server, our >> newest open source project. >> Puppet Server is a next-generation alternative to our current Puppet >> master, which builds o

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Gabriel Filion
On 23/09/14 12:11 PM, Nate Wolfe wrote: > We are thrilled to announce the preview release of Puppet Server, our > newest open source project. > Puppet Server is a next-generation alternative to our current Puppet > master, which builds on the > successful Clojure technology stack underlying project

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread aarb000
I thought I had it, but I don't. I will post my code and explain what I think it is doing. Perhaps someone can see my misunderstanding. This is init.pp in a module called managed_preferences. class managed_preferences { } define mac_managed_preferences ($application) { #application variable

[Puppet Users] Announce: Puppet Server 0.2.0

2014-09-23 Thread Nate Wolfe
We are thrilled to announce the preview release of Puppet Server, our newest open source project. Puppet Server is a next-generation alternative to our current Puppet master, which builds on the successful Clojure technology stack underlying projects like PuppetDB. Packages are available in the Pu

[Puppet Users] Re: metadata issue pushing module to forge

2014-09-23 Thread Sebastian Otaegui
Any help on this? Should I file a bug? On Fri, Sep 19, 2014 at 12:27 PM, Sebastian Otaegui wrote: > Hello, > > did the metadata accepted change recently? I have a module that had a > 'requirements' field populated with the puppet version, but now when I try > to release a new module to the forge

Re: [Puppet Users] How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?

2014-09-23 Thread Christopher Wood
It's a bit unintuitively named (for my values of intuition), maybe this helps? https://docs.puppetlabs.com/references/latest/configuration.html#usecacheonfailure On Tue, Sep 23, 2014 at 08:26:22AM -0700, Robin Lee Powell wrote: > > So right now, puppet is doing this because of DNS issues: > >

[Puppet Users] How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?

2014-09-23 Thread Robin Lee Powell
So right now, puppet is doing this because of DNS issues: Warning: Unable to fetch my node definition, but the agent run will continue: Warning: getaddrinfo: Name or service not known Info: Retrieving pluginfacts Error: /File[/var/lib/puppet/facts.d]: Failed to generate additiona

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread aarb000
John, I would like to re-explain the problem I am trying to solve to make sure that what I want to do is possible, and that it can be done in the way you are trying to help me. In my first post, I mentioned wanting different modules to write to the /System/Library/User Template/English.lproj/

[Puppet Users] Re: Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 2:05:42 PM UTC-5, Vladimir Brik wrote: > Here's roughly what I am thinking of doing (but I am wondering if there > is a better way). > > site.pp: > # this is in global area of site.pp. so that all nodes, whether > they > # use statlog or not i

[Puppet Users] Re: Virtual users and group gids

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 6:36:32 PM UTC-5, Robert Davidson wrote: > > When creating users from hiera, it's simple enough to make them all > virtual using create_resources and then realize them. This does leave me > with a question, though. > > How do I make sure that the assorted groups a

[Puppet Users] Re: class/subclass relationship ordering and containment

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 11:18:55 AM UTC-5, Mike Reed wrote: > > Hey Nan and John, > > Thank you both for the replies and insight into my questions below; they > are most helpful and very much appreciated. > > Based on your answers, I have few other questions that occurred to me: > > In res

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 4:51:38 PM UTC-5, aar...@gmail.com wrote: > > I did the following to see if it would work, and I got (for me anyway) a > surprising result. It may be the source of some of my confusion and reason > why I'm finding this so difficult. Note, I don't want to do this

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 2:58:52 PM UTC-5, aar...@gmail.com wrote: > > Thanks Neil, > > In yours and Johns example you both have ${title} at the end of > Preferences. When I tried this (after his post, I haven't tried your code > yet), I ended up with a folder called Preferences/office_20

[Puppet Users] Custom facts and environments

2014-09-23 Thread JonY
I'm attempting to make the jump to directory-based environments and am curious about what to do with custom facts. In my current config I've tried putting custom facts into a separate module as /etc/puppet/modules/facts/{manifest,lib} and /etc/puppet/modules/facts/lib/facter/. I haven't had any

[Puppet Users] Re: Puppet 3.7.1 parse problems with resource overrides.

2014-09-23 Thread Stefan Heijmans
Hi, Received the same kind of error with a different message, using Puppet 3.7.2 with future parser; Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '[' at /etc/puppet/environments/tst/modules/managesoft/manifests/install.pp:41:23 on node Had the

Re: [Puppet Users] Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-23 Thread José Luis Ledesma
Hi, what I do in this case is create a fact that returns which statlog are configured. then I do the difference (stdlib) between this and what should the machine have. Would be something like this (caution, not tested :)): $shouldhave=['bar','foo'] $currentlyhave=$::some_fact_with_an_array_of_