Re: [Puppet Users] Purging of ssh_authorized_keys

2013-12-02 Thread Felix Frank
On 11/22/2013 03:28 PM, jcbollinger wrote: ssh_authorized_key { 'example': target = '/non/standard/location' key = '...', type = 'rsa', ensure = 'present', } resources { 'purge_authorized_keys': name = 'ssh_authorized_key', purge = true } Suppose further that some time

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-12-01 Thread Felix Frank
Hi, I've taken a look into the issue and it would appear that your root problem is wrong template syntax. The below is not strictly valid: On 11/27/2013 02:40 PM, David Portabella wrote: file.txt.erb var from file.txt.erb: %= @var % What works as expected: var from file.txt.erb: %= var %

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-12-01 Thread Felix Frank
Absolutely! Sorry I had missed the deprecation warning earlier. Full agreement on all points. Debugging away... :-) On 12/01/2013 11:21 AM, David Portabella wrote: Hi, What works as expected: var from file.txt.erb: %= var % using var instead of @var produces this warning on puppet 3:

Re: [Puppet Users] Custom Functions and hash as parameter

2013-12-01 Thread Felix Frank
Hi, I don't fully understand how the problems you mention are connected, but the observed caching behavior may be due to https://projects.puppetlabs.com/issues/17210. HTH, Felix On 12/01/2013 04:44 PM, Israel Calvete wrote: Somehow, the code was being cached in my pool of puppet masters.

Re: [Puppet Users] Nsclient install

2013-11-29 Thread Felix Frank
Kaustubh's remarks may still have merit, though. Perhaps there is a subtle typo (think trailing space or similar). Have you copy-pasted the name from an authoritative source? Regards, Felix On 11/29/2013 01:41 PM, Jeffrey Smith wrote: The service name is NSClient++ (x64) and its listed there

Re: [Puppet Users] Fun with certificates.

2013-11-29 Thread Felix Frank
Hi, if it's possible to generate unique FQDNs, you should go that route. The FQDN is what puppet uses as the CN per default. Failing that, generate a unique cert name (suffix) and add it as certname option to puppet.conf on the agents. That may or may not be feasible depending on the granularity

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-11-28 Thread Felix Frank
Hi, that's interesting indeed. You may have stumbled upon a bug. You could try and search http://projects.puppetlabs.com/issues/ for similar reports. If there is none, feel free to open a new bug and supply your example code. If time allows, I'll look into it over the weekend. Cheers, Felix On

Re: [Puppet Users] Re: Puppet Agent does not connect to master after installing Dashboard

2013-11-28 Thread Felix Frank
Hi, actually, I believe both puppetmaster and dashboard use passenger. The idea behind apache's virtual hosts is that you can have independent sets of configuration applied to different ports, or different IP addresses available on the same server. What you need to do is adding *both*

Re: [Puppet Users] Java REST Client to access Puppet API

2013-11-28 Thread Felix Frank
Hi, good thinking, but you do want to add the CA certificate of your master to your keystore. On the agent node, it can be found in {ssldir}/certs/ca.pem. There should be a keytool -importcert or similar option. HTH, Felix On 11/27/2013 01:47 PM, Naveen Desu wrote: b. Obtained Signed

Re: [Puppet Users] Re: puppet module search using an HTTP proxy

2013-11-28 Thread Felix Frank
Ad hoc I find at least three bug reports around this issue: http://projects.puppetlabs.com/issues/8281 http://projects.puppetlabs.com/issues/16923 http://projects.puppetlabs.com/issues/19547 Patches are included, try at your own risk. Your mileage may vary, seeing as some of those bugs are

Re: [Puppet Users] Nsclient install

2013-11-28 Thread Felix Frank
Hi, so are the errors disappearing in subsequent agent runs? Thanks, Felix On 11/27/2013 12:53 PM, Jeffrey Smith wrote: I get the following errors during the initial run -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this

Re: [Puppet Users] OSX 10.9 appdmg/pkgdmg

2013-11-27 Thread Felix Frank
Hi, uhm, looking at your log, it would appear that the package in question is not part of your catalog at all. I gotta ask: Are you including the max-firefox class at all? Aside: Please note that dashes in class names are not strictly valid syntax and should be avoided. HTH, Felix On

Re: [Puppet Users] Puppet 3x Debian Wheezy and Phusion Passenger

2013-11-27 Thread Felix Frank
Hi, what are the actual issues you are facing? What errors are being reported and where? Which howto are you using for the dashboard setup? On 11/23/2013 11:53 PM, Doe John wrote: Hello, I'm trying to install puppet-dashboard with Phusion Passenger. It seems to be a bugs or unsupported ruby

Re: [Puppet Users] Is it possible to puppet agent applies the config even when puppet master is unreachable?

2013-11-27 Thread Felix Frank
On 11/24/2013 11:17 PM, Jo Rhett wrote: You want this: http://docs.puppetlabs.com/references/latest/configuration.html#usecacheonfailure +1 Also, note that --test explicitly disables this option, but it should default to enabled when *not* using --test, i.e. just --onetime --no-daemonize.

Re: [Puppet Users] can I pass a class or type to be executed into another class?

2013-11-27 Thread Felix Frank
Hi, I think you're overcomplicating. I suppose you have something like class mywebapp { tomcat7::war { mywebapp: ... } } You can wrench your code inbetween if you slightly modify your defined type like so: define tomcat7::war(...) { file { tomcat7-war-file-$name: path =

Re: [Puppet Users] puppet won't change user's password

2013-11-27 Thread Felix Frank
Hi, no, it's not. What version of puppet are you using? To make sure there is nothing funny going on with your overall manifest structure, can you try this as root on the agent machine: puppet apply -e 'user { username: password = * }' For me, this yields Notice: /User[username]/password:

Re: [Puppet Users] Warning: Unable to fetch my node definition, but the agent run will continue:

2013-11-27 Thread Felix Frank
Hi, On 11/27/2013 02:01 AM, Shawn Parker wrote: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node puppetnode.localdomain: Failed to find puppetnode.localdomain via exec: Execution of '/etc/puppet/snc_enc.py puppetnode.localdomain'

Re: [Puppet Users] puppet won't change user's password

2013-11-27 Thread Felix Frank
Ugh. So, does it work with other values (e.g., actual password hashes)? On 11/27/2013 11:57 AM, Sergey Arlashin wrote: # puppet apply -e 'user { testuser: password = * }' Notice: Compiled catalog for db-node2.site in environment production in 0.07 seconds Notice: Finished catalog run in

Re: [Puppet Users] puppet won't change user's password

2013-11-27 Thread Felix Frank
Hi, no good then. Please run again with an added -dv switch to puppet apply, and share the debug output. Thanks in advance. On 11/27/2013 12:02 PM, Sergey Arlashin wrote: # puppet apply -e 'user { testuser: password =

Re: [Puppet Users] puppet won't change user's password

2013-11-27 Thread Felix Frank
Way to go! On 11/27/2013 12:12 PM, Sergey Arlashin wrote: So I installed libshadow and everything's working now! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [Puppet Users] puppet won't change user's password

2013-11-27 Thread Felix Frank
wrote: Why do you expect a password change on the second run ? From my observations, the parameter value has not changed between runs, so there is nothing to change. -Original Message- From: Felix Frank To: puppet-users Sent: November 27, 2013 at 5:32 AM Subject: Re: [Puppet Users

Re: [Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread Felix Frank
OT - but that's a little excessive. You should condense that to cat 1.xml 2.xml 3.xml my_file.xml or even cat {1,2,3}.xml my_file.xml Cheers, Felix On 11/26/2013 11:28 AM, cozyp...@web.de wrote: On a command line under Unix I would do cat 1.xml my_file.xml ; cat 2.xml my_file.xml; cat

Re: [Puppet Users] Permission denied - /usr/share/puppet-dashboard/public/javascripts/all.js

2013-11-26 Thread Felix Frank
Hi, I can't give you much on this, because I've never touched dashboard and my knowledge of passenger is passing at best. (Also I don't do RHEL/CentOS :-) I believe that the important part is that your rack application (dashboard) as a home (/etc/puppet/rack) and that is correctly configured

Re: [Puppet Users] Re: ensuring a directory is empty

2013-11-26 Thread Felix Frank
Hi, your request is problematic insofar that it does not match the puppet philosophy very well. Puppet expects you to define a state you desire. The details of how this state can be reached should be up to puppet. That's idealized of course, and in the real world, there are plenty examples of

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Felix Frank
That was a dick move, Dan. Dick. Move. ;-p Not only are you hiding your vileness in an obfuscation (steering all innocent list readers into your trap), but to add insult to injury, your (arguably) annoying signature is larger in volume than the affront itself. No cookie. On 11/26/2013 04:54 PM,

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Felix Frank
Me too. My off-list response to Dan was spam-filtered apparently. Anyhow, while I stand by the expressed sentiment, I should have delivered it with more tact. Apologies for the language and demeanor. On 11/26/2013 08:21 PM, Dan White wrote: My apologies to all for the inappropriate response.

Re: [Puppet Users] Puppet Dashboard with Passenger - 500 Internal Server Error (Mysql::Error: Can't create/write to file Errcode: 13)

2013-11-25 Thread Felix Frank
Hi, my guess would be that this error is handed through from MySQL itself. Are there perhaps problems with the permissions on your /tmp? It is indeed strange that Webrick behaves different from passenger for this use case, though. Can you somehow make absolutely certain that ruby is contacting

Re: [Puppet Users] saving copy of template on puppetmaster

2013-11-25 Thread Felix Frank
Hi, you might use that to cobble something together (using generate?) but that will most certainly end up very, very ugly. Instead, you may want to look for the documentation on how to recompile the catalog for a specific agent. You will need to configure the master to keep the requests

Re: [Puppet Users] get list of all nodes in site.pp and use it in another module

2013-11-25 Thread Felix Frank
Hi, On 11/22/2013 02:04 PM, sasikiran v wrote: site.pp - node1 { 'first_node': a = 'hello' } this doesn't look like valid node syntax? new_module.pp -- // Here i want to get all the list of node_names, is there any possibility to retrieve Uhm, you

Re: [Puppet Users] get list of all nodes in site.pp and use it in another module

2013-11-25 Thread Felix Frank
Hi, I know of no video, but it's hard to convey the basics in such a form anyway, I believe. I recommend taking a look at the official tutorial: http://docs.puppetlabs.com/learning/ Regards, Felix On 11/25/2013 05:46 PM, ●๋•کáکíkíŕáńツ wrote: Hi Felix, I think the question which i asked

Re: [Puppet Users] Problem with Passenger

2013-11-22 Thread Felix Frank
On 11/21/2013 10:33 PM, Jo Rhett wrote: On Nov 18, 2013, at 12:52 PM, Marcelo Frota infrag...@gmail.com wrote: I having problem with passenger module, i create the config file /usr/share/puppet/rack/puppetmasterd/config.ru but the process master the puppet is not running . For what

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Felix Frank
This looks pretty bad :-) Can you paste (excerpts of) your manifest code on pastebin or a similar service? On 11/21/2013 10:11 AM, Raj kumar V wrote: I have written a module with a init class. Now I have to pass a dynamic value. so I have created a params class and inherited in the init class

Re: [Puppet Users] undefined method `enum_lsdev' for Facter::Util::Processor:Module

2013-11-21 Thread Felix Frank
Hi, are you certain that puppet uses the facter gem you installed? Is an older version of facter installed by other means? Regards, Felix On 11/20/2013 01:19 PM, yamakasi@gmail.com wrote: Hi All, I'm facing the following error on an Ubuntu 12.04 install with Puppet 3.3.2 Error: Could

Re: [Puppet Users] Puppetmaster generated Certificate with old CA domainname

2013-11-21 Thread Felix Frank
Hi, humm, the TCP handshake fails...? Is there firewalling on master and/or agent side? Are you using passenger by the way? Cheers, Felix On 11/20/2013 01:54 AM, yamakasi@gmail.com wrote: Hi Mark, Yes I removed /var/lib/puppet/ssl on the agent. At the moment I get an: Error: Could

Re: [Puppet Users] Want to restrict puppet module execute every 30mins

2013-11-21 Thread Felix Frank
Hi, this would even work, but I think the approach as a whole is not well in line with puppet's philosophy. Application deployment is not among its core strengths. If you really want to do this by puppet, I suggest you keep it simple: 1. perform all your steps in one monolithic script 2. have

Re: [Puppet Users] create_resources and file

2013-11-21 Thread Felix Frank
Hi, tough call. You may have to replicate the file type in a defined type like so: define my_file($owner=root,$mode=644,...,$template=) { if $template { File[$name] { content = template($template) } } file { $name: owner = $owner, ... } } Then you can

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Felix Frank
Hi, is that config.ru from the ubuntu package? It looks odd and seems to miss the vital '$0 = master' line. For reference: https://github.com/puppetlabs/puppet/blob/master/ext/rack/config.ru HTH, Felix On 11/18/2013 09:52 PM, Marcelo Frota wrote: I am running puppet with puppet version

Re: [Puppet Users] Could not find parent resource type

2013-11-21 Thread Felix Frank
Hi, comments inline. On 11/21/2013 12:17 PM, Raj kumar V wrote: In my module folder, module/mymodule I have 2 files. init.pp params.pp My init code: class myclass($api_key=$myclass::params::myclassagent_APIkey) inherits myclass::params{ No need to inherit the params class. I

Re: [Puppet Users] Problem with Passenger

2013-11-21 Thread Felix Frank
Marcelo, well, have you made sure that apache is configured correctly according to the documentation? I.e. http://docs.puppetlabs.com/guides/passenger.html I advise to restart apache and keep an eye on its log files. HTH, Felix On 11/21/2013 02:07 PM, Marcelo Frota wrote: Hi Felix, My

[Puppet Users] Purging of ssh_authorized_keys

2013-11-21 Thread Felix Frank
Hi, I'm forking this thread from a cron discussion on the development list. I feel that the exchange of design ideas regarding the much requested cleaning of authorized ssh public keys is of interest to the base of (potential) users and is not (yet) closely related to implementation details. On

Re: [Puppet Users] Re: Could not find parent resource type

2013-11-21 Thread Felix Frank
Just a quick remark: If anonymisation is an issue for you, you should definitely go back to pastebin and anynonymise the code there as well. I notice some anti-patterns, but nothing stands out to me that should make the agent fail like that... Cheers, Felix On 11/21/2013 01:26 PM, Raj kumar V

Re: [Puppet Users] How to parse same template with differen values each time

2013-11-20 Thread Felix Frank
Hi, you can use a hash, either from hiera or in your manifest. $config = { country1 = { option1 = value1, option2 = ... }, country2 = { option1 = ... } ... } In the template, you can access it like this e.g. % data = config[country] -% ... ListenAddress=%= data[option3] % ... Careful,

Re: [Puppet Users] How to parse same template with differen values each time

2013-11-20 Thread Felix Frank
Yes, that's a limitation you get from relying on hashes in your hierarchy. Tough call. Of course, you *could* override the entire hash where necessary. Or, you could cut out the top level of the hash and make each hash key a hiera key instead: countrydata_us: option1: option2: ...

Re: [Puppet Users] dashboard

2013-11-19 Thread Felix Frank
Well, apparently you *can* in fact use puppet dashboard without PE: https://github.com/puppetlabs/puppet-dashboard HTH, Felix On 11/18/2013 08:18 PM, Stuart Cracraft wrote: Hi, I spent a lot of time with Puppet Enterprise and like it. Lately, I've been doing Open Source Puppet. The

Re: [Puppet Users] Puppet Masterless on Windows

2013-11-19 Thread Felix Frank
Hi, I haven't played with Vagrant, but your wording makes me ask: Is there indeed an agent (as in `puppet agent` as opposed to `puppet apply`) at work? Because that will never use a manifest from your local machine. Puppet agent has the sole purpose of connecting to a master. Cheers, Felix On

Re: [Puppet Users] Weird situation - exec fails but Puppet 2.7 exits 2

2013-11-19 Thread Felix Frank
Hi, if memory serves, --detailed-exitcode (one of the more annyoing implications of --test) will return the number of resources that changed. So are there any other things that puppet did during its run? Generally, if you want to use the exit code of `puppet agent` (or apply) to determine

Re: [Puppet Users] custom types development on stand alone mode: unknown parameter

2013-11-19 Thread Felix Frank
Hi, where does the ruby code of your custom type reside? Make sure that ruby's include path (`ruby -e 'puts $:`) will read your working tree first. To be safe, run puppet as RUBYLIB=/path/to/my/lib puppet apply test-manifest.pp HTH, Felix On 11/19/2013 12:25 PM, ulrich igor ngouagna kouete

Re: [Puppet Users] Re: Class declaration ordering causes duplicate resource error

2013-11-19 Thread Felix Frank
Hi, that's basically correct, but I'd like to ask you to get more specific than that. Both can be desirable: 1. Require a whole class: I don't care which resource makes sure my apache is installed - I require the whole class to be successfully evaluated before my dependent resource is applied

Re: [Puppet Users] custom types development on stand alone mode: unknown parameter

2013-11-19 Thread Felix Frank
That's fine. Can you put your code into PasteBin or gist.github.com? We can work from there. Cheers, Felix On 11/19/2013 05:06 PM, ulrich igor ngouagna kouete wrote: Sorry but I do not understand :( I'm quite a newbee in all these... -- You received this message because you are subscribed to

Re: [Puppet Users] Re: delayed effect of puppet apply mumble.pp

2013-11-18 Thread Felix Frank
Hi, no, there is not. And not to come around as overly critical, but if you ponder the use of such a functionality, chances are that you are designing a manifest that is not well in tune with puppets strengths and weaknesses (I wouldn't want to coin definitions of right and wrong ways, but there

Re: [Puppet Users] Re: Class declaration ordering causes duplicate resource error

2013-11-18 Thread Felix Frank
Hi, no this cannot work, you're mixing two syntaxes. In theory, this may work: class { foo::bar: } Class[foo:baz] - Class[foo::bar] But I'm with John: class { name: } declarations should only be used if absolutely necessary, which it's not! Do this: include foo::bar Class[foo:baz] -

Re: [Puppet Users] Puppet: Custom functions

2013-11-18 Thread Felix Frank
Hi, you have likely enabled the pluginsync feature, which allows you to use Plugins in modules to e.g. distribute custom facts to your agents. Puppet will not distinguish custom facts and types from parser functions. For most people, syncing parser functions to agents serves no purpose. I

Re: [Puppet Users] exec is stripping % in the string.

2013-10-04 Thread Felix Frank
Hi, the most robust way to have puppet execute complex commands is to have puppet deploy a trivial script comprising the command, then execute the script sans arguments. HTH, Felix On 10/03/2013 12:27 AM, Jason Greathouse wrote: I'm trying to pass a url to an exec and at some point all the %

Re: [Puppet Users] module customization + using foreman 1.2 + puppet 3.0

2013-09-26 Thread Felix Frank
Hi, On 09/23/2013 06:42 PM, shyam sundar Keshari wrote: But I am not able to configure sshd_config file for each host separately . why not, what's keeping you? I don't really know how foreman works with puppet, but basically it should be possible to write a manifest that will declare a

Re: [Puppet Users] Service refresh gets scheduled and swp files

2013-09-24 Thread Felix Frank
On 09/24/2013 10:02 AM, AAB !! wrote: *Finished catalog run in 1089.33 seconds* This is excessive. I advise to try and cut down your catalog run time. What's taking your agent so long? Is your master swamped? The --evaltrace switch to the agent can be helpful in locating time wasters. *2*-

Re: [Puppet Users] hiera and defaults

2013-08-27 Thread Felix Frank
Hi, when you put it that way, it makes perfect sense indeed. Thanks for the clarification! On 08/26/2013 08:42 PM, Calvin Walton wrote: The reason is so that you can override class default values by providing a value with hiera. Doing any other order simply doesn't make sense for general

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 - 2.7.18

2013-08-26 Thread Felix Frank
Hi, I found 2.6 - 2.7 to be quite pleasant. There are new deprecations, but there was nothing in our manifests that broke or acted funny. Do have a test master and perform gratuitous --noop runs against it if you're paranoid about this kind of thing. I know I am. Stig's advice is very good, but

Re: [Puppet Users] hiera and defaults

2013-08-22 Thread Felix Frank
Hi, is this puppet 3? I shall suppose it is. With the parameter name of bar, you likely trigger the automagic hiera lookup of foo::bar, which is (naturally) not done using hiera_array. Apparently, this overrides the explicit call to hiera_array. I'm not sure wether that's as designed, you may

Re: [Puppet Users] Re: Latest Puppet Enterprise + Debian Lenny nodes?

2013-08-09 Thread Felix Frank
Hi, puppet doesn't have many requirements. Chief among them is ruby 1.8, which Debian 5 has, so it shouldn't be very hard to get it working. HTH, Felix On 08/09/2013 03:45 PM, Marco Cancedda wrote: Really no one bothers to answer or is it just a totally stupid question? :-) Thanks ;-) On

Re: [Puppet Users] Raziel - a partial encrypted Hiera backend

2013-06-25 Thread Felix Frank
Hi, this does look potentially helpful. Thanks for sharing! On 06/24/2013 03:26 PM, Jens Braeuer wrote: Hi everyone, In my environment, we heavily rely on Hiera to parametrize our modules. Like the Puppet code, I would like to version-control the Hiera .yaml files. However committing

Re: [Puppet Users] Problems Running Puppet Once For Passenger Installation - Certificates Disappear

2013-04-30 Thread Felix Frank
Hi, On 04/25/2013 04:31 PM, Philip Gardner wrote: notice: /Stage[main]/Puppet::Config::Master/Exec[run_puppet_once]/returns: executed successfully notice: /Stage[main]/Puppet::Config::Master/Apache::Vhost[puppetmasterd]/File[/var/log/httpd]/mode: mode changed '0700' to '0755' notice:

Re: [Puppet Users] Hiera error in Puppet: undefined method `empty?'

2013-04-29 Thread Felix Frank
Hi John, this is me replying late because I can't thrawl the list that often. On 04/22/2013 10:53 PM, John George wrote: The error message indicates to me that the lookup from Hiera is failing. How so? Anyway, first debugging steps: 1. Does the error disappear when you set $lookup = 'foo'

Re: [Puppet Users] Re: Hiera error in Puppet: undefined method `empty?'

2013-04-29 Thread Felix Frank
Oh, didn't see that at first. Way to go! On 04/22/2013 11:55 PM, John George wrote: I just figured out the error. The keyring had the wrong ownership permissions! I guess writing out the problem can help figure out the issue. Hope this will help someone else save time and effort. -- You

Re: [Puppet Users] ppg: Scheduled rollouts and dashboard with git in decentralized setup

2013-04-29 Thread Felix Frank
Interesting. It seems nicely thought out, but I stumbled here, reading: On 04/23/2013 11:22 PM, Martin Langhoff wrote: I am less certain of this part, and input will be specially valuable here. ppg pullapply will... - apply changes locally, capture stderr/stdout, perhaps more info that

Re: [Puppet Users] Help me with overriding define resource

2013-04-29 Thread Felix Frank
John, you're such a tease ;-) While I mostly agree with the points you're making (as so often), I feel that this thread is incomplete without giving an example of the syntactically correct implementation of the original idea. Note that this approach has a number of issues and should usually be

Re: [Puppet Users] Re: Need help! Puppet could not request certificate: No route to host -connect(2)

2013-04-24 Thread Felix Frank
On 04/24/2013 02:34 PM, Przemek wrote: ps -aux That should just be ps aux, no dash, actually. On 04/24/2013 12:24 AM, martp...@gmail.com wrote: I am able to ssh to both host. Am now getting the error: [Could not request certificate: Connection refused] This error is different to the

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-23 Thread Felix Frank
On 04/23/2013 11:22 AM, ForumUser wrote: define repair_user ( $ensure = hiera(accounts::users::defaults)[ensure], $uid, $gid, $shell = hiera(accounts::users::defaults)[shell], ...) Untested, but you get the idea. Felix, But how this syntax would

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
Hi, On 04/22/2013 01:17 PM, ForumUser wrote: What is wrong with it ? Very good approach! The last remaining problem is that your repair_user type has no parameters for ensure, home and shell. create_resources will want to pass those parameters. Just add them to your type and pass them on to

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
On 04/22/2013 03:55 PM, ForumUser wrote: However it creates account in the /etc/passwd but doesn't create users home directory despite the fact I have managehome set to 'true'. Any clue ? No, this shouldn't happen. There must be some sort of error. You may get lucky and find what's wrong by

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
On 04/22/2013 04:45 PM, ForumUser wrote: On Monday, 22 April 2013 15:04:02 UTC+1, Felix.Frank wrote: On 04/22/2013 03:55 PM, ForumUser wrote: However it creates account in the /etc/passwd but doesn't create users home directory despite the fact I have managehome

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-21 Thread Felix Frank
On 04/19/2013 03:56 PM, ForumUser wrote: Is it possible to run this script (/script/to/cleanup) for each created user (so the script doesn't have to cope with whole /home tree structure) with its home (taken from puppet/hiera) as a parameter ? Yes, assuming you use a defined type such as this:

Re: [Puppet Users] Fileserver on a client rather than a puppetmaster

2013-04-21 Thread Felix Frank
On 04/19/2013 07:06 PM, Ken Coar wrote: Simplicity. Keeping everything in the puppet milieu, which is already set up. Don't want to introduce new mechanisms and dependencies rather than making use of what's already there. I'm not so sure about that. I do believe that you could do what you

Re: [Puppet Users] Configuring REST API in standalone Puppet

2013-04-19 Thread Felix Frank
Hi, the docs seem to indicate that there are a few caveats to consider. http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api Do you have both namespaceauth.conf and proper rest_authconfig settings? HTH, Felix On 04/17/2013 11:01 AM, Javier Dehesa wrote: Is there any possibility

Re: [Puppet Users] Windows Puppet waits for CR, then warns Facter::Util::Resolution.exec with a shell built-in is deprecated

2013-04-17 Thread Felix Frank
On 04/17/2013 07:46 AM, Larry Fast wrote: I think I found the problem. Pluginsync seems to load ALL plugins - even for modules that are not included in that node's manifest. Is this correct? Yes. Pluginsync happens before the manifest is even compiled. This is a logical necessity. E.g. your

Re: [Puppet Users] Re: Duplicate Declaration of resource (editing contents of same file in two diiferent module)

2013-04-17 Thread Felix Frank
On 04/16/2013 05:39 PM, Rahul Khengare wrote: I am not able to change postgresql.conf file twice in postgresql module and then pg_statsinfo module in case of db01, it give duplication declaration of file resources. This is important: Puppet does not change your files. Puppet rewrites the file

Re: [Puppet Users] Re: File resource without ensure

2013-04-15 Thread Felix Frank
On 04/15/2013 09:31 AM, Ellison Marks wrote: Perhaps it works differently when specifying the content/source of a file. I tried your example, but with content = 'foo' instead of mode = 640 and it created the file. Yes, I believe that's an important distinction. One would expect 'content =' to

Re: [Puppet Users] Re: File resource without ensure

2013-04-14 Thread Felix Frank
Hi, On 04/04/2013 05:08 PM, jcbollinger wrote: if I define a file resource without specifying an ensure parameter, it seems to behave like ensure = present was specified. Yes, that's the default. Uhm, are you sure? I would expect the following to be a noop, which seems to be the

Re: [Puppet Users] New to Puppet

2013-04-14 Thread Felix Frank
Hi, welcome aboard. I fear there may be no available solutions. When in doubt, ask here ;-) Although in the end of the day, if you manage to get puppet to do what you want, you're fine. Cheers On 04/04/2013 10:53 PM, HassanzDaName wrote: Hello Everyone, I'm a new Puppet user. I'm still

Re: [Puppet Users] Puppet client not auto updating

2013-04-14 Thread Felix Frank
Hi, there are agent options in puppet.conf that control how often the agent runs etc. Check whether the agent puts any messages into your syslog. Find the agent process in the system's list of running processes. You could try and run the agent in debug mode to see if anything goes wrong. Stop

Re: [Puppet Users] install multiple versions with gem provider

2013-04-14 Thread Felix Frank
Hi, please elaborate on the problem you are trying to solve. On 04/09/2013 04:03 PM, Marc Genou wrote: We usually run apps with a couple of versions of the same gem. Is it possible to do that with an only manifest? PS: I am a little noob with puppet yet -- You received this message

Re: [Puppet Users] How to executing puppet module via puppetrun

2013-04-14 Thread Felix Frank
Well, On 04/09/2013 03:51 AM, Love Anthony Vish wrote: Is there any way, Where i can describe my own module or specified module for specific puppet client. there is a fundamental flaw in your question. Modules are not executed or anyhting alike. A manifest can use types and classes that

Re: [Puppet Users] puppet module upgrade dilemma with Subversion

2013-04-14 Thread Felix Frank
On 04/12/2013 02:55 PM, Dan White wrote: I use Subversion to maintain the $confdir of my puppet-masters and I just discovered that when one does an upgrade, the entire tree is blown away and replaced -- all my .svn directories are gone. I see nothing in the documentation (man page and

Re: [Puppet Users] push puppet agent from dashboard

2013-04-14 Thread Felix Frank
Hi, On 04/13/2013 11:41 AM, Francesco wrote: Excuse me When I add node from the dashboard is there any possibility to push puppet-agent to the client ?? Thank you in advance!!! Francesco you mean, given a *nix node A and the dashboard, you'd like to be able to add the node in dashboard and

Re: [Puppet Users] Conditional based on whether package is part of the manifest

2013-04-14 Thread Felix Frank
Hi, it's a good question, with no clear answer. There is the defined() function. Under some circumstances, it can be used to do what you have in mind. Don't try this though! The problem with this kind of conditional is that imposes parse order dependency. The order can shift as your manifest

Re: [Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Felix Frank
Hi, just took a peek at the code. Note that you need to specify the old_root_password if one is set, otherwise puppet cannot modify the system. What's the output of a puppet agent run? Regards, Felix On 04/04/2013 02:33 PM, Bob wrote: Hi, Using this module

Re: [Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Felix Frank
On 04/04/2013 03:48 PM, Bob wrote: notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: mysqladmin: connect to server at 'localhost' failed notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Re: [Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Felix Frank
I don't know about Ubuntu, but Debian will store the inital root password you've entered once in the config database. It may get re-used when puppet installs the mysql server. Point in fact: MySQL won't accept a password-less root login. The safe route will be for you to start with skip-grant

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-04-02 Thread Felix Frank
Hi, On 03/26/2013 08:11 PM, thinkwell wrote: Puppet runs always generating scads of errors http://thinkwelldesigns.com/errors2.html.Is Passenger enabled? Well, the error is titled with Passanger so I'd say yes ;) The error also advises to check the webservers's logfiles. Have you? If apache

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Felix Frank
On 03/25/2013 11:06 AM, Jithin Xavier wrote: If trued with mysql -u root -p Pa$$word!, and its working as well Hmm, that looks wrong. There must be no space between -p and the password, otherwise the mysql command will interpret the latter as the database to use, not the password. Try mysql -u

Re: [Puppet Users] How we can create two database Using same credetial using Puppet

2013-03-25 Thread Felix Frank
Then read again, please. On 03/25/2013 12:18 PM, Jithin Xavier wrote: No, this is not my issue mysql -u root -p , My problem is ,if I type mysql command and enter,its going to mysql console with out giving me error,I am expecting some error here because I have set root credentials. Anyway,

Re: [Puppet Users] puppet and execution order

2013-03-25 Thread Felix Frank
Hi, On 03/22/2013 09:27 PM, Dan wrote: node ip::addr{ eth0: Uhm, what? node ip::addr ? Wouldn't that tell puppet that there is a host in your setup by the name of ip::addr? Confusing... Anyway, execution order is controlled using require/before parameters. These should all work, assuming the

Re: [Puppet Users] could not retrieve catalog from server error on windows

2013-03-25 Thread Felix Frank
Hi, please share the complete output of 'puppet agent --test'. On 03/23/2013 01:28 PM, Saeid Ansaripour wrote: Hello I get the error in title when I run puppet agent on my windows 7 machine I can ping puppet master just fine with no problem. thanks -- You received this message because

Re: [Puppet Users] Unexpected hash's behavior

2013-03-25 Thread Felix Frank
Hi, On 03/25/2013 03:53 PM, Andrew E. wrote: What is my mistake? Speficially, you are probably looking for the each_pair method: http://ruby-doc.org/core-1.8.7/Hash.html#method-i-each_pair Also, I'd advice to never use generic variable names like kk or vv. Your hash is index = options? Why

Re: [Puppet Users] Unexpected hash's behavior

2013-03-25 Thread Felix Frank
On 03/25/2013 04:06 PM, Felix Frank wrote: Speficially, you are probably looking for the each_pair method: Scratch that - just noticed it's synonymous with each. That's fine then. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe

Re: [Puppet Users] Puppet 3.1.1 and file… - Error: Failed to apply catalog: Attribute 'user' or 'target' is mandatory

2013-03-21 Thread Felix Frank
Gee, thanks for being this guy (http://thedailywtf.com/Articles/A-Misleading-Memory.aspx) Have you made sure that $1 $2 and $3 are available in the scope you are using them? That code is not very robust, you may want to wrap the ssh_authorized_key into a defined type with sane default

Re: [Puppet Users] Re: Redmine upgrade beginning

2013-03-21 Thread Felix Frank
Right. Was that by design? On 03/18/2013 09:32 PM, Hunter Haugen wrote: Looks like the upvote/downvote buttons are missing. (/red(dit|mine)/ anyone?) -Hunter -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] pluginsync trouble over SRV lookups

2013-03-21 Thread Felix Frank
Hi, On 03/15/2013 03:21 AM, Ashwin N wrote: When using SRV lookups (over 2 puppetv3.1.1/RHEL6 masters), does anyone know why the pluginsync fails to sync at irregular intervals ? I gotta admit - I'm not familiar with SRV. What's it do? If I stop either of masters, everything proceeds fine

Re: [Puppet Users] files outside a module

2013-03-21 Thread Felix Frank
On 03/15/2013 05:02 PM, PF Carpentier wrote: I don't know if this message is relevant in my case because my file is not inside a module. I believe it is. The message is telling you that this pattern *will not work anymore* when you upgrade your master. You should consider creating your own

Re: [Puppet Users] Host name look up failure- unable to generate certificate in agent and transfer that to master for signature.

2013-03-21 Thread Felix Frank
Uhm - those links you posted use an unroutable address. So that's not going to work for anyone. On 03/20/2013 07:06 AM, yarlagadda ramya wrote: *dnsdomainname: Host name lookup failure dnsdomainname: Host name lookup failure * this is common in the starting two lines of both the commands

Re: [Puppet Users] Re: Verbose debugging of template variable binding ?

2013-03-20 Thread Felix Frank
On 03/20/2013 08:09 AM, Francis Pereira wrote: Looks like this is related to https://projects.puppetlabs.com/issues/9901 I have changed 'daemonize %= daemonize %' to 'daemonize %= @daemonize %' and it seems to work. The variable daemonize seems to collide with Ruby method names as

<    2   3   4   5   6   7   8   9   10   11   >