Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-19 Thread shlo . afgin
*It's work. * It was spelling problem, I change it now to: *node_terminus = exec. * And it work when 'external_nodes =' with or without the ' /usr/bin/env PUPPET_DASHBOARD_URL=http://user:pass@localhost:3000' I also delete *'node: certname*' from my script. Now when I start httpd, after

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-19 Thread jcbollinger
On Thursday, June 19, 2014 2:48:19 AM UTC-5, shlo@gmail.com wrote: *It's work. * It was spelling problem, I change it now to: *node_terminus = exec. * Good. And it work when 'external_nodes =' with or without the ' /usr/bin/env

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread shlo . afgin
*Thanks for the details response.* On Tuesday, June 17, 2014 10:28:01 PM UTC+3, jcbollinger wrote: Probably. Hooking up an ENC is not very hard. If the ENC is not running when a catalog request comes in then most likely the ENC it is not properly configured. Supposing that you are running

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread shlo . afgin
Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 The server run Passenger on Apache, so the puppetmaster run from apache and not by himself. I have in /etc/puppet/puppet.conf : [master] mode_terminus = exec external_nodes =

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread RichTea
On 18 June 2014 14:10, shlo.af...@gmail.com wrote: Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 The server run Passenger on Apache, so the puppetmaster run from apache and not by himself. I have in /etc/puppet/puppet.conf :

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread shlo . afgin
I tried also just /usr/share/puppet-dashboard/bin/external_node it act the same way. I add node:, I hope I did it in the right way because I did not find it in the document - also not work. If I'm not adding any 'node: ', It should work for all the nodes the same. Am I right? or it must appear

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread jcbollinger
On Wednesday, June 18, 2014 8:10:38 AM UTC-5, shlo@gmail.com wrote: Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 That's a potential problem, but not likely the one you're currently fighting. The master provides as much

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread Matthew Burgess
On 18 Jun 2014 14:10, shlo.af...@gmail.com wrote: Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 The server run Passenger on Apache, so the puppetmaster run from apache and not by himself. I have in /etc/puppet/puppet.conf :

[Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread shlo . afgin
Hi, I understood ENC can work without the PuppetDB installation. I cannot make ENC work and I cannot find a log or any way to debug it, so I can find the problem. any idea are welcome. Thanks. -- You received this message because you are subscribed to the Google Groups Puppet Users group.

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread Jason Antman
Yes, I have an idea. 1) Read the documentation: http://docs.puppetlabs.com/guides/external_nodes.html 2) If that doesn't help, post your ENC code, with specific examples of output and problems that you're having. On 06/17/2014 07:49 AM, shlo.af...@gmail.com wrote: Hi, I understood ENC

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread shlo . afgin
I read the documentation. I send yesterday example of my perl ENC code and the output. I'm sending them again: #!/usr/bin/perl -w use strict; use YAML qw(Dump); my $hostname = shift || die No hostname passed; system(echo $hostname /tmp/llkkll);

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread Johan De Wit
I think, in your yaml, you are missing the name: certname Grts jo On 17/06/14 15:19, shlo.af...@gmail.com wrote: I read the documentation. I send yesterday example of my perl ENC code and the output. I'm sending them again: #!/usr/bin/perl -w use strict; use

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread jcbollinger
On Tuesday, June 17, 2014 8:19:59 AM UTC-5, shlo@gmail.com wrote: I read the documentation. I send yesterday example of my perl ENC code and the output. I'm sending them again: #!/usr/bin/perl -w use strict; use YAML qw(Dump); my $hostname = shift || die No

[Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-16 Thread daddy dp
As I know puppet merge both sources ENC and manifest file. You can use empty manifest file to avoid this behavior. Host name will be available as first argument to this script, all others facts you can query from puppetdb. Also you can use hiera as ENC, and all facts will be available for you

[Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-16 Thread shlo . afgin
HI, I empty the file nodes.pp, but it look like it's not running. I make the script to print something to a file, each time it run, but it write it only when I run it from the command line, While I expect to have that print each time the Puppet agent run the puppet command. Is the hostname

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-16 Thread Ken Barber
When I install open source Puppet 3.3.1, I follow old instruction of 2.6.0. I did not install the PuppetDB, unless it came by default installation. Is it installed with open source puppet 3.3.1? No it is not. It's a separate step. Follow the documentation: