Re: [Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-26 Thread shlo . afgin
Yes On Wednesday, October 26, 2016 at 10:23:59 AM UTC+3, Lowe Schmidt wrote: > > So you did remove the SSL certificate on the _agent_ as well? > -- > Lowe Schmidt | +46 723 867 157 > > > On 26 October 2016 at 08:22, > wrote: > > In the log: > > > > Could not prepare for execution: The certi

Re: [Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-25 Thread shlo . afgin
In the log: *Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key.* *Certificate fingerprint: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:...* *To fix this, remove the certificate from both the master and the agent and then

[Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-25 Thread shlo . afgin
Hi, I need to renew the SSL certificate. I overwrite the old certificate files with the new files and restart the httpd. When I tried to run puppet from the agent I get: ... Error: Could not request certificate: Error 500 on SERVER ... Phusion Passenger Web application could no

[Puppet Users] Checking directories

2014-12-14 Thread shlo . afgin
Hi, Is there any way to check all directory with Puppet, like checking all /etc/ with all the files in it? Thanks. -- 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 emai

[Puppet Users] SOLVED ? Re: ERROR: Could not evaluate: Could not retrieve information from environment production source(s)

2014-06-25 Thread shlo . afgin
This problem disappear without know reason So Ignore my question. On Wednesday, June 25, 2014 12:06:47 PM UTC+3, shlo@gmail.com wrote: > > > > Hi, > > I upgrade my Puppet server and agent to Puppet 3.6.2 ( I had Puppet > server: 3.3.1 Puppet agent: 2.7.25). > > When I run puppet on the a

[Puppet Users] ERROR: Could not evaluate: Could not retrieve information from environment production source(s)

2014-06-25 Thread shlo . afgin
Hi, I upgrade my Puppet server and agent to Puppet 3.6.2 ( I had Puppet server: 3.3.1 Puppet agent: 2.7.25). When I run puppet on the agent I get the errors: Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve information from environment production source(s) puppe

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: *' from my script. Now when I start httpd, after changing t

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 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 = /us

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

2014-06-17 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 runni

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");

[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

[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 sho

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

2014-06-16 Thread shlo . afgin
Hi, Until now I work with manifest file. Now I would like to create a perl/php script that will create the YAML script and should overwrite the manifest file. So I edit the file puppet.conf and put: mode_terminus = exec external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000

[Puppet Users] ENC with Dashboard

2014-06-12 Thread shlo . afgin
Hi, I have open source Puppet Server 3.3.1 and on agent 2.7.25. I install puppet-dashboard. After a break, I return to the puppet server and I would like to use try it with ENC. I did not understand in basic how it work. 1. In the file external_node which certs I need to put? I un

Re: [Puppet Users] How puppet install another version of the same package.

2014-04-23 Thread shlo . afgin
The output contain : warning: Package libstdc++ found in both yum and yum; skipping the yum version . package { 'libstdc++': ensure => '4.4.7-4.el6', } other packages ... On Wednesday, April 23, 2014 1:22:05 PM UTC+3, Felix.Frank wrote: > > On 04/23/2014 08:25 AM, shlo@gm

Re: [Puppet Users] How puppet install another version of the same package.

2014-04-22 Thread shlo . afgin
Hi, I did not understand what you mean, I can tell what I did: I run on one computer the command: puppet resource package I took the output and put it in puppet. Run puppet on another computer and I got this error. Thanks. On Wednesday, April 16, 2014 3:46:30 PM UTC+3, Felix.Frank wrote: >

[Puppet Users] How puppet install another version of the same package.

2014-03-04 Thread shlo . afgin
Hi I want to install same package with a 2 different version like: libstdc++-4.4.7-3.el6.i686 libstdc++-4.4.7-3.el6.x86_64 I put it in puppet init file and when I run puppet I get: err: /Package[libstdc++]/ensure: change from 4.4.7-3.el6 to 4.4.7-4.el6.i686 failed: Could not update: Executi

[Puppet Users] Write a function to puupet

2014-01-15 Thread shlo . afgin
Hi, I want to write a function for Puppet that check if package already defined, I saw in this group to do: define safepackage ( $ensure = present ) { if !defined(Package[$title]) { package { $title: ensure => $ensure } } } In which file I need put this function

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-19 Thread shlo . afgin
Thanks it's working. But one problem left, each time Puppet run I saw the server in the Dashboard mark as 'Changed'. Nothing really changed, I need puppet to mark it as 'Unchanged'. How I can change it so Dashboard will mark it as 'Unchanged' action? On Wednesday, December 18, 2013 4:58:24 PM

Re: [Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread shlo . afgin
I did not understand where exactly put the test line. I tried: exec { "ls": command => test $(grep -c aa /tmp/aao) -gt 0 returns => 1, path => "/usr/bin:/usr/sbin:/bin", } I got the error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: C

[Puppet Users] How Puppet can evaluate the output od command?

2013-12-18 Thread shlo . afgin
Hi, I want to run a command something like: *cat /tmp/aao | grep aa | wc -l* Check the output of that command, if the output is '0', I want to get a failure from puppet. I tried to use 'exec' with 'returns' but it's seem that 'returns' take the return code of the command and not the output of

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-15 Thread shlo . afgin
Hi, For installing Dashboard, I follow the instruction in: http://docs.puppetlabs.com/dashboard/manual/1.2/index.html In section 'Serving Dashboard With Passenger and Apache' I use the default port 80. I tried to change it to port 3000, but all the Dashboard stop working. I search the fi

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Sorry I had a spelling mistake in the hostname. Now the manifest file work okay with the $hostname variable. I left with the problem with Dashboard that don't give me the 'Inventory' details. Sorry & Thanks again for the promptly answers. On Thursday, December 12, 2013 1:59:52 PM UTC+2, shl

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
In the end of the file I add : node default { } Thanks again On Thursday, December 12, 2013 12:45:49 PM UTC+2, Felix.Frank wrote: > > On 12/12/2013 11:42 AM, shlo@gmail.com wrote: > > case $hostname { > >'puppetagent': {include sendmail} > > } > > Puppet

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, I add 'node default {}'. Now I don't get any errors but it don't execute the case $hostname { 'puppetagent': {include sendmail} } Puppet don't use the value in $hostname. I understood that it's not recommended way to use $hostname as variable, but it should work. A

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, 1. When I have in node.pp: case $hostname { 'puppetagent': {include sendmail} } I got the error: *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'puppetagent.weizmann.ac.il

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-12 Thread shlo . afgin
Hi, When I write the name of the agent explicitly : node puppetagent.yourdomain { include sendmail } it's work. I get the mention error when I try to use the facter and use $hostname in my manifest file node.pp Thanks a lot. On Thursday, December 12, 2013 10:55:33 AM UTC+2,

Re: [Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-11 Thread shlo . afgin
Hi, Thank you very much for your quick response. I tried it and now I get: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'puppetagent.weizmann.ac.il, puppetagent.weizmann.ac, puppetagent.weizmann, puppetagent' o

[Puppet Users] Cannot see Inventory in Dashboard & failed to use facer variable in manifest

2013-12-11 Thread shlo . afgin
Hi, In Dashboard, in the 'Inventory' section I get nothing but the error: Could not retrieve facts from inventory service: 403 "Forbidden" When I tried to use facter variables in the manifest, it look like it's not working. (I new in that so I never tried it before). I have something like

[Puppet Users] Re: what is the right way to ensure specific version installed on puppet agent?

2013-12-04 Thread shlo . afgin
Thank you very much for your detailed answer. On Wednesday, December 4, 2013 4:56:34 PM UTC+2, jcbollinger wrote: > > > > On Wednesday, December 4, 2013 1:19:55 AM UTC-6, shlo@gmail.com wrote: >> >> >> >> Hi, >> >> I wanted to install mysql-5.1.66 and make sure mysql-5.5.34 removed so I >>

[Puppet Users] Enabling Inventory Support for dashboard give SSL_connect error

2013-12-04 Thread shlo . afgin
I tried to Enabling Inventory Support for dashboard. I follow the instruction in http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html In the node page under the 'Inventory' I get: Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv2/v3 read se

[Puppet Users] what is the right way to ensure specific version installed on puppet agent?

2013-12-03 Thread shlo . afgin
Hi, I wanted to install mysql-5.1.66 and make sure mysql-5.5.34 removed so I make a init.pp file and put in it: class mysql { package { 'mysql': ensure => "5.1.66-2.el6_3", require => [Package['mysql-libs'], Package['compat-mysql'],

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

2013-12-03 Thread shlo . afgin
Hi, I follow book of older puppet version. I saw in the link you sent about 'Background Tasks' window, with ' pending tasks' and the command: sudo -u puppet-dashboard env RAILS_ENV=production script/delayed_job -p dashboard -n 4 -m start I run it and now I have the nodes and logs. Thank you very

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

2013-12-02 Thread shlo . afgin
under [master] tag I have: reports = store, http reporturl = http://puppetsrv:80/reports On Monday, December 2, 2013 7:18:40 PM UTC+2, kaustubh chaudhari wrote: > > what are you [master] setting in puppet.conf what is the 'report = ' > configured for ? > > -Kaustubh > > On Monday, Decembe

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

2013-12-02 Thread shlo . afgin
I continue with the instruction of configure Dashboard. First, I dont see a list of nodes I have, Do I need to add them manually to Dashboard or it should came up automatically? I tried to set "Importing exiting reports" : I dont have /var/puppet/lib/reports, how can I know where my report exist

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

2013-12-02 Thread shlo . afgin
Thanks, I test it today and now both work. On Thursday, November 28, 2013 10:42:54 AM UTC+2, Felix.Frank wrote: > > 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

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

2013-11-27 Thread shlo . afgin
I think the problem is with *merging Dashboard with Passenger*. What I need to have in my Apache config file? For *Passenger* I need to have in the Apache configuration file the lines: Listen 8140 SSLEngine On SSLProtocol All -SSLv2 SSLCipherSuite HIGH:!ADH:RC4+R

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

2013-11-26 Thread shlo . afgin
Hi, I had Puppet + Passenger installed and working. Then I installed Dashboard on the puppet master. I had to change the apache configuration file and replace the virtual host I had when I install Passenger with contain: ServerName puppetsrv.domain.com DocumentRoot /usr/share/puppet

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Is there good website i can read about it more? On Thursday, November 21, 2013 4:20:34 PM UTC+2, jcbollinger wrote: > > > > On Thursday, November 21, 2013 7:00:24 AM UTC-6, shlo@gmail.com wrote: >> >> Do I need to install something special for that or it came with Puppet? >> >> > > It is essen

Re: [Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Do I need to install something special for that or it came with Puppet? On Thursday, November 21, 2013 2:34:00 PM UTC+2, Jason Antman wrote: > > As far as I know, "/usr/bin/puppet_node_classifier" is supposed to be > the path to your ENC script. > > What ENC are you trying to use? Either your EN

[Puppet Users] cannot find puppet_node_classifier

2013-11-21 Thread shlo . afgin
Hi, I'm trying to learn configure puppet nodes using ENC. The instruction tell to add to puppet.conf the line: external_nodes = /usr/bin/puppet_node_classifier I cannot find puppet_node_classifier anywhere in my system. I have puppet 3.3.1 installed. What I need to install in order to have i

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
Thanks, It's work! On Thursday, November 14, 2013 1:29:03 AM UTC+2, jcbollinger wrote: > > > > On Wednesday, November 13, 2013 8:29:33 AM UTC-6, shlo@gmail.comwrote: >> >> >> >> From the command line, with '*rpm*' I get errors about dependencies but >> if I remove it using '*yum*' it remove i

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
>From the command line, with '*rpm*' I get errors about dependencies but if I remove it using '*yum*' it remove it successfully. so I write: *package { 'php-common':* * provider => 'yum',* * ensure => absent,* *}* But it still use the '*rpm*' command and give me conflict rpm have. It's ignor

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-13 Thread shlo . afgin
Now I got an error that Puppet cannot successfully remove the php with the error: *Error: Execution of '/bin/rpm -e 'php-5.5.5-2.el6.remi.x86_64' returned 1: error: package 'php-5.5.5-2.el6.remi.x86_64 is not installed* *Error: /Stage[main]/Php/Package[php-5.5.5-2.el6.remi.x86_64]/ensure: chan

Re: [Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-12 Thread shlo . afgin
In this case I need to ensure it delete php-5.5.5 and after that install php-5.3.3. When trying to install php-5.3.3 when php-5.5.5 exist it exit with errors about conflict in version. How can I ensure that specific version of php is absent? On Monday, November 11, 2013 4:38:12 PM UTC+2, Derek

[Puppet Users] What the correct way to downgrade version with puppet? (CentOS 6.4)

2013-11-10 Thread shlo . afgin
Hi, I'm using Puppet to downgrade php from 5.5.5 to 5.3.3. It failed because yum command failed. It has dependencies that need to removed or downgrade. ... php-common(x86-64) = 5.5.5-2.el6.remi is needed by (installed) php-xml-5.5.5-2.el6.remi.x86_64 ... How can I tell Puppet to remove

[Puppet Users] Re: err: Could not retrieve catalog; skipping run

2013-11-03 Thread shlo . afgin
I cannot find the cause to this problem. There is any other place that I can ask? Now I get the error: info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from environment production source(s) puppet://puppetsrv/plugins warning: Not using

[Puppet Users] err: Could not retrieve catalog; skipping run

2013-10-30 Thread shlo . afgin
Hi, I install puppet 2.6.18, test it and it was working okay. Then I install Apache and Passenger on the Puppet server. I run on a puppet agent: puppet agent —test And I got the error: "warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run" In the p