Re: [Puppet Users] Re: howto trigger action on another client
Hi On Jun 27, 9:37 am, Andreas Kuntzagk andreas.kuntz...@mdc-berlin.de wrote: Thanks for these infos. I think I got at least a vague idea how this works and can already use it for some simple cases. One more question: If I define checks for the exported exec (like creates or onlyif will these run on the exporting agent or the executing agent? (my guess is the second but want to make sure) The 'unless' and / or 'onlyif' command will run on the same nodes that the main command runs on. Likewise the criterion implied by the 'creates' parameter is evaluated on the same nodes that the main command runs on. In all cases, that means these apply to the node(s) that *collect* the Exec resources. If this is the case is there a way to run the exec depending on some checks on the exporting agent? Certainly. Define one or more custom facts embodying the results of your tests (it's pretty easy). Distribute these via Puppet's pluginsync mechanism. Use conditionals based on the fact values to control whether the Exec's are exported, and / or to vary their parameters (e.g. setting unless = '/bin/true' is one way for the exporter to disable execution). In general, facts, including custom facts, are the Puppet means for providing nodes' state details to the puppetmaster. It's probably the clean puppet way(tm) to do it but to write custom facts you need to learn some Ruby. Currently I'd like to avoid learning yet another programming language. There are other ways the GridEngine master can test for the status of the client. regards, Andreas -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: howto trigger action on another client
On Jun 28, 2:36 am, Andreas Kuntzagk andreas.kuntz...@mdc-berlin.de wrote: [... I wrote:] In general, facts, including custom facts, are the Puppet means for providing nodes' state details to the puppetmaster. It's probably the clean puppet way(tm) to do it but to write custom facts you need to learn some Ruby. Currently I'd like to avoid learning yet another programming language. There are other ways the GridEngine master can test for the status of the client. It may indeed be that Puppet is not the best available mechanism for enrolling new execution nodes into GE. Puppet excels at managing (semi-)permanent state details that individually are confined to a single node. It can certainly be applied to more general scenarios, but as you move away from its core focus, Puppet begins to lose some of its appeal. In particular, if you find yourself doing complex things with Execs then you are probably running against the grain. As for custom facts, however, whether you would need to learn any Ruby depends somewhat on the complexity of the fact you need. If the fact value can be represented as the standard output of an OS command then you can just plug it in to the example at http://docs.puppetlabs.com/guides/custom_facts.html#an-example. In that case there is no need to understand the bit of Ruby window dressing that interfaces the command with Facter. Indeed, that window dressing is much more Puppet-specific than Ruby-general anyway. John -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] review
Hello. Here is a custom fact I created for enumerating netgroups from an ldap directory. As I'm a total ruby newbie, I'd be interested by review for it. -- BOFH excuse #439: Hot Java has gone cold -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. #!/usr/bin/ruby -w require 'ldap' require 'socket' $HOST = 'ldap.saclay.inria.fr' $PORT = LDAP::LDAP_PORT base = 'ou=netgroups,dc=saclay,dc=inria,dc=fr' scope = LDAP::LDAP_SCOPE_SUBTREE filter = '(objectclass=nisNetgroup)' attrs = ['cn', 'nisNetgroupTriple'] hostname = Socket::gethostname regex = /#{hostname}/ Facter.add(netgroups) do setcode do netgroups = Array.new() conn = LDAP::Conn.new($HOST, $PORT) begin conn.search(base, scope, filter, attrs) { |entry| cn = entry.vals('cn') entry.vals('nisNetgroupTriple').each { |val| if (regex.match(val)) netgroups cn end } } rescue LDAP::ResultError exit end conn.unbind netgroups.join(,) end end
Re: [Puppet Users] review
Hi Guillaume, I would say that the fact looks pretty solid, with one little detail. The way facter was designed was to contain all of the logic to resolve a fact within the setcode block. If one of the requires fail, ruby will throw a LoadError, which facter will catch. However, if any of the logic outside of the setcode block threw a NoMethodError or any exception that isn't a child of ScriptError, facter will not catch it and subsequently crash. In this specific case, the fact you wrote should be fine, but in the general case, you would want a fact to be entirely self contained within the setcode block. On Tue, Jun 28, 2011 at 6:57 AM, Guillaume Rousse guillomovi...@gmail.comwrote: Hello. Here is a custom fact I created for enumerating netgroups from an ldap directory. As I'm a total ruby newbie, I'd be interested by review for it. -- BOFH excuse #439: Hot Java has gone cold -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] struggling with precedence/declarative language
I think that the heat must be affecting me because this seems so simple but it's eluded me for too long now. What I am trying to do is create a symlink from one directory to another AFTER the package is installed. The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet Which I gather means that it can't create the symbolic link to a directory that doesn't exist yet but it could be my syntax and I have checked/rechecked/simplified but still... class firebird::install { package { firebird2.1-classic: name = firebird2.1-classic, ensure = installed, #require = Class[firebird::configure], notify = Class[firebird::service, firebird::configure], } package { firebird2.1-dev: name = firebird2.1-dev, ensure = installed, } } class firebird::service { service { firebird2.1-classic: ensure = running, hasstatus = true, hasrestart = true, enable = true, } exec { Create symlink for /var/fbdata: path= /usr/local/bin:/usr/local/sbin:/bin:/usr/bin, environment = HOME=/root, user= root, group = root, mode= 755, command = /bin/ln -s /var/lib/firebird/2.1/data /var/fbdata, refresh = false, #unless = /bin/ls -l /var/fbdata, logoutput = on_failure, } } -- Craig White ~~ craig.wh...@ttiltd.com 1.800.869.6908 ~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] struggling with precedence/declarative language
On Tue, 28 Jun 2011 20:01:20 +0200, Craig White craig.wh...@ttiltd.com wrote: The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet class firebird::service { exec { Create symlink for /var/fbdata: ... mode= 755, ... } Maybe exec resources, like your Create symlink ... do not want a mode parameter? -- Cosimo -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] struggling with precedence/declarative language
On Jun 28, 2011, at 1:01 PM, Craig White wrote: I think that the heat must be affecting me because this seems so simple but it's eluded me for too long now. What I am trying to do is create a symlink from one directory to another AFTER the package is installed. The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet Which I gather means that it can't create the symbolic link to a directory that doesn't exist yet but it could be my syntax and I have checked/rechecked/simplified but still... Do you have a root firebird class? In your init.pp for the firebird module, you might consider adding something like this to create the dependency order you're looking at. Class['firebird::install'] - Class['firebird::service'] All items in the firebird::install class will happen before the firebird::service class. class firebird::install { package { firebird2.1-classic: name = firebird2.1-classic, ensure = installed, #require = Class[firebird::configure], notify = Class[firebird::service, firebird::configure], } package { firebird2.1-dev: name = firebird2.1-dev, ensure = installed, } } class firebird::service { service { firebird2.1-classic: ensure = running, hasstatus = true, hasrestart = true, enable = true, } Also, does the service start require the symlink to exist before you start the service? you might want to consider adding a dependency here as well. Maybe a 'require = Exec['Create symlink for /var/fbdata'],' exec { Create symlink for /var/fbdata: path= /usr/local/bin:/usr/local/sbin:/bin:/usr/bin, environment = HOME=/root, user= root, group = root, mode= 755, command = /bin/ln -s /var/lib/firebird/2.1/data /var/fbdata, refresh= false, #unless = /bin/ls -l /var/fbdata, logoutput = on_failure, } } Any reason this is an Exec as opposed to using the file resource to accomplish this for you? file { '/var/fbdata': ensure = link, target = '/var/lib/firebird/2.1/data } -- Craig White ~~ craig.wh...@ttiltd.com 1.800.869.6908 ~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] struggling with precedence/declarative language
On Jun 28, 2011, at 11:14 AM, Cosimo Streppone wrote: On Tue, 28 Jun 2011 20:01:20 +0200, Craig White craig.wh...@ttiltd.com wrote: The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet class firebird::service { exec { Create symlink for /var/fbdata: ... mode= 755, ... } Maybe exec resources, like your Create symlink ... do not want a mode parameter? duh, of course it is irrelevant and I removed it - don't know what I was thinking. It didn't solve the issue though Craig -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] FIPS 140-2 compliance
I've just posted a feature request http://projects.puppetlabs.com/issues/8120 relating to FIPS 140-2 compliance. I'm pointing to it here on the mailing list because I listed there five places where Puppet (nay, Ruby!) crashed while I was testing a deployment using FIPS mode on all hosts. It crashed because it tried to use MD5, and OpenSSL in FIPS mode doesn't let you do that. When I replaced these five usages of Digest::MD5 with Digest::SHA256, things ran well, but it's merely a stopgap. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] FIPS 140-2 compliance
On Tue, Jun 28, 2011 at 11:24, Jennings, Jared L CTR USAF AFMC 46 SK/CCI jared.jennings@eglin.af.mil wrote: I've just posted a feature request http://projects.puppetlabs.com/issues/8120 relating to FIPS 140-2 compliance. I'm pointing to it here on the mailing list because I listed there five places where Puppet (nay, Ruby!) crashed while I was testing a deployment using FIPS mode on all hosts. It crashed because it tried to use MD5, and OpenSSL in FIPS mode doesn't let you do that. When I replaced these five usages of Digest::MD5 with Digest::SHA256, things ran well, but it's merely a stopgap. Hey, thanks for filing away that request. We had previous folks asking for similar things, but no one indicated that FIPS compliant OpenSSL would absolutely refuse to work with MD5, full stop. Am I right in imagining, given your title, that FIPS mode is an absolute requirement for y'all to use Puppet on your systems? Regards, Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman dan...@puppetlabs.com ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] eclipse install gepetto
hello list I am attempting to install gepetto into my eclipse environment. I have added the 'cloudsmith's' repo to eclipse: Cloudsmith - http://download.cloudsmith.com/geppetto/updates; but when I select the software to install this is the error I see Your original request has been modified. Eclipse CVS Client is already installed, so an update will be performed instead. Eclipse Platform is already installed, so an update will be performed instead. Equinox p2 Provisioning is already installed, so an update will be performed instead. Cannot complete the install because of a conflicting dependency. Software being installed: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) Software currently installed: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) Only one of the following can be installed at once: Internet Connection Management 1.2.100.I20100511-0800 (org.eclipse.core.net 1.2.100.I20100511-0800) Internet Connection Management 1.2.1.r35x_20090812-1200 (org.eclipse.core.net 1.2.1.r35x_20090812-1200) Cannot satisfy dependency: From: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) To: org.eclipse.core.net [1.2.1.r35x_20090812-1200] Cannot satisfy dependency: From: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) To: org.eclipse.core.net [1.2.100.I20100511-0800] may I have some advice on how to get past this point? thanks! tim -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] syntax highlighting on emacs
Hi guys, I'm trying to install the syntax highlighting on emacs for Puppet. I'm using the configuration files provide on http://projects.reductivelabs.com/repositories/browse/puppet/ext/emacs When I open a .pp file I got this error: File mode specification error: (void-function puppet-mode) Thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] struggling with precedence/declarative language
Did the error change, at least? If so, can you post the new error? -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Tue, Jun 28, 2011 at 11:23 AM, Craig White craig.wh...@ttiltd.comwrote: On Jun 28, 2011, at 11:14 AM, Cosimo Streppone wrote: On Tue, 28 Jun 2011 20:01:20 +0200, Craig White craig.wh...@ttiltd.com wrote: The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet class firebird::service { exec { Create symlink for /var/fbdata: ... mode= 755, ... } Maybe exec resources, like your Create symlink ... do not want a mode parameter? duh, of course it is irrelevant and I removed it - don't know what I was thinking. It didn't solve the issue though Craig -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Using Mcollective with Enterprise Ruby
As I've gotten to the point of configuring server.cfg and client.cfg, based on the documentation in Pro Puppet (which also references use of RPMs), it seems we have some configuration issues -- perhaps about standards of where things need to be located. The book refers to a non-existent directory, /usr/share/mcollective/ plugins. The RPMs create /etc/mcollective/plugin.d (empty). Thus, when you start the server, it fails with the following errors: E, [2011-06-28T16:16:19.419481 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Facts::Yaml_facts: no such file to load -- mcollective/facts/yaml_facts.rb E, [2011-06-28T16:16:19.419708 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Connector::Stomp: n o such file to load -- mcollective/connector/stomp.rb E, [2011-06-28T16:16:19.419891 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Security::Psk: no s uch file to load -- mcollective/security/psk.rb E, [2011-06-28T16:16:19.420036 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Registration::Agent list: no such file to load -- mcollective/registration/agentlist.rb I, [2011-06-28T16:16:19.420433 #25040] INFO -- : mcollectived:31 The Marionette Collective 1.2.0 started logging at info level I could be mistaken. What's missing? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: eclipse install gepetto
I think there is a version issue. I had Eclipse Galileo (3.5.2) installed from Ubuntu (11.04) and had similar issues (dependency issues, different 'pacakges'). I downloaded Indigo (3.7) and don't have issues now. One thing I noticed was in the Geppetto 'repo' it has a list of plugins other then Geppetto. The Eclipse Platform previously showed as not being installed. Now it does. So I'm guessing they have a dependency on Eclipse Platform for a specific version(s) and if you don't meet that it will try to auto update it, but fail since only 1 version can be installed at a time. I'm totally new to Eclipse. So a lot of above is hypothesis. But I do know downloading 3.7 and using that I now have no issues. Regards, Jake On Jun 28, 1:33 pm, bluethundr bluethu...@gmail.com wrote:d hello list I am attempting to install gepetto into my eclipse environment. I have added the 'cloudsmith's' repo to eclipse: Cloudsmith -http://download.cloudsmith.com/geppetto/updates; but when I select the software to install this is the error I see Your original request has been modified. Eclipse CVS Client is already installed, so an update will be performed instead. Eclipse Platform is already installed, so an update will be performed instead. Equinox p2 Provisioning is already installed, so an update will be performed instead. Cannot complete the install because of a conflicting dependency. Software being installed: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) Software currently installed: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) Only one of the following can be installed at once: Internet Connection Management 1.2.100.I20100511-0800 (org.eclipse.core.net 1.2.100.I20100511-0800) Internet Connection Management 1.2.1.r35x_20090812-1200 (org.eclipse.core.net 1.2.1.r35x_20090812-1200) Cannot satisfy dependency: From: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) To: org.eclipse.core.net [1.2.1.r35x_20090812-1200] Cannot satisfy dependency: From: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) To: org.eclipse.core.net [1.2.100.I20100511-0800] may I have some advice on how to get past this point? thanks! tim -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: Using Mcollective with Enterprise Ruby
you are using the RPMs? what version and what have you installed. plugins.d is not where plugins go it would be /usr/share/mcollective of /usr/libexec/mcollective depending on distro etc - Original Message - As I've gotten to the point of configuring server.cfg and client.cfg, based on the documentation in Pro Puppet (which also references use of RPMs), it seems we have some configuration issues -- perhaps about standards of where things need to be located. The book refers to a non-existent directory, /usr/share/mcollective/ plugins. The RPMs create /etc/mcollective/plugin.d (empty). Thus, when you start the server, it fails with the following errors: E, [2011-06-28T16:16:19.419481 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Facts::Yaml_facts: no such file to load -- mcollective/facts/yaml_facts.rb E, [2011-06-28T16:16:19.419708 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Connector::Stomp: n o such file to load -- mcollective/connector/stomp.rb E, [2011-06-28T16:16:19.419891 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Security::Psk: no s uch file to load -- mcollective/security/psk.rb E, [2011-06-28T16:16:19.420036 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to load Mcollective::Registration::Agent list: no such file to load -- mcollective/registration/agentlist.rb I, [2011-06-28T16:16:19.420433 #25040] INFO -- : mcollectived:31 The Marionette Collective 1.2.0 started logging at info level I could be mistaken. What's missing? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- R.I.Pienaar -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] struggling with precedence/declarative language
FInally solved it via 'require = Class['firebird::install'] to force that to run prior to firebird::service which leads me to a new question but I will start a new thread because I can use a much simpler example which has the same problem. Thanks Craig On Jun 28, 2011, at 12:14 PM, Nathan Clemons wrote: Did the error change, at least? If so, can you post the new error? -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Tue, Jun 28, 2011 at 11:23 AM, Craig White craig.wh...@ttiltd.com wrote: On Jun 28, 2011, at 11:14 AM, Cosimo Streppone wrote: On Tue, 28 Jun 2011 20:01:20 +0200, Craig White craig.wh...@ttiltd.com wrote: The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter mode at /etc/puppet/modules/firebird/manifests/service.pp:17 on node ubuntu2.ttinet class firebird::service { exec { Create symlink for /var/fbdata: ... mode= 755, ... } Maybe exec resources, like your Create symlink ... do not want a mode parameter? duh, of course it is irrelevant and I removed it - don't know what I was thinking. It didn't solve the issue though Craig -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Using Mcollective with Enterprise Ruby
Because I'm using Enterprise Ruby I had to manually run make rpm and use those. This is on RHEL5. It's just confusing when a book says one thing, the dist another. I also noticed that /usr/libexec/mcollective may have been installed incorrectly by the RPM. It installs it as /usr/libexec/mcollective/ mcollective. There is no plugin directory under it tho. There is no /usr/share/mcollective created by the RPMs. Thanks. On Jun 28, 4:36 pm, R.I.Pienaar r...@devco.net wrote: you are using the RPMs? what version and what have you installed. plugins.d is not where plugins go it would be /usr/share/mcollective of /usr/libexec/mcollectivedepending on distro etc - Original Message - As I've gotten to the point of configuring server.cfg and client.cfg, based on the documentation in Pro Puppet (which also references use of RPMs), it seems we have some configuration issues -- perhaps about standards of where things need to be located. The book refers to a non-existent directory, /usr/share/mcollective/ plugins. The RPMs create /etc/mcollective/plugin.d (empty). Thus, when you start the server, it fails with the following errors: E, [2011-06-28T16:16:19.419481 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to loadMcollective::Facts::Yaml_facts: no such file to load --mcollective/facts/yaml_facts.rb E, [2011-06-28T16:16:19.419708 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to loadMcollective::Connector::Stomp: n o such file to load --mcollective/connector/stomp.rb E, [2011-06-28T16:16:19.419891 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to loadMcollective::Security::Psk: no s uch file to load --mcollective/security/psk.rb E, [2011-06-28T16:16:19.420036 #25040] ERROR -- : pluginmanager.rb: 111:in `loadclass' Failed to loadMcollective::Registration::Agent list: no such file to load --mcollective/registration/agentlist.rb I, [2011-06-28T16:16:19.420433 #25040] INFO -- : mcollectived:31 The Marionette Collective 1.2.0 started logging at info level I could be mistaken. What's missing? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- R.I.Pienaar -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Eclipse Task Tags
Does anyone know if you can get task tags for Gepetto in Eclipse. I see that it works only for CSS, HTML and a couple more. Can I add this functionality for puppet projects? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Certificate problems when upgrading to 2.7.1
Hi, I'm playing around with upgrading to 2.7.1 in the lab, and I'm not getting terribly far. After upgrading, when a 2.7.1 client attempts to connect to my formerly working puppet master (also upgraded to 2.7.1), I'm given this error: err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run Any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Newbie observation
I am starting to find a pattern in my development and perhaps this might be useful to others. When I am doing a fairly complicated package, perhaps with templates for config files I break them all up. so I have (using apache for an example) modules/apache/manifests/ / init.pp / configure.pp / install.pp / service.pp / vhost.pp (apache/nginx specific I think) configure.pp likely has... require = Class[apache::install], notify = Class[apache::service], install.pp likely will... notify = Class[apache::service], service.pp likely will... require= Class[apache::install], vhost.pp likely will... require = Class[apache::install], notify = Class[apache::service], This has the following effects... packages are installed first service is restarted when configuration changes occur I've been putting dependent packages into modules/prerequisite/manifests and I have to 'include' them if I want to use them with notify/require - for example, apache w/ passenger installation requires some other packages... class prerequisite::apache { $prerequisites = [ apache2-prefork-dev, libapr1-dev, libaprutil1-dev ] package { $prerequisites : ensure = installed } } thus I have to include prerequisite::apache' somewhere to require it in the install.pp to keep things cleaner, I have abstracted an apache_server class which includes this and other packages our apache servers will need and on a particular node, I only have to include the apache_server class. class apache_server { include gems::passenger include prerequisite::apache include prerequisite::compiler include prerequisite::compression include prerequisite::ssl } Thus my node might be a bit simpler... apache::configure { 'test.ttinet': port = 8080, ip = *, ssl = false, } apache::vhost { test2.ttinet: port = 8080, docroot = /var/www/test2.ttinet, ssl = false, priority = 10, serveraliases = ['test4', 'test3'], } (obviously I have templates for apache2.conf, ports.conf, ssl.conf and any amount of vhosts -- Craig White ~~ craig.wh...@ttiltd.com 1.800.869.6908 ~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] The Puppet Wiki
Hi all As you'd be aware there's some old and probably not great content on the wiki. We're going to begin moving the good stuff into the Docs site and purging it from the wiki (we'll put in redirects where needed too). We'd love help doing this if anyone is interested too - fork the Docs project at: https://github.com/puppetlabs/puppet-docs And hack away. If you have a page that you'd especially like or think deserves saving in the Wiki now is the time to clean up and edit it and make it nice and shiny. And of course as always feedback on this approach and any other documentation issues, weaknesses or problems is always welcomed. Either via tickets (http://projects.puppetlabs.com/projects/puppet-docs/issues/new) or via email. Thanks James -- James Turnbull Puppet Labs 1-503-734-8571 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Eclipse Task Tags
On 6/29/11 1:09 AM, Vlad wrote: Does anyone know if you can get task tags for Gepetto in Eclipse. I see that it works only for CSS, HTML and a couple more. Can I add this functionality for puppet projects? Hint - there is a Geppetto forum at google groups: https://groups.google.com:443/forum/?hl=en#!forum/puppet-geppetto And to answer your question - the task tags works in the Geppetto manifest editor. Not sure what you mean by if you can get task tags - they are there, they can be set and viewed in the tasks view. Do ypu want to get them in some special way? Regards - henrik -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: eclipse install gepetto
Hi Jake, Thanks for the report, I have updated the Geppetto FAQ (http://cloudsmith.github.com/geppetto/faq.html#2011/06/02/can-i-use-geppetto-in-eclipse) with the fact that Geppetto requires at least Eclipse 3.6 (Helios). I am pleased to hear that it installed fine into 3.7 Indigo. Hint - there is a Geppetto forum at google groups: https://groups.google.com:443/forum/?hl=en#!forum/puppet-geppetto Regards - henrik On 6/28/11 10:26 PM, Jake - USPS wrote: I think there is a version issue. I had Eclipse Galileo (3.5.2) installed from Ubuntu (11.04) and had similar issues (dependency issues, different 'pacakges'). I downloaded Indigo (3.7) and don't have issues now. One thing I noticed was in the Geppetto 'repo' it has a list of plugins other then Geppetto. The Eclipse Platform previously showed as not being installed. Now it does. So I'm guessing they have a dependency on Eclipse Platform for a specific version(s) and if you don't meet that it will try to auto update it, but fail since only 1 version can be installed at a time. I'm totally new to Eclipse. So a lot of above is hypothesis. But I do know downloading 3.7 and using that I now have no issues. Regards, Jake On Jun 28, 1:33 pm, bluethundrbluethu...@gmail.com wrote:d hello list I am attempting to install gepetto into my eclipse environment. I have added the 'cloudsmith's' repo to eclipse: Cloudsmith -http://download.cloudsmith.com/geppetto/updates; but when I select the software to install this is the error I see Your original request has been modified. Eclipse CVS Client is already installed, so an update will be performed instead. Eclipse Platform is already installed, so an update will be performed instead. Equinox p2 Provisioning is already installed, so an update will be performed instead. Cannot complete the install because of a conflicting dependency. Software being installed: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) Software currently installed: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) Only one of the following can be installed at once: Internet Connection Management 1.2.100.I20100511-0800 (org.eclipse.core.net 1.2.100.I20100511-0800) Internet Connection Management 1.2.1.r35x_20090812-1200 (org.eclipse.core.net 1.2.1.r35x_20090812-1200) Cannot satisfy dependency: From: Eclipse Platform 3.5.2 (Eclipse Platform 3.5.2) To: org.eclipse.core.net [1.2.1.r35x_20090812-1200] Cannot satisfy dependency: From: Eclipse Platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi (org.eclipse.platform.feature.group 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi) To: org.eclipse.core.net [1.2.100.I20100511-0800] may I have some advice on how to get past this point? thanks! tim -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.