Re: [Puppet Users] Re: Foreman / External Nodes -- Node Not found
Hi, Foreman returns 404 if a node is not found, if you want puppet do to something for undefined nodes, you would need to create a default node statement. what was your original problem? hostnames were not in fqdn? Ohad On Fri, Jul 23, 2010 at 11:53 PM, CraftyTech wrote: > Now I'm getting som
Re: [Puppet Users] instantiating defines in LDAP
On Jul 23, 2010, at 3:37 PM, John T. Guthrie wrote: > Do I need to create a "wrapper" class for the define instantiation like this: > > class def_inst { >definetest::optfile { > "file1": > fname => "foo"; > "file2": >fname => "bar"; >} > } > > And
Re: [Puppet Users] Try at simple puppet setup -- fails
On 23-Jul-10 18:16, steve . wrote: IIRC, puppetmaster and client will use the same SSL directory by default on the puppetmaster node. Yes, they appear to. You may want to see what puppetca --list says (or if the certificate request is getting through, what it's being saved as in the ssl dir,
[Puppet Users] rollback from 2.6...
Hello, If I installed from source (install.rb), is there a "by the book" method for rolling back to 25.4? I installed 2.6 and it broke my foreman config and ssl certs, not to mention most of the variables from puppet.conf which are deprecated in the latest version Any suggestions? Than
Re: [Puppet Users] Try at simple puppet setup -- fails
IIRC, puppetmaster and client will use the same SSL directory by default on the puppetmaster node. You may want to see what puppetca --list says (or if the certificate request is getting through, what it's being saved as in the ssl dir, etc.) ... I'm running Puppet on the same platform as you, an
Re: [Puppet Users] Design, syntax question for passing values from node.pp
On Fri, Jul 23, 2010 at 1:10 PM, Peter Berghold wrote: > First question that comes to mind: is there a fact for a given node that > determines what file name to use? This sounds like a job for an external node classifier that picks a set of classes to apply to the node. http://docs.reductivelabs
[Puppet Users] Simple setup, separate client and server -- same error
2010-07-23
Thread
WEB PAGE: http://www.dyarstraights.com (08/14/04) WEB PAGE: http://www.livejournal.com/users/allyson13/ (08/14/04) David Dyer-Bennet 11/30/04 Minneapolis, Minnesota Address(es):
Ran through about the same scenario as before, modified for client and server being on separate systems. Got the same error. Here are the details and some things I thought might be relevant info at the end. On server Uninstall puppet. Remove /etc/puppet and /var/lib/puppet. Clean up old puppet
Re: [Puppet Users] Design, syntax question for passing values from node.pp
First question that comes to mind: is there a fact for a given node that determines what file name to use? On Jul 23, 2010 3:55 PM, "bmort" wrote: Is it possible to define variable at this level. I need to pass the monit config file name ( sometimes its monitrc sometimes in not ). Here is wha
[Puppet Users] Design, syntax question for passing values from node.pp
Is it possible to define variable at this level. I need to pass the monit config file name ( sometimes its monitrc sometimes in not ). Here is what I have. # /etc/puppet/manifests/nodes.pp node basenode { include postgresql include monit include wiki include apace } node 'freebeero
Re: [Puppet Users] Try at simple puppet setup -- fails
On Fri, July 23, 2010 14:12, Charles Johnson wrote: > On the client side, try deleting /etc/puppet/ssl (or where ever you are > keeping client puppet data for certificates), kill the client, and restart > the client Client and server are the same system here (I mentioned that in my original messa
Re: [Puppet Users] instantiating defines in LDAP
On 07/23/2010 03:26 PM, Rob McBroom wrote: > On Jul 23, 2010, at 3:04 PM, John T. Guthrie wrote: > > >> What would be the LDAP equivalent of the following AST configuration: >> >> node "test" { >>definetest::optfile { >>"file1": >>fname => "foo"; >>"file2": >>
Re: [Puppet Users] instantiating defines in LDAP
On Jul 23, 2010, at 3:04 PM, John T. Guthrie wrote: > What would be the LDAP equivalent of the following AST configuration: > > node "test" { >definetest::optfile { >"file1": >fname => "foo"; >"file2": >fname => "bar"; >} > } So you want to list in
[Puppet Users] Bootstrapping Puppet on Mac OS X
Hi all, I am new to puppet and have been working on getting it up and running on OS X. I finally got it working, but it took a lot of head pounding so I wrote a post about it (http://trevmex.com/post/850520511/ bootstrapping-puppet-on-mac-os-x). I was hoping that some of you more experienced guys
Re: [Puppet Users] Try at simple puppet setup -- fails
On the client side, try deleting /etc/puppet/ssl (or where ever you are keeping client puppet data for certificates), kill the client, and restart the client puppetd --debug --waitforcert 60 and see what happens. ~Charles~ On Fri, Jul 23, 2010 at 1:38 PM, WEB PAGE: http://www.dyarstraights.com(
[Puppet Users] instantiating defines in LDAP
Hello all, We are in the middle of converting our nodes to LDAP. One question that I am having that I have not been able to find anywhere is how does one instantiate a define in an LDAP node. That is, suppose that I have the following class: class definetest { define optfile(fname) {
[Puppet Users] Try at simple puppet setup -- fails
2010-07-23
Thread
WEB PAGE: http://www.dyarstraights.com (08/14/04) WEB PAGE: http://www.livejournal.com/users/allyson13/ (08/14/04) David Dyer-Bennet 11/30/04 Minneapolis, Minnesota Address(es):
This is my latest simple-as-can-be setup, with more useful information based on questions people asked me. I could sure use some help here; I've even gotten a previous puppet installation working (and it's still working; older puppet version). I'm running Centos 5.5. Puppet is installed from the
Re: [Puppet Users] Failing to connect new client to master
On Fri, July 23, 2010 11:32, Jeff McCune wrote: > On Thu, Jul 22, 2010 at 4:20 PM, Patrick Mohr wrote: >>> On the client, >>> >>> [r...@prc-mn-lnx01 ~]# puppetd --server wrkapp00.esteemedemployer.local >>> --waitforcert 60 --test >>> notice: Ignoring --listen on onetime run >>> err: Could not ret
Re: [Puppet Users] Installing Puppet
You know, as much as I hate to be the advocate of installing non-package software on my systems, I really found it best to use installer.rb from the source tarball. I use ruby enterprise, which is installed in /opt, and if I do /opt/ruby-ee/bin/ruby installer.rb, all of the stuff gets installe
Re: [Puppet Users] Re: checking if a user exists
On Jul 23, 2010, at 11:32 AM, Don Harden wrote: > We have several boxes with zabbix installed via distro rpms and others > that are running old distros that do not have up-to-date rpms. For > both types I want puppet update to or install an in-house compiled > zabbix-agentd package. It seems tha
Re: [Puppet Users] Struggling with syntax
On Fri, Jul 23, 2010 at 2:22 PM, ScubaDude wrote: > Can someone point me in the right direction, I've got two "source" > files one 32bit, on 64bit Probably more elegant to use a ERB template only -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.
Re: [Puppet Users] Failing to connect new client to master
On Thu, Jul 22, 2010 at 4:20 PM, Patrick Mohr wrote: >> On the client, >> >> [r...@prc-mn-lnx01 ~]# puppetd --server wrkapp00.esteemedemployer.local >> --waitforcert 60 --test >> notice: Ignoring --listen on onetime run >> err: Could not retrieve catalog from remote server: certificate verify fail
Re: [Puppet Users] Struggling with syntax
On Fri, Jul 23, 2010 at 9:08 AM, Tony G. wrote: > > Seems like the parser does not allow case statements in the attributes of > the resources. This is correct, case statements must be outside of resource statements. You could use the selector in-statement though. file { "/tmp/foo": source =>
Re: [Puppet Users] Failing to connect new client to master
On Thu, July 22, 2010 18:20, Patrick Mohr wrote: > > On Jul 22, 2010, at 12:20 PM, David Dyer-Bennet wrote: > >> >> On Thu, July 22, 2010 12:27, Patrick Mohr wrote: >>> The hostname the client connects to, must match the name on the >>> server's >>> certificate. >> >> I believe I have that right.
Re: [Puppet Users] Struggling with syntax
On Fri, Jul 23, 2010 at 7:22 AM, ScubaDude wrote: > Can someone point me in the right direction, I've got two "source" > files one 32bit, on 64bit > I've got it to work using the ternary operator but get syntax errors > if I try to use a case: > > Works: > > class audit { > >package { >
[Puppet Users] Re: Foreman / External Nodes -- Node Not found
Now I'm getting some results (Some progress finally !!): --- parameters: puppetmaster: puppet domainname: dev.x.com classes: - basic environment: puppetmasterd But I still get: "server: Error 400 on SERVER: Could not find node 'nodename'". Does this mean that I have define a default node
Re: [Puppet Users] Installing Puppet
On Thu, Jul 22, 2010 at 11:16 PM, parag(PK) wrote: > Can anyone describe the exact puppet installation procedure > I am using a Ubuntu 7.04 system > > > Do you have ruby 1.8.7, gems, and apache and passenger installed? Cheers-- Charles -- You received this message because you are subscri
[Puppet Users] Re: checking if a user exists
> If you don’t care about keeping the UID consistent, then yeah, remove that > line as suggested. Thanks for the suggestions. ALthought it might be nice, I don't really care about keeping the UID consistent, but they should be system UIDs (<500). We have several boxes with zabbix installed via d
[Puppet Users] Struggling with syntax
Can someone point me in the right direction, I've got two "source" files one 32bit, on 64bit I've got it to work using the ternary operator but get syntax errors if I try to use a case: Works: class audit { package { "audit": ensure => present,
Re: [Puppet Users] Re: Recursively setting owner ?
Regarding my initial query, the problem was that the subdirs & files were also declared as separate resources, and hence I had to explicitly mention owner & group for each of them individually. @Tore: Have no clue about the purge option. Did go through the docs, but not sure if I should set it or
Re: [Puppet Users] checking if a user exists
On Jul 22, 2010, at 3:30 PM, Don Harden wrote: > err: //zabbix_agentd/User[zabbix]/uid: change from 489 to 109 failed: > Could not set uid on user[zabbix]: Execution of '/usr/sbin/usermod -u > 109 zabbix' returned 8: usermod: user zabbix is currently logged in If you want the UID to be the same o
[Puppet Users] Re: Foreman / External Nodes -- Node Not found
Small correction: "if I edit the host via Foreman web interface, I can't no longer see it from "curl -k https://foreman/node/nodename?format=yml";; I'd get message "404 Not Found" from the command line" --> I'd have to re- run puppetd -t, to be able to get a result from "curl -k https://foreman/n
[Puppet Users] Re: Recursively setting owner ?
Arn't you missing the purge option? Be carefull, if you do something wrong it could destroy you data. Make a test directory for this. On 23 Jul, 08:07, alcy wrote: > Alright so if I have something like > > file {"xyz": > > ensure=>directory, > mode=>644 > owner=>"abc", >
[Puppet Users] Re: Nagios allowed hosts, how would you do it?
I just realized that this wont work, since the variable allready is defined. The variable must also be defined before the include, since it is used by the module. One way to solve this would be creating a top node which contains vars, which is inhereted by a subnode which have includes, which agai
[Puppet Users] Re: Foreman / External Nodes -- Node Not found
Thanks for the reply Ohad. Actually, that's part of the issue as well; If I edit the host via Foreman web interface, I can't no longer see it from "curl -k https://foreman/node/nodename?format=yml";; I'd get message "404 Not Found" from the command line. On the flip side, I'd have two nodes of t