Re: [Puppet Users] Suggestion - puppet preload stage?

2012-03-22 Thread Amos Shapira
Thanks for the pointer, Gary. It seems to address the issue of missing providers, even better than my suggestion. However, I'm not sure if/how it addresses other situations, e.g.: 1. Provider exists but has to be updated. 2. Puppet version update. 3. Configuration files - missing or have to be u

[Puppet Users] Re: i can't use yum to install any package!!!

2012-03-22 Thread 狐狐
thank every one! i fix this problem! this is ruby-1.8.7's bug! update ruby ! On 3月23日, 上午11时42分, 狐狐 wrote: > node 'node1.example.com' { >         package {'vim-enhanced': ensure => present } >         include sudo >         include ssh > > } > > i think this is right! >  the problem may be >  "d

[Puppet Users] Re: Multiple default providers for package: dpkg, pip; using dpkg, Why?

2012-03-22 Thread 狐狐
I met the same problem on rhel5.4 On 2月23日, 上午7时19分, Kyle Anderson wrote: > I see. I'm running facter 1.5.9 on both Ubuntu 11.10 hosts, stock packages. > > If I do force it to use apt as the provider I still get an error, but > it exposes something else: > > # puppet apply -e 'package { openssh-

Re: [Puppet Users] Re: Hiera Puppet backend - search order question

2012-03-22 Thread Nan Liu
On Thu, Mar 22, 2012 at 6:41 PM, Lars Francke wrote: > I've looked at the puppet_backend.rb now and that explains the > behavior I'm seeing (unsurprisingly ;-) ) > > Hiera in Defined Resource Types: > It's using the calling class and calling module to calculate the > places it looks for its data.

[Puppet Users] Re: i can't use yum to install any package!!!

2012-03-22 Thread 狐狐
node 'node1.example.com' {         package {'vim-enhanced': ensure => present }         include sudo         include ssh } i think this is right! the problem may be "debug: Puppet::Type::Package::ProviderUrpmi: Executing '/bin/rpm -ql rpm' wrong number of arguments (2 for 1) " debug: Puppet::Ty

Re: [Puppet Users] Re: Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jeff McCune
On Thu, Mar 22, 2012 at 10:16 AM, Jay Ze wrote: > Ahh... OK Sorry.. My fault.. > No need to apologize I usually do this sort of thing once a week or so. =) > I forgot to commit the changes about the msi package to the git > repository... No wonder Puppet couldn't find it.. > > Thx ;-) > Anytim

[Puppet Users] Re: i can't use yum to install any package!!!

2012-03-22 Thread 狐狐
[root@node3 Desktop]# yum --version 3.2.22 Installed: rpm-4.4.2.3-18.el5.i386 at 2011-10-23 22:53 Built: Red Hat, Inc. at 2009-07-24 05:56 Committed: Panu Matilainen at 2009-07-24 22:00 Installed: yum-3.2.22-20.el5.noarch at 2011-10-23 22:53

Re: [Puppet Users] Installing PE2.0 on open source Citrix XenServer

2012-03-22 Thread Iain Sutton
Hi Ben, I would try installing vixie-cron which offers the same capabilities under EL5 as cronie under EL6: CentOS5 machine: $ cat /etc/redhat-release ; rpm -q --whatprovides vixie-cron CentOS release 5.8 (Final) vixie-cron-4.1-81.el5 CentOS6 machine: $ cat /etc/redhat-release ; rpm -q --whatpro

[Puppet Users] Re: Hiera Puppet backend - search order question

2012-03-22 Thread Lars Francke
I've looked at the puppet_backend.rb now and that explains the behavior I'm seeing (unsurprisingly ;-) ) Hiera in Defined Resource Types: It's using the calling class and calling module to calculate the places it looks for its data. For defines though this is not the path where the define itself w

[Puppet Users] Re: Hiera Puppet backend - search order question

2012-03-22 Thread Lars Francke
I ran into the same problem again: define tmp::register { $foo = hiera('foo'} class tmp::bar::foo { tmp::register { 'foo': } } class tmp::data { $foo = 'foo' } All of these files in their proper locations but hiera complains: debug: hiera(): Looking up foo in Puppet backend debug: hiera(): Lookin

Re: [Puppet Users] How can I get puppet onto a closed network ?

2012-03-22 Thread Aaron Grewell
I would install yum-utils and use reposync on a system with internet access to create a local repo. Yum.puppetlabs.com has most of what you need, but you may also need a copy of the epel repo. On Mar 22, 2012 4:42 PM, "Peter Bukowinski" wrote: > I'd copy down from the yum.puppetlabs.com site all

Re: [Puppet Users] hiera installation problem

2012-03-22 Thread Gary Larizza
On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: > Hi! I think I've gone through the hiera install process correctly, but still > getting: > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > undefined method `empty?' for false:FalseClass at > /etc/puppetlabs/p

Re: [Puppet Users] Re: Removing lines from a file

2012-03-22 Thread Gary Larizza
On Thursday, March 22, 2012 at 6:23 AM, John Kennedy wrote: > > On Thu, Mar 22, 2012 at 13:02, jcbollinger (mailto:john.bollin...@stjude.org)> wrote: > > > > > - NOTE: I am adding and removing the #includedir line for testing... > > > > > > What needs to be changed to get this to work? > > >

Re: [Puppet Users] How can I get puppet onto a closed network ?

2012-03-22 Thread Peter Bukowinski
I'd copy down from the yum.puppetlabs.com site all the packages in the products and dependencies repos and set up your own local repos. Point your rhel boxes at it and install that way. The repos would be easier to mirror locally if puppetlabs setup an rsync server for them, but right now scrap

[Puppet Users] How can I get puppet onto a closed network ?

2012-03-22 Thread BigCod
I've a network of RHEL5.3 servers with no internet acess that I'd like to get puppet onto. All I have is the RHEL5.3 DVD media set up as a yum repo. Is there some way I can download puppet and all its dependencies so I can bundle them together and install them on my closed network ? I'm thinkin

[Puppet Users] lookup node variables from different nodes

2012-03-22 Thread Andreas Paul
Is there a way to look up which nodes share that specific module or class? # manifests/nodes.pp node 'serverA', 'serverB' { include puppet-tomcat::tomcatA } I need to access variables from both servers. E.g. # worker.properties.erb <% for server in have_class_included('tomcatA') -%> JkW

Re: [Puppet Users] hiera installation problem

2012-03-22 Thread Chad Huneycutt
Couple things to check: * hiera command line uses /etc/hiera.yaml for its config, but the hiera-puppet plugin uses /etc/puppet/hiera.yaml * I don't really know much about yaml, but I have found that I often have to write lists as :foo: - bar - baz Notice the newline before the f

[Puppet Users] Announce: Facter 1.6.7rc1 Available

2012-03-22 Thread Matthaus Litteken
Facter 1.6.7rc1 is a maintenance release candidate with bug fixes and improvements. It includes contributions from the following people: Adrien Thebo, Chris Gardner, Todd Zullinger. This release is available for download at: http://downloads.puppetlabs.com/facter/facter-1.6.7rc1.tar.gz See the

[Puppet Users] Re: Help importing public key to verify Puppet release

2012-03-22 Thread weloki
I do not have a proxy or firewall in between. Doing the curl command for the first keyserver returns to me the html of the welcome page containing this markup... SKS OpenPGP Keyserver @keyserver.ubuntu.com The second one gives me the html containing... Forbidden You don't have permission to a

[Puppet Users] hiera installation problem

2012-03-22 Thread Guy Matz
Hi! I think I've gone through the hiera install process correctly, but still getting: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node # gem list *** L

[Puppet Users] Announce: Puppet Dashboard 1.2.7rc1 Available

2012-03-22 Thread Matthaus Litteken
This is a maintenance release candidate of Puppet Dashboard. It includes contributions from Carl Caum, Josh Lifton, and Matt Robinson. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Veri

Re: [Puppet Users] Re: Help importing public key to verify Puppet release

2012-03-22 Thread Nan Liu
On Thu, Mar 22, 2012 at 8:37 AM, weloki wrote: > I've tried that and I still get: > > Executing: gpg --ignore-time-conflict --no-options --no-default- > keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/ > trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/ >

[Puppet Users] Re: virtual resources vs fqdn_rand

2012-03-22 Thread Krzysztof Wilczynski
Hi, [...] > I have worked around this by passing in a $minute argument, but this > seems a bit inelegant -- the slave certainly has no business > determining the backup schedule. Other than a feature request for > fqdn_rand to allow a value to be passed in, any ideas on a more > elegant way to

Re: [Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Mark Dixon
On Thu, 22 Mar 2012, Dan White wrote: Something about this just does not feel right. Do you mean I've misunderstood things, or that it looks like something crazy is going on? You can re-use a name -- as in foo::params and bar::params, but I think you would have the same problem if you trie

[Puppet Users] Approach question on managing services

2012-03-22 Thread Kenneth Lo
I want to gather some ideas and/or best practice with the fine folks here in the group in terms of how you manage services in your environment. For essential services like ssh, it's pretty much standard affair with the basic Package/Config/Service paradigm. Monitor the package info, make sure it

[Puppet Users] Overriding package installation source

2012-03-22 Thread Kai Weber
Hi, I use a module (for Varnish in this case) which has the typical install, service, package classes. -- modules/varnish/manifests/install.pp: class varnish::install { package { $varnish::params::package_name: ensure => installed, } } -- modules/project/mani

Re: [Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Dan White
Something about this just does not feel right. You can re-use a name -- as in foo::params and bar::params, but I think you would have the same problem if you tried to declare a base-class "params" I cannot find any reference about the :: class naming/syntax. “Sometimes I think the surest sign

[Puppet Users] Re: Help importing public key to verify Puppet release

2012-03-22 Thread weloki
I've tried that and I still get: Executing: gpg --ignore-time-conflict --no-options --no-default- keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/ trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/ trusted.gpg --recv-key --keyserver pool.sks-keyservers.net

[Puppet Users] virtual resources vs fqdn_rand

2012-03-22 Thread Adam Heinz
Running puppet-2.6.13-2.el6.noarch on CentOS 6. define backup($apphost, $appfqdn) { cron { "backup-${apphost}-daily": command => "/usr/bin/rsync -a $appfqdn:backups/ $backdir/daily --delete", hour=> "2", minute => fqdn_rand(60), } } then elsewhere @@backu

Re: [Puppet Users] i can't use yum to install any package!!!

2012-03-22 Thread Dan White
What version of yum ? - 妖狐 wrote: > Hi:all > when i run this command > puppet agent --no-daemonize --debug > > I get "wrong number of arguments" all over the place: > > facter-1.6.5 > ruby-1.8.7 > puppet-2.7.9 > cat /etc/issue > Red Hat Enterprise Linux Server release 5.4 (Tikanga) “Some

Re: [Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Mark Dixon
On Thu, 22 Mar 2012, Luke Bigum wrote: ... Can you post your code and what you are trying to achieve? I did put it at the end of my original message, but here it is again... # Instantiate singleton foo::test, which in turn instantiates # "bar::something" class { 'foo::test': } class foo::t

Re: [Puppet Users] i can't use yum to install any package!!!

2012-03-22 Thread Peter Bukowinski
On Mar 22, 2012, at 9:29 AM, 妖狐 wrote: > > Hi:all > when i run this command > puppet agent --no-daemonize --debug > > I get "wrong number of arguments" all over the place: > > debug: Puppet::Type::Package::ProviderRpm: Executing '/bin/rpm --version' > wrong number of arguments (2 for 1) > debu

AW: [Puppet Users] i can't use yum to install any package!!!

2012-03-22 Thread Bernd Adamowicz
Post your manifest code. Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von ?? Gesendet: Donnerstag, 22. März 2012 14:29 An: puppet-users@googlegroups.com Betreff: [Puppet Users] i can't use yum to install any package!!! Hi:all when i run this comman

[Puppet Users] Re: Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jay Ze
Ahh... OK Sorry.. My fault.. I forgot to commit the changes about the msi package to the git repository... No wonder Puppet couldn't find it.. Thx ;-) On 22 Mrz., 15:01, Jeff McCune wrote: > This error message leads me to think the MSI isn't available on the Puppet > Master: > > Could not evalu

[Puppet Users] i can't use yum to install any package!!!

2012-03-22 Thread 妖狐
Hi:all when i run this command puppet agent --no-daemonize --debug I get "wrong number of arguments" all over the place: debug: Puppet::Type::Package::ProviderRpm: Executing '/bin/rpm --version' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderUrpmi: Executing '/bin/rpm -

Re: [Puppet Users] Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jeff McCune
This error message leads me to think the MSI isn't available on the Puppet Master: Could not evaluate: Could not retrieve information from environment deployment source(s) puppet:///modules/windows/FirefoxESR-10.0.2-de.msi at /var/lib/ environments/deployment/windows/manifests/init.pp:16 On the m

Re: [Puppet Users] Re: Removing lines from a file

2012-03-22 Thread John Kennedy
On Thu, Mar 22, 2012 at 13:02, jcbollinger wrote: > > > - NOTE: I am adding and removing the #includedir line for testing... > > > > What needs to be changed to get this to work? > > > Have you considered using sed instead of perl? It's lighter-weight > and very good at this sort of thing. > > Pe

Re: [Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Luke Bigum
What do you mean "call a manifest"? That seems strange... Can you post your code and what you are trying to achieve? On 22/03/12 12:54, Mark Dixon wrote: Hi, I'm a puppet newbie and am seeing something unexpected. If I have a module called "foo", from which I try to call a manifest in a diff

[Puppet Users] Re: Removing lines from a file

2012-03-22 Thread jcbollinger
On Mar 21, 6:48 am, John Kennedy wrote: > Hello all, > I am fairly new to Puppet but learning. > I know what I want to do can be done I just can not get things to go > right... > > We want to start using the capability of sudo to look in /etc/sudoers.d to > get user specific sudo permissions. Be

[Puppet Users] Including bar::something sometimes gives me foo::bar::something

2012-03-22 Thread Mark Dixon
Hi, I'm a puppet newbie and am seeing something unexpected. If I have a module called "foo", from which I try to call a manifest in a different module, e.g. "bar::something", I get "foo::bar::something" instead (if it exists). Example puppet code showing this is below. Have I missed an impor

[Puppet Users] Puppet 2.7.12 Windows - Dependency Problem

2012-03-22 Thread Jay Ze
Hi, I finally got puppet to run. My first test successfully created a file with content, I specified in the init.pp for this client. After that I wanted to install a msi package. (Firefox) I placed it into the right place on the Puppetmaster and created following init.pp class windows() { file {

[Puppet Users] Managing /etc/netgroup from puppet

2012-03-22 Thread Nikhil Mulley
Hi, I have a setup where puppet deploys /etc/passwd & /etc/shadow locally to the hosts, (no ldap/nis), and would like to also allow manage /etc/netgroup file. Any suggestions or pointers to the approach if someone has already done this before? appreciate if you could share. Thanks, Nikhil --

AW: [Puppet Users] Backup/restore certificates after new puppetmaster installation

2012-03-22 Thread Bernd Adamowicz
Concerning backup: I have everything below '/var/lib/puppet' backed up regularly on my Puppet masters. This will also contain all client certificates. Concerning client certificates: Are the clients still requesting? What does 'puppetca --list' say? It might be possible to simply re-accepting th

[Puppet Users] Backup/restore certificates after new puppetmaster installation

2012-03-22 Thread paul.gomersbach
Hi, We have a couple of puppet clients we can't reach after installation, is there a way to accept the client certificates when the certificates are lost on the master site? If that's not possible what part of the certificates on the master need to be in the backup to restore connectivity? Or is t