Re: [Puppet Users] using generated query string in a collector

2016-04-11 Thread Felix Frank
On 04/04/2016 02:24 PM, Johan De Wit wrote: I already I'm a big fan of iteration, but this needs to work on puppet 3.[7|8].x Well, there is always "old style pseudo-iteration". define collect_my_stuff() { My_exp_res<<| tag == $name |>> } class X($collect_tags) { collect_my_stuff {

Re: [Puppet Users] Need hide execution window on Windows Scheduled Tasks

2016-03-23 Thread Felix Frank
Hi, if Puppet does not allow you to specify this preference, you could file it as a feature request. https://tickets.puppetlabs.com/ The Windows devs at PL are quite crafty, you might get a patch faster than you think ;-) Cheers, Felix ( - throwing friends under the bus since 2013 ) On

Re: [Puppet Users] Custom type, relationship and fetch order

2016-03-02 Thread Felix Frank
Hi, I'm not sure about directly forcing a prefetch action. However, it seems to me that it would make sense for you to implement a *generate* method for your group type. It should enumerate the users that are members of the group and create a Puppet resource each. (Don't worry about

Re: [Puppet Users] Puppet Facter AWS

2016-02-27 Thread Felix Frank
Hi, could you please elaborate a bit on your issue? I do not quite understand what you are trying to do, and how you are currently failing. Thanks, Felix On 02/24/2016 12:37 AM, Gowtham P R wrote: Hi All, I am not able to figure out how to replace "mac address value" with first mac

Re: [Puppet Users] Re: Help needed - I'm very new to puppet

2016-02-27 Thread Felix Frank
On 02/23/2016 07:25 PM, Istvan Kassai wrote: Hi Warron, How do you mean Learning VM? Is there a downloadable virtual appliance? I've installed two Ubuntu VM-s onto KVM. Installed the puppet related packages, the agent can communicate with the master. This pair (master-agent) is in state

Re: [Puppet Users] Custom type, relationship and fetch order

2016-02-27 Thread Felix Frank
Hi, I believe that all you have to do is taking care of the proper resource dependencies. If you really want to rely on autorequire for this, you will have to make the logic more dynamic. This is easier if you target a Puppet version that has support for autobefore in addition to

Re: [Puppet Users] facter doesn't show custom facts?

2016-02-23 Thread Felix Frank
Hi, thanks for reading :-) Traditionally, you had to invoke `facter -p` to receive Puppet's custom fact from the facter CLI. When we penned the book, PL had just removed that option in favor of `puppet facts`. Shortly after, it became clear that the latter does not quite cover all bases,

Re: [Puppet Users] Announce: A REPL for the puppet language

2016-02-21 Thread Felix Frank
Cool, thanks for sharing! I will mark this and try to check it out "soon". Cheers, Felix On 02/20/2016 12:04 AM, Corey Osman wrote: Hi, I created a REPL for the puppet language this week. This is something that has been lacking for quite some time. https://github.com/nwops/puppet-repl

Re: [Puppet Users] firewall module to accept array of sources/dests

2016-02-20 Thread Felix Frank
On 02/19/2016 04:00 AM, Alex Harvey wrote: So I think I'll call it: firewall_multi It will basically accept any parameter that firewall accepts and pass it straight through to the firewall resource, unless that parameter is the source or destination, in which case it will of course loop

Re: [Puppet Users] SSL Error when connecting agent to master

2016-02-17 Thread Felix Frank
Hi, a very brief bout of researching lead me to this: https://ask.puppetlabs.com/question/6065/mac-os-x-client-ssl-error-before-caching-ca-cert/ You may be experiencing Ruby/OpenSSL version mismatches as well. Perhaps the workaround of the OP over at ask will help you as well. Good luck,

Re: [Puppet Users] Puppet 4, Windows and providers.

2016-02-17 Thread Felix Frank
Hi, so the provider is available as a plugin in your module? It appears that Puppet 4 does not load it successfully. You should probably enable debug output and look for clues as to why that is specifically. (I half feel that `puppet apply` should first plugin-sync the Ruby code to

Re: [Puppet Users] v3 agent to v4 master ssl issue

2016-02-17 Thread Felix Frank
Hi Christopher, I have no first hand experience with this transition, but Martin put a note about SSL in the Puppet 4 chapter of the new Puppet Essentials (yes, I'm plugging us :-) Apparently Puppet 4 cannot use a CA that was created without the dns_alt_names setting. This might just be

Re: [Puppet Users] Problems testing branching using rspec-puppet with hiera

2016-02-16 Thread Felix Frank
Hi, I don't really have an answer for you, but would it be a feasible workaround for you to convert your variable lookup into a class parameter that is looked up implicitly? This way, you can just exploit rspec-puppet's own facilities for providing test input, and need not perform the whole

Re: [Puppet Users] firewall module to accept array of sources/dests

2016-02-13 Thread Felix Frank
On 02/13/2016 05:34 AM, Alex Harvey wrote: The problem is that removing sources from the array of your multiplexer resource will just lead to some firewall resources not being in the catalog anymore. Their respective rules will remain orphaned, which is not what the user will

Re: [Puppet Users] firewall module to accept array of sources/dests

2016-02-12 Thread Felix Frank
On 02/12/2016 07:11 AM, Alex Harvey wrote: ACCEPT tcp -- 1.1.1.1/24 0.0.0.0/0 multiport dports 80,443 /* 100 allow http and https access */ ACCEPT tcp -- 2.2.2.2/24 0.0.0.0/0 multiport dports 80,443 /* 100 allow http and https access */ The provider

Re: [Puppet Users] Puppet/Puppetboard throwing error 'Internal Server Error'

2016-02-12 Thread Felix Frank
OK, but seriously, what's it saying? Also, can you connect to localhost:8080 with netcat? With curl? Cheers, Felix On 02/12/2016 08:56 AM, Manoj Kumar wrote: yess I can see that too Thanks and Regards, Manoj Kumar OK, next debugging step: What's the output of `ss -tlnp | grep :8080` ? --

Re: [Puppet Users] German Umlauts in Catalog

2016-02-12 Thread Felix Frank
On 02/12/2016 12:35 AM, Lindsey Smith wrote: Hi Josh, ok, I think I found the problem, thanks to your questions. Our codepages in Windows are CP850, But the manifests and the master are UTF-8. Can I change the codepage only for ruby to UTF-8? If so, how?

Re: [Puppet Users] Puppet/Puppetboard throwing error 'Internal Server Error'

2016-02-11 Thread Felix Frank
On 01/27/2016 07:59 AM, Manoj Kumar wrote: Yes, puppetdb is running :( OK, next debugging step: What's the output of `ss -tlnp | grep :8080` ? Thanks, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and

Re: [Puppet Users] Prefetch in custom types in Puppet v4?

2016-02-11 Thread Felix Frank
On 01/27/2016 10:11 AM, Gareth Rushgrove wrote: I nearly always having something like: def self.prefetch(resources) instances.each do|prov| if resource = resources[prov.name] resource.provider = prov end end end Where instances returns an array of objects created using

Re: [Puppet Users] How to install tomcat silenlty using puppet on Windows 7

2016-02-11 Thread Felix Frank
On 01/28/2016 12:22 PM, Maruti Gangumolu wrote: Thanks Dirk! It worked. I'm still facing with module class file. When I'm invoking site.pp -> nodes.pp -> init.pp manifest files I'm getting an error that apache class is not found. Could you please help me with it? # Manage apache tomcat v8

Re: [Puppet Users] Puppet::Type.newtype create_resource with notify

2016-02-11 Thread Felix Frank
Hi, On 01/29/2016 07:19 PM, Bartosz Kupidura wrote: New resources are added to catalog, but unfortunately notify is not working. | parameters ={:name =>'test',:notify =>'Service[test-service]',:value =>'10} res = catalog.create_resource('test_resource', parameters) target = catalog.resource

Re: [Puppet Users] Issues with example42/php::augeas or with augeas in general

2016-02-11 Thread Felix Frank
On 02/09/2016 09:51 PM, Joseph Karns wrote: Hello All: I started getting failed resources from augeas and I'm hoping someone can help. The errors: Hi, your output asks you to enable debug output to get more information. Please run again like puppet agent --test --debug ...or whatever

Re: [Puppet Users] Overriding class parameters within Foreman

2016-02-11 Thread Felix Frank
On 02/05/2016 02:25 AM, Kyle Flavin wrote: In the example above, I'm unable to override $dhcp_dnsdomain by setting the corresponding value on the host in Foreman. It always goes with the value of $::domain. Could you describe more specifically what you are setting where? Adding a variable

Re: [Puppet Users] Schedule Vcsrepo to sync local with remote

2016-02-11 Thread Felix Frank
On 02/03/2016 04:18 PM, mike r wrote: Trying to avoid using cron but cant figure if its possible to run this on PE Master as 'puppet apply vcsrepo.pp' every 15 min or so. Well `puppet apply` is definitely a great way to do this, but guess what: The best way to do *that* periodically

Re: [Puppet Users] firewall module to accept array of sources/dests

2016-02-11 Thread Felix Frank
On 02/09/2016 06:41 AM, Alex Harvey wrote: Can I get some feedback at this early stage that my PR would be accepted, assuming I can come up with a clean, working solution? Hi, I don't think that anyone will be able to answer this without at least looking at what you're building, or intend

Re: [Puppet Users] German Umlauts in Catalog

2016-02-11 Thread Felix Frank
On 01/21/2016 08:49 AM, Bjoern Meier wrote: Hi Josh, ok, I think I found the problem, thanks to your questions. Our codepages in Windows are CP850, But the manifests and the master are UTF-8. Can I change the codepage only for ruby to UTF-8? If so, how? I'm not this familiar with ruby.

Re: [Puppet Users] does puppet get download of a server ftp?

2016-02-09 Thread Felix Frank
Hi, Puppet cannot directly use FTP servers with the file{} resource. You can install a module for this purpose, however. This one is a good choice: https://forge.puppetlabs.com/puppet/archive Hope that helps, Felix On 02/03/2016 12:32 PM, victor.v...@ecxus.com.br wrote: Hello, I'm new

Re: [Puppet Users] What I think that is needed for a practical Puppet class

2016-02-07 Thread Felix Frank
Hi, seconded, and I'll go a step further and claim that "(Forge) Modules First Puppet" might actually be a feasible angle for newcomers who don't have a programming nor strong operations background to speak of. Do let me know if you hit any snags along the road. Happy to help, if it weren't

Re: [Puppet Users] Error applying a catalog when the agent is restarted in the middle of a catalog run

2016-02-07 Thread Felix Frank
Hi, as a workaround, you could hopefully switch to running Puppet from cron. This is usually more robust. If you can reproduce this behavior, it would be great if you could 1. see if this holds true with the latest 3.8 or even 4.3 version and if yes, 2. simplify the environment as much as

Re: [Puppet Users] puppet cert list yields no certs

2016-02-07 Thread Felix Frank
On 02/07/2016 04:56 PM, Felix Frank wrote: Hi, is this issue still unresolved? Ah, ignore please - getting back in the game, getting used to Thunderbird (or Google Groups) breaking the threading on occasion :) -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Is puppet (apply) supposed to work fine on one non-english windows?

2016-02-07 Thread Felix Frank
Hi, internationalization issues are likely as not caused by the underlying Ruby runtime, rather than Puppet itself. Or so I guess. Are you running a Ruby that came with your copy of Puppet? (Is this how Puppet works on Windows?) On 01/12/2016 06:39 PM, Matthieu Dubuget wrote: I spent some

Re: [Puppet Users] hieradata in add mode

2016-02-07 Thread Felix Frank
Hi, very valid question. Traditionally, you will get this behavior not through Hiera notation, but by using an alternative lookup function, hiera_array. $users = hiera_array('users_list') Here's how it works: http://docs.puppetlabs.com/puppet/latest/reference/function.html#hieraarray Do

Re: [Puppet Users] Facter 3 and Puppet 3.8.2

2016-02-07 Thread Felix Frank
Hi, I'm not so sure, but looking at the release notes, there does not seem to be a breaking change in the 3.0 release that would disrupt compatibility with Puppet 3.x. So, yes, I believe this should Just Work. https://docs.puppetlabs.com/facter/3.0/release_notes.html#facter-300 Cheers,

Re: [Puppet Users] puppet cert list yields no certs

2016-02-07 Thread Felix Frank
Hi, is this issue still unresolved? On 01/08/2016 12:41 AM, Matt Zagrabelny wrote: On Thu, Jan 7, 2016 at 5:35 PM, Peter Kristolaitis wrote: Apparently I was a little too quick on the send button. :( To continue my previous email: Does 'puppet cert list --all' show any

Re: [Puppet Users] Re: Advice on Puppet update to 4

2015-07-24 Thread Felix Frank
On 07/23/2015 12:45 AM, Stack Kororā wrote: It also appears to me that puppet dashboard is not yet ready for 4. Anyone have any thoughts on that? Hi, the dashboard was discontinued, afaik, so it may never be ready to work with Puppet 4+. If you need a good ENC, look at Foreman. If you need

Re: [Puppet Users] Re: Advice on Puppet update to 4

2015-07-22 Thread Felix Frank
On 07/22/2015 11:06 PM, Kevin Corcoran wrote: Hi, We added a new feature in Puppet Server 2.1.0 which allows it to be used with Puppet 3 agents (as well as Puppet 4 agents, of course). https://docs.puppetlabs.com/puppetserver/latest/release_notes.html#whats-new-in-puppet-server-21 - Kevin

Re: [Puppet Users] Re: Advice on Puppet update to 4

2015-07-21 Thread Felix Frank
On 07/21/2015 04:14 PM, jcbollinger wrote: 2) I read in the changelog that the older clients should work with the backward compatibility, but is it worth even trying? Or should I just push out the updated puppet client wherever I can before adding the server into my new

Re: [Puppet Users] Newbie question regarding the file resource

2015-07-20 Thread Felix Frank
On 07/20/2015 06:17 PM, Fabien Delpierre wrote: I've tried multiple things: puppet:///modules/sensei/mysite.conf Well that's nice, but earlier in your mail, you stated that mysite.conf is in the 'myfiles' module. The URL you need is puppet:///modules/myfiles/mysite.conf Your reasoning is

Re: [Puppet Users] Case of the missing Ruby file

2015-07-20 Thread Felix Frank
Hi, so you installed puppet_spec_helper as a gem. This should work, and I'm not certain what the clean approach of making it work in this scenario would be. I believe require 'rubygems' might help, but I half remember some issues that can crop up with this. Personally, I would create a Gemfile,

[Puppet Users] puppetserver does not sign its certificate

2015-07-19 Thread Felix Frank
Hi, something I noticed when trying a simple puppetserver setup. I installed puppetserver from PC1 on a Debian 7 box (will try Debian 8 once PC1 has puppetserver for it) and just started the service. It fails like this: Exception in thread main java.lang.IllegalStateException: Cannot initialize

Re: [Puppet Users] Running the Puppet 4 master from the AIO package (especially passenger/rack)

2015-07-18 Thread Felix Frank
Hi Michael, I can't find more details to help me track that down, but I'm getting convinced that the problem is that my Passenger is installed onto OS Ruby instead of Puppet's Ruby. I could not use your apache config verbatim, see reason below. Apache starts after some modifications (e.g. loading

Re: [Puppet Users] Dictating class evaluation order

2015-07-18 Thread Felix Frank
On 07/19/2015 01:19 AM, Andrew Langhorn wrote: class apps::reservations { include tomcat tomcat::instance { ‘reservations’: ensure = present, http_port = 8080, } } However, when I run Puppet against a Vagrant VM, it tells

[Puppet Users] Running the Puppet 4 master from the AIO package (especially passenger/rack)

2015-07-17 Thread Felix Frank
Hi list, I'm currently trying to get Puppet 4 to work with nginx/passenger. I had that working with Puppet 3.x pretty well, but the new packaging stumps me. For one, the config.ru file is no longer being packaged, apparently. It's missing from my systems regardless of whether puppet-agent or

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-17 Thread Felix Frank
On 07/18/2015 03:20 AM, Tim Dunphy wrote: Hey Felix, thanks, but those aren't the important ones I'm afraid. There should be a vhost to bind port 8140. If there is not, please check carefully which process is actually listening on that port. (If it's Ruby, I have bad

Re: [Puppet Users] Running the Puppet 4 master from the AIO package (especially passenger/rack)

2015-07-17 Thread Felix Frank
Hey Ramin and Michael, thanks for your replies. On 07/17/2015 11:53 PM, Ramin K wrote: I wrote a how-to on using different Rubies for your Puppet master and am using it to run a Ruby 2.1.6/Puppet 3.7.x master. I would attempt something similar in your case.

Re: [Puppet Users] Running the Puppet 4 master from the AIO package (especially passenger/rack)

2015-07-17 Thread Felix Frank
On 07/17/2015 10:08 PM, Felix Frank wrote: Hi list, I'm currently trying to get Puppet 4 to work with nginx/passenger. I had that working with Puppet 3.x pretty well, but the new packaging stumps me. For one, the config.ru file is no longer being packaged, apparently. It's missing from my

Re: [Puppet Users] how to export path in bashrc via puppet script

2015-07-17 Thread Felix Frank
Hi, this whole approach is hardly ideal. Try and take a look at the file_line type in the stdlib module. It will likely do exactly what you need. https://github.com/puppetlabs/puppetlabs-stdlib#file_line As soon as you install the stdlib module, the type becomes available to your manifests.

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-17 Thread Felix Frank
On 07/17/2015 10:37 PM, Tim Dunphy wrote: Hi Felix, Thanks for getting back to me! And yes, you are correct. Puppet/Foreman is running through apache/passenger. And here's the vhost configurations. There's two of them, one for ssl and one for non ssl. Non ssl is first: Hi Tim, thanks,

Re: [Puppet Users] Net::ReadTimeout errors

2015-07-17 Thread Felix Frank
Hi, I'm not very familiar with the puppet/foreman stack, so this might be a silly question, but how is the master set up? Is it running through Apache/Passenger? In that case, can we see the Apache vhost configuration? Thanks, Felix On 07/15/2015 05:12 AM, Tim Dunphy wrote: Hey all, I'm

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-09 Thread Felix Frank
On 07/07/2015 09:33 PM, Melissa Stone wrote: ... W: Failed to fetch http://apt.puppetlabs.com/dists/jessie/Release Unable to find expected entry 'PC1/source/Sources' in Release file (Wrong sources.list entry or malformed file) The release package for jessie has been

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-05 Thread Felix Frank
Hi, has anyone tried the PC1 on jessie yet? I just did the following: wget http://apt.puppetlabs.com/puppetlabs-release-pc1-jessie.deb dpkg -i puppetlabs-release-pc1-jessie.deb apt-get update but I get ... W: Failed to fetch http://apt.puppetlabs.com/dists/jessie/Release Unable to find

Re: [Puppet Users] Re: Puppet Augeas Provider and augtool

2015-05-19 Thread Felix Frank
On 05/19/2015 01:35 PM, bjoern pohl wrote: ouch... just some minor modifications and it works :) augtool print *'*/files/etc/sudoers/Cmnd_Alias[alias/name = HOMEMGMT]' not sure what my shell is eating there... perhaps that slash... The quotes, most likely :-) Nice catch. -- You received

Re: [Puppet Users] Dependencies modules

2015-05-17 Thread Felix Frank
Hi, it might be possible to get this to work. You would basically create a profiles module per affiliate. Putting all data into params.pp might be possible, but not ideal. Consider implementing Hiera instead. Your hierarchy can dynamically adapt to select appropriate data for each affiliate.

Re: [Puppet Users] cant get variable to show in template (erb)

2015-05-17 Thread Felix Frank
Hi, can you move the notify next to the file resource instead of the variable declaration? It seems most likely that there is some kind of scoping issue. HTH, Felix On 05/16/2015 07:46 PM, Adam Winberg wrote: Hi, trying to populate an ifcfg template (network config) with ipv6 config, but

Re: [Puppet Users] fstab dilemma - pounding on file_line and augeas

2015-05-17 Thread Felix Frank
On 10/08/2014 04:20 AM, Dan White wrote: On Oct 7, 2014, at 4:17 PM, Felix Frank felix.fr...@alumni.tu-berlin.de mailto:felix.fr...@alumni.tu-berlin.de wrote: On 10/07/2014 09:55 PM, Dan White wrote: |Local hardening guidelines say that /usr/local and /var/log/audit have to be separate

Re: [Puppet Users] cant get variable to show in template (erb)

2015-05-17 Thread Felix Frank
Ah, sorry I missed that earlier: You are compiling the template elsewhere, yes? Because the file resources uses the value of the $ifcfg_template variable. Please also debug the scope of the declaration of that variable. Is it a parameter? HTH, Felix On 05/17/2015 07:41 PM, Adam Winberg wrote:

Re: [Puppet Users] client certificate issue

2015-05-13 Thread Felix Frank
Hi, there really is no way for the master to tell directly. The best approach is to enable storing of reports (e.g. in PuppetDB) so that you can monitor agent operation. Afflicted agents do not run and do not report. Tools like Puppet Explorer can indicate this to you very directly. HTH, Felix

Re: [Puppet Users] Hiera single key/value lookup and create_resources for augeas

2015-05-13 Thread Felix Frank
Well you will have to devise a defined type that takes the variable name as the resource title, and the value as an argument. Data structure has to be my_variables: my_project1: var1: value: value1 var2: value: value2 Then the my_project1 hash is eligible for use with

Re: [Puppet Users] Preserving single quotes

2015-05-13 Thread Felix Frank
On 05/05/2015 08:25 PM, Marcos Renato wrote: Hi how to add this command line (alias ls='ls --color=auto') to a file preserving single quotes? Thanks, Marcos Are you trying to pass this through the content property? -- You received this message because you are subscribed to the

Re: [Puppet Users] Running classes in a certain order

2015-04-01 Thread Felix Frank
On 04/01/2015 09:03 PM, Jason Gagui wrote: How would I make sure the four classes run in the specified order above? Hi, an intermittent reboot implies that the three latter classes *cannot* be evaluated during the same agent transaction as the first one. To implement this, add a custom fact

Re: [Puppet Users] Re: nodes set to environment 'none'

2015-03-31 Thread Felix Frank
On 03/30/2015 02:15 PM, Romain P wrote: Hello Tim, Do you find a solution ? I have the same problem. Cheers Romain Hi, looks like Tim is using the Foreman. Are you? In Tim's case, I suspect that this is a Foreman issue, or at least related to its integration with Puppet. HTH, Felix --

Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-31 Thread Felix Frank
On 03/31/2015 07:38 PM, Huaqing Zheng wrote: appears to have fixed my facter problems but I would recommend using lsb facts instead in your forge modules going forward. *sigh* such a can of worms. FWIW, last time I looked for those in Debian, they were available only if a certain package

Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-27 Thread Felix Frank
On 03/13/2015 03:40 PM, Fraser Goffin wrote: I am attempting to use the puppetlabs/concat module on Windows, but having some problems. I just found out that Richard has made an alternative that explicitly does support Windows: https://forge.puppetlabs.com/ispavailability/file_concat -- You

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Felix Frank
On 03/26/2015 05:29 PM, Peter Berghold wrote: I watched the puppetdb log and it would seem something is being written to puppetdb and puppetdb is the backend for storeconfigs. Have you tried actually querying the PuppetDB contents?

Re: [Puppet Users] Creating a list of hosts

2015-03-26 Thread Felix Frank
On 03/26/2015 07:39 PM, Peter Berghold wrote: I guess you can't export such a thing? You can. But your define is not called 'remotemaster'. Perhaps that is the cause of the error. Cheers, Felix -- You received this message because you are subscribed to the Google Groups Puppet Users group.

Re: [Puppet Users] Provider/type with no name

2015-03-25 Thread Felix Frank
Hi, what you're doing is more or less identical to composite namevars. The codebase has support for *actual* composites, but last I heard, it's a very fragile construct. I cannot advise to try and use it. Your own approach may well be more sane. On 03/24/2015 02:40 PM, Nick Howes wrote: Where

Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-25 Thread Felix Frank
Hi, it sure is disappointing that the most recent agent version will not select the correct default provider on your FC19. Is systemd default on this platform? Or have you configured this box this way explicitly. If you want your manifest to behave like this on your FC19 boxen only, you can do

Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-25 Thread Felix Frank
On 03/13/2015 03:40 PM, Fraser Goffin wrote: If I look at this file I can see that it indeed does not have read (or any other) permissions set. I tried adding values user, group and mode but to no avail. Can anyone suggest what I need to do here ? Shot in the dark: Is the agent running

Re: [Puppet Users] Puppet device file

2015-03-12 Thread Felix Frank
On 03/09/2015 05:59 PM, Sergiu Cornea wrote: Hello guys, I am trying to create a device files and I am not really sure if i'm applying the right check. exec { creates_random_file_for_${name}: command = mknod -m 0444 ${dev_random} c 1 9, path= '/usr/local/bin/:/bin/',

Re: [Puppet Users] puppet 2.7.26 certificate verify failed master and client the same

2015-03-06 Thread Felix Frank
Hi, on the agent, try puppet agent --configprint server It likely indicates the FQDN of the old master. Change your puppet.conf accordingly, so that the new FQDN is used instead. [main] server=gso0puppet01... HTH, Felix On 03/04/2015 05:35 PM, Ed Deloye wrote: I am building a new puppet

Re: [Puppet Users] Puppet Open Source with own Certificates

2015-03-06 Thread Felix Frank
On 03/05/2015 08:33 AM, hoize wrote: I hope you can help me. At PuppetLabs-Docs I only found the configuration for Puppet Enterprise for my issue. Hi, apart from some path names, it should be applicable to open source puppet. Can you link the specific howto you are following, and indicate

Re: [Puppet Users] Order class with parameter

2015-03-06 Thread Felix Frank
are in place from the first run. Under normal circumstances I would use require to include class yum and yum::config::icinga but with parameters it would look cleaner. Regards Thomas 2015-03-05 23:12 GMT+01:00 Felix Frank felix.fr...@alumni.tu-berlin.de mailto:felix.fr...@alumni.tu-berlin.de

Re: [Puppet Users] Share data between custom functions/resources/providers?

2015-03-06 Thread Felix Frank
On 03/06/2015 04:12 PM, Nick Howes wrote: I'm aware there are no functions in the example, which would be implemented either as a `define` in Puppet or as a custom type in Ruby - I was just expressing that I'm open to any solution, which may involve some helper function under the hood. That's

Re: [Puppet Users] Inter-node dependency

2015-03-06 Thread Felix Frank
On 03/06/2015 06:50 PM, lupindet...@gmail.com wrote: hi, thank you for the reply, however the end state really is to have both machine in sync and working as pair of primary/standby Database log shipping. The flow therefore are: 1) create backup in serverA 2) copy to serverB 3)

Re: [Puppet Users] External Facts in MODULEPATH/MODULE/facts.d/

2015-03-05 Thread Felix Frank
On 03/05/2015 11:55 PM, Dan White wrote: --external-dir=/var/lib/puppet/facts.d/ Ah. Good catch! It is not a bug. It is an Undocumented Feature :D Hah! Well I'm not convinced. UX bugs are still issues. Cheers, Felix -- You received this message because you are subscribed to the Google

Re: [Puppet Users] Order class with parameter

2015-03-05 Thread Felix Frank
On 03/04/2015 02:10 PM, Thomas Bendler wrote: /contain icinga::package/ /contain icinga::config/ /contain icinga::service/ / / /Class['icinga::package'] -/ /Class['icinga::config'] -/ /Class['icinga::service']/ Unfortunately the ordering isn't correct, the module try to install the

Re: [Puppet Users] Can't remove depreciated warning message

2015-03-05 Thread Felix Frank
On 02/09/2015 05:54 AM, David LeVene wrote: Any suggestions as to where to look next? Hi, in case you're still struggling with this - you can try and locate the catalog (in $vardir/client_yaml) and examine the package resources for starters. Good luck, Felix -- You received this message

Re: [Puppet Users] Share data between custom functions/resources/providers?

2015-03-05 Thread Felix Frank
Hi, there might be ways to achieve this, but also plenty caveats. You mention all of functions, resources and providers, but I see no indication that all of them relate to your question. Are you aware of the differences between the three? Have you implemented anything already, or are you still

Re: [Puppet Users] External Facts in MODULEPATH/MODULE/facts.d/

2015-03-05 Thread Felix Frank
Hi Dan, interesting, I think I can reproduce, with facter 2.4.1. Might be a bug. I observe `puppet agent` opening my $vardir/facts.d files (through strace), but not `facter -p`. Cheers, Felix On 02/09/2015 05:41 PM, Dan White wrote: Puppet 3.7.3 Facter 2.3.0 running on RHEL 6 Reference:

Re: [Puppet Users] Provider throwing errors

2015-03-03 Thread Felix Frank
On 03/02/2015 05:18 PM, Peter Berghold wrote: I *believe* this is where I'm getting an error thrown such that: Error: /Stage[main]/Multibind::Mob_oam_svc/Bindconfigure[MOB_OAM_SVC]: Could not evaluate: wrong number of arguments (1 for 0) Oh you do? :-) Please run with --trace to confirm

Re: [Puppet Users] Defining custom type with a mandatory property

2015-03-01 Thread Felix Frank
Hi, please note that this is a very unusual structure. Properties that are not assigned a desired value will just be left as is by the agent. Upon creating a new resource on the managed system, the *ensure* property can impose a default value. Are you sure that you want to force the user to

Re: [Puppet Users] Quick question about types/providers

2015-03-01 Thread Felix Frank
Can you make your code available somewhere, so that we can reproduce? Generally, I'd like to second John's general advice: Do restart your Puppet processes to make sure that changes to your Ruby code take effect. Best, Felix On 02/27/2015 09:22 PM, Peter Berghold wrote: I think I discovered

Re: [Puppet Users] Problem installing kernel from backports

2015-03-01 Thread Felix Frank
Hi, running puppet with --debug will show you the check command that is run to determine whether the package needs updating. It yields a zero exit code apparently, so the 'unless' dependency is not hit.

Re: [Puppet Users] Quick question about types/providers

2015-02-27 Thread Felix Frank
On 02/27/2015 05:02 PM, Peter Berghold wrote: can I guess that the first def mod is what is referred to as a getter and second is a setter?Can I stretch that inference to say that if the value being passed to the setter is the same as what the getter is seeing it won't be set again?

Re: [Puppet Users] Exec on a node causing action on another node?

2015-02-27 Thread Felix Frank
On 02/27/2015 07:51 AM, Erling Ringen Elvsrud wrote: Do you think it is possible to handle this with Puppet? Yes, but not relying on exec as heavily as you imply. Your first step should be a custom fact that reports the state of the certificate. The manifest for the node examines the fact

Re: [Puppet Users] Re: how to prevent certificate revocation list (CRL) from expiring

2015-02-09 Thread Felix Frank
On 02/06/2015 05:15 PM, Josh Bronson wrote: I just filed https://tickets.puppetlabs.com/browse/ENTERPRISE-515 for this. The workaround is to disable CRL checking: 1. Add certificate_revocation = false to the [agent] section of the puppet.conf file as described at

Re: [Puppet Users] user creation in puppet nodes through PUPPET Master

2015-01-20 Thread Felix Frank
On 01/20/2015 03:45 PM, Johan De Wit wrote: http://puppetlabs.com/download-learning-vm Enjoy the journey Beat me to the punch. See you soon, Johan! Best, Felix -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] Override facts from facter

2015-01-19 Thread Felix Frank
On 01/12/2015 03:55 PM, Felix Frank wrote: I think the issue is that facter/util is not supposed to be pluggable this way. Custom facts live in lib/facter/*.rb and that's the extent of it. I may be mistaken, but it seems consistent to me that this will not work. Hi, I just found

Re: [Puppet Users] Re: Rootless Puppet

2015-01-14 Thread Felix Frank
On 01/14/2015 09:55 AM, KEIGNAERT Mathieu wrote: Dear all, I am very new to puppet, I have been playing with puppet a long time ago, I haven't done anything recently with puppet but I try to follow it. One of my main concern with puppet and what I try to achieve is to have puppet running as

Re: [Puppet Users] Conditional Require For File Type

2015-01-14 Thread Felix Frank
On 01/14/2015 03:47 PM, Jason Wever wrote: Hi All, I having a problem in where I'm defining a File Type and setting the requires parameter to use a variable name (e.g. requires = $foo). However, when I do this, the Puppet run doesn't act like it's translating the variable into what it should

Re: [Puppet Users] Override facts from facter

2015-01-12 Thread Felix Frank
On 01/12/2015 01:22 PM, Davide Ferrari wrote: Hello! My code is basically this commit https://github.com/vide/facter/commit/c4060af48074c372a63409d81b836b79ff5d0427 This patch works smoothly if I overwrite the files in /usr/lib/ruby/vendor_ruby/ All right, awesome. Thanks for that. I

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Felix Frank
On 01/12/2015 05:03 PM, Michael Wörz wrote: Solved - tags do the job define mountentry($device,$mountpoint,$order) { @notify{$name: tag = [mount$order], } } class sysctl::mounts() { $m=$yaml['mounts'] create_resources(mountentry,$m) Notify | tag == 'mount1' | - Notify

Re: [Puppet Users] ordering ressopurces in defined types

2015-01-12 Thread Felix Frank
data from code. but anyway - thanks 2015-01-12 19:18 GMT+01:00 Felix Frank felix.fr...@alumni.tu-berlin.de mailto:felix.fr...@alumni.tu-berlin.de: On 01/12/2015 05:03 PM, Michael Wörz wrote: Solved - tags do the job define mountentry($device,$mountpoint,$order

Re: [Puppet Users] Override facts from facter

2015-01-11 Thread Felix Frank
On 01/09/2015 03:48 PM, Davide Ferrari wrote: Hi I'm trying to override a fact from facter 2.3, called partitions with a custom version of this fact, via pluginsync. The problem is that the base file in /var/lib/puppet/lib/facter/partitions.rb, just like it's facter brother in

Re: [Puppet Users] defined types question

2015-01-11 Thread Felix Frank
On 01/10/2015 02:39 PM, Christopher Wood wrote: On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: I'm fooling around with some defined types and am struggling a little. The following is just a small example of what I'm doing while I work it out:

Re: [Puppet Users] facter external fact tips?

2015-01-11 Thread Felix Frank
Hi, On 01/08/2015 11:02 PM, Christopher Wood wrote: root@cwl:~# cat /etc/facter/facts.d/truefalsetwo.txt truefalsetwo=true I think it's fine for this one to return a string. After all, the output of a script is just text. Converting to boolean would be trivial, but less so for arrays, hashes

Re: [Puppet Users] puppet agent question

2015-01-11 Thread Felix Frank
On 01/10/2015 06:51 PM, Brian Lock wrote: If the puppet agent isn't running on a server and you issue the command sudo /etc/init.d/puppet stop, and you have also disables execute access on the file /etc/init.d/puppet by chmod -x , why does puppet run from the master at its pre-prescribed

Re: [Puppet Users] Vagrant Puppetmaster Cert

2015-01-11 Thread Felix Frank
It sounds as if your master is doing Something Weird when it is launched during startup of you Vagrant instance. What that is exactly is hard to tell. Try and manipulate the init (or whatever) script to enable some debug logging. See if you can find out the cause for the failures. If you cannot

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-09 Thread Felix Frank
Randomizing the time of logrotation as a workaround for this particular issue seems drastic to me. https://docs.puppetlabs.com/references/latest/configuration.html#splay This may do the trick. Cheers, Felix On 01/08/2015 08:27 PM, Christopher Wood wrote: Yes it does, and that's something that

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Felix Frank
On 01/07/2015 08:18 PM, Matthew Kennedy wrote: So changing this to: if ($profile == 'existantclass') { include profile::${separator}::${profile} } results in Error 400 on SERVER: Could not find class profile::app::existantclass for node1.vnet on node node1.vnet. Wait, what, so the

  1   2   3   4   5   6   7   8   9   10   >