Re: [Puppet Users] Problem in PuppetDB

2017-07-20 Thread Alexandre Monteiro
is you're just not > hitting an endpoint. If you're trying to verify that the service is up > and running, the way we typically do that is with > > curl http://localhost:8080/pdb/meta/v1/version > > which should return a blob with a version number. > > Wyatt >

[Puppet Users] Problem in PuppetDB

2017-07-20 Thread Alexandre Monteiro
Hi folks, I'm installing PuppetDB on my desktop. All configuration of puppetserver, postgre is OK .. but occurring return 302 in my curl test. I read many forums and it still did not work .. Here is the error: # curl -v http://localhost:8080 * About to connect() to localhost port 8080 (#0) *

Re: [Puppet Users] Re: Could not evaluate: Could not find command '/var/lib/puppet/concat/bin/concatfragments.rb'

2015-07-13 Thread Alexandre Dumont
Please see https://tickets.puppetlabs.com/browse/MODULES-2206: the existing implementation for concat does not work properly with noop mode, and unfortunately cannot work without violating the principle of noop mode (no changes made on the system). There was some discussion about this, and the issu

[Puppet Users] Re: Could not evaluate: Could not find command '/var/lib/puppet/concat/bin/concatfragments.rb'

2015-07-08 Thread Alexandre Dumont
Same error here, when using puppet module saz-ssh v2.8.1. All my modules are: # *puppet module lis*t /etc/puppet/modules ├── puppetlabs-concat (v1.2.3) ├── puppetlabs-ntp (v4.0.0) ├── puppetlabs-stdlib (v4.6.0) └── saz-ssh (v2.8.1) Some facts from my fresh installation: # *facter os puppetversi

[Puppet Users] Re: CentOS 7.1 : facter problem

2015-04-01 Thread Alexandre Barth
centos-release package has been updated this night and fixes the problem :) Le mercredi 1 avril 2015 09:59:14 UTC+2, Alexandre Barth a écrit : > > OS informations are broken using facter in CentOS 7.1 : os variable is not > populated as it should be, and so operatingsystemmajre

[Puppet Users] CentOS 7.1 : facter problem

2015-04-01 Thread Alexandre Barth
OS informations are broken using facter in CentOS 7.1 : os variable is not populated as it should be, and so operatingsystemmajrelease and operatingsystemrelease are not created at all. I think this comes from the /etc/redhat-release file in centos 7.1 In Centos 7.0, /etc/redhat-release is a sy

[Puppet Users] How to get package version to use it in template ?

2014-10-30 Thread Alexandre Barth
Hello ! I have a problem generating different configuration in a template depending on package version installed. For example, in my httpd module, i'd like to generate configuration using Order, Allow from and Deny from if httpd < 2.4 and Require ip if httpd > 2.4. I know i can create custom fa

[Puppet Users] Re: How to have multi-line external variables ? Failed with extlookup and Dashboard

2012-03-01 Thread Alexandre
Found out that a CSV file with value like alex,"line1 line2" will do the trick, but alex,"line1 line2 \"line3" will not work and alex,"line1 line2 ""line3" will work On Mar 1, 4:58 pm, Alexandre wrote: > Is

[Puppet Users] How to have multi-line external variables ? Failed with extlookup and Dashboard

2012-03-01 Thread Alexandre
Is there a way to be able to externalize multi-line variable (eg to contain pem keys, etc...), to be used like file { "/tmp/alex": content => $::alex # In dashboard: alex = line1\nline2 } file { "/tmp/alex2": content => extlookup('alex') # alex,line1\nline2 } I t

[Puppet Users] Having inheritance issues

2012-02-05 Thread Henderson Alexandre
Hello Puppet user group, I'm unable to get the node controllernode.vps.net to inherit the class basenode to run any of the includes defined in basenode, no errors are reported by puppet. All controllernode.vps.net is able to import from puppet is the hosts module which is defined in site.pp ---

[Puppet Users] Re: Why is 'notify' acting as a 'before' and not a 'require' ?

2012-01-24 Thread Alexandre
> Think about it. You want puppet to send a notification to a resource. > Puppet must decide whether this notification gets sent. So it must > process the notifying resource. After that, *if* a notification was in > fact generated, it can process the notified resource. I see. I was making a differ

[Puppet Users] Why is 'notify' acting as a 'before' and not a 'require' ?

2012-01-24 Thread Alexandre Fouché
Why is 'notify' acting as a 'before' and not a 'require' ? Can someone explain why this way is unlogical to Puppet parser, why the 'notify' would create a dependency cycle ? Why would the 'notify' need to create an order ? Isn't it supposed to carry a message, and not a constraint ? Typically i w

[Puppet Users] Re: Does someone have a working config of nginx+passenger for Puppet

2011-12-15 Thread Alexandre
I see, that is the "passenger_set_cgi_param" which was missing. I was using "proxy_set_header" and that was not working. And clearly my config.ru was missing a lot too, and i had to make symlinks and stuff to point to my Puppet installation dirs Thanks a lot, Alex On 13 déc, 22:14, windowsrefund

[Puppet Users] Does someone have a working config of nginx+passenger for Puppet

2011-12-13 Thread Alexandre
Hi, I tried to adapt the Apache+Passenger donc on the PuppetLabs wiki for use with nginx+passenger, but something is not working maybe i do not set the http headers correctly. Did someone made it work ? Can you share it ? Or is it already posted on the wiki (i did not find so far) ? Please don't a

[Puppet Users] Re: Any way to have exclusive classes?

2011-12-13 Thread Alexandre
yes i kind of do that too. Eg if i have different classes that permit to setup and install each a certain java, and i want to make sure only one of them can be instanciated with Puppet on a server at a time, i make sure one of my ressources in each class has the name file { java: name=>'real name',

[Puppet Users] Re: Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alexandre
There is a function to dynamically create Puppet resources from a hash: createresources(): http://docs.puppetlabs.com/references/stable/function.html#createresources On 27 oct, 17:03, Henrik Lindberg wrote: > Did you try something like: > > define boo($a="a", $b="b", $c="c") { >      bar { $tit

[Puppet Users] Re: Puppet in the DMZ via proxy

2011-10-24 Thread Alexandre
I also had such a scheme, but having the puppetmaster on an internal private IP network, not even a DMZ. Puppet runs were triggered, there was no puppet client daemon or crontabed runs. server with Puppet client is on interent with public IP Local intranet: Puppetmaster a Squid proxy When i want

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-24 Thread Alexandre
to prevent > someone else going through my pain > > > > On 19 October 2011 11:21, Alexandre wrote: > > > > > > > > > Why not use RVM ? It wll be easy to create a ruby env with its gems. > > It is in /usr/local and completely independant from the system

[Puppet Users] Re: How to know the generated certname used by a puppet client, for reuse within erb (because of cloud provisioner) ?

2011-10-19 Thread Alexandre
Great, i had not seen this one, thank you ! On 19 oct, 18:18, Nigel Kersten wrote: > On Wed, Oct 19, 2011 at 2:06 AM, Alexandre Fouché < > > > > > > > > > > alexandre.fou...@gmail.com> wrote: > > Hi, > > > I am using the cloud provisioner

[Puppet Users] EC2 bootstrap: chicken and egg problem with login as ec2-user and sudoers "requiretty"

2011-10-19 Thread Alexandre
Hi, I was previously using an EC2 AMI where i was logging as root, and i could bootstrap nodes. I am now using Amazon AMIs ( http://aws.amazon.com/fr/amazon-linux-ami ) and they require login as ec2-user. The problem is that if i run puppet node bootstrap --login ec2-user, it will detect it and ru

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-19 Thread Alexandre
Why not use RVM ? It wll be easy to create a ruby env with its gems. It is in /usr/local and completely independant from the system ruby and all gems. I enforce not putting any files on the system which are not part of a RPM. For example, i use the puppetmaster and puppet rpms, so that both run an

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-19 Thread Alexandre
Why not use RVM ? It wll be easy to create a ruby env with its gems. It is in /usr/local and completely independant from the system ruby and all gems. I enforce not putting any files on the system which are not part of a RPM. For example, i use the puppetmaster and puppet rpms, so that both run an

[Puppet Users] Re: How to know the generated certname used by a puppet client, for reuse within erb (because of cloud provisioner) ?

2011-10-19 Thread Alexandre
I created a feature request https://projects.puppetlabs.com/issues/10167 On 19 oct, 11:06, Alexandre Fouché wrote: > Hi, > > I am using the cloud provisioner to bootstrap some ec2 nodes, and these > clients are signed using a randomly generated certname, which is put in > /etc/pup

[Puppet Users] How to know the generated certname used by a puppet client, for reuse within erb (because of cloud provisioner) ?

2011-10-19 Thread Alexandre Fouché
Hi, I am using the cloud provisioner to bootstrap some ec2 nodes, and these clients are signed using a randomly generated certname, which is put in /etc/puppet.conf at the bootstrap time (eg certname = d7bcd693-73fd-495f-0876-ff91ea1e). But my puppet code repo also manages the puppet.conf fil

[Puppet Users] Re: More changes on yum.puppetlabs.com

2011-10-18 Thread Alexandre
ah so that's why i could not find it at first. Somewhere in the Cloud provisioner or Dashboard or documentation, there were links to ...prosvc... On 6 oct, 19:34, Michael Stahnke wrote: > Greetings, > > I'd like to remove the cruft (no longer maintained) areas of > yum.puppetlabs.com.  I fear th

Re: [Puppet Users] Reusing host names with puppet and SSL certificates

2011-10-18 Thread Alexandre Fouché
As far as i could see, the Puppet cloud provisionner also generates a random name and creates a certificate request based on it. Then Puppet client is run with the certname option, set with this previously generated hostname 2011/10/17 James A. Peltier > - Original Message - > | > | Is

Re: [Puppet Users] Puppet cant find a class

2011-10-18 Thread Alexandre Fouché
Sorry, it does not help with the problem, but some time ago, i think i had something similar. I had a module+class which is perfectly working, and which was included in the node code. But if this class was in included in another class, it could not be found and puppet run failed. I had no choice b

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Alexandre Fouché
I had a similar problem, i use Git, and i though i could use branches and Git tricks, but it does not mixes well with Puppet environments. What i do below permits to use many puppet code branches, while having my puppetmaster serve all different branches at the same time using environments In my c

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
ever known at the time of the first "realize" call (by the class puppet). But with a content overide, it should work, i suppose 2011/10/13 Nan Liu > On Thu, Oct 13, 2011 at 3:16 AM, Alexandre > wrote: > > Hi, > > > > I am trying to manage the puppet.conf file,

Re: [Puppet Users] Re: How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
organisation and tried to go from there, but i should have seen from a bit higher and rethink how to solve the problems from my requirements and not from what i already had coded ! 2011/10/14 jcbollinger > > > On Oct 13, 5:16 am, Alexandre wrote: > > Hi, > > > > I am tryin

[Puppet Users] How to divide the puppet.conf file in multiple files ?

2011-10-13 Thread Alexandre
Hi, How can i divide my puppet.conf file in multiple files ? I would like to have the [main] and [agent] section in puppet.conf and [master] in puppetmaster.conf for example. I could call sone "include" or "import" statement inside puppet.conf to include the content of puppetmaster.conf in my co

[Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-13 Thread Alexandre
Hi, I am trying to manage the puppet.conf file, but both my classes 'puppet' and 'puppet::master' need to manage it. Basically, the class 'puppet::master' should be able to override the resource, which could be done by inheritance. My problem is that my class 'puppet' is a parameterized class:

[Puppet Users] Re: Creating Users and Hashing it's password.

2011-06-12 Thread Alexandre Martani
On Ubuntu/Debian, you can generate the hash using: mkpasswd -m sha-512 I don't know if it works on Mac, but the output of it looks like the same as the examples posted on this topic, so I think it should work.* * -- You received this message because you are subscribed to the Google Groups "Pu

[Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-17 Thread Alexandre
) , which i described above but i removed them because the whole thing is too convoluted and does not work anyway. On Dec 18, 1:57 am, jcbollinger wrote: > On Dec 17, 8:34 am, jcbollinger wrote: > > > On Dec 16, 9:17 pm, Alexandre wrote: > > [...] > > > > because othe

[Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-17 Thread Alexandre
, jcbollinger wrote: > On Dec 16, 9:17 pm, Alexandre wrote: > [...] > > > because otherwise Puppet would complain at -parsing- time, not execute > > time, since it does not want to have the same ressource(here service) > > declared twice, even if one is not included fo

[Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-17 Thread Alexandre
Yes, in fact this is exactly what i have for the services -i want to install or manage-. A base class with common stuff (eg mysql user, group, pkg, test directories ... and service disabled by default), and a child class ...::server with typically just include the service specific config file and o

[Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-16 Thread Alexandre
read On 15 déc, 22:56, jcbollinger wrote: > On Dec 15, 4:03 am, Alexandre wrote: > > >    I though i found a way to do it, and i would like to show it here, > > but unfortunately it does not exactly work well, see the comment in > > uppercase: global variables seems to be set eve

[Puppet Users] Re: How to override / redefine outside child class (usecase and example detailled)

2009-12-15 Thread Alexandre
I though i found a way to do it, and i would like to show it here, but unfortunately it does not exactly work well, see the comment in uppercase: global variables seems to be set even if no class from the .pp file is included. And i also think now i am going to far into akwardness, just tryin

[Puppet Users] How to override / redefine outside child class (usecase and example detailled)

2009-12-09 Thread Alexandre
The use case i try to illustrate is when to declare some item (eq mysqld service) with a default configuration that could be included on every node (class stripdown in the example, for basenode), and still be able to override this same item in some specific class (eg mysql::server), to be included

[Puppet Users] Cache puppet files

2009-06-29 Thread Alexandre Nascimento
Friends, I Make the update of my files on the puppetmaster server, but servers customers run the classes that no longer exist. Someone could help me? Thank you! -- Alexandre SlackUser "Seja Livre, Use Linux!" --~--~-~--~~~---~--~~ You received th