[Puppet Users] puppet 3.1.1 - wrong domain and fqdn in facter.

2013-06-19 Thread Rafał Radecki
Hi All. I am using: #rpm -qa | egrep 'puppet|facter' puppetlabs-release-6-7.noarch puppet-3.1.1-1.el6.noarch facter-1.7.1-1.el6.x86_64 on: #cat /etc/redhat-release ; uname -r CentOS release 6.4 (Final) 2.6.32-358.11.1.el6.centos.plus.x86_64 My hostname is server.one.two.com: # hostname serve

[Puppet Users] Ruby Class or other API for controlling puppet/mcollective

2013-06-19 Thread bjoern pohl
HI, i'm currently trying to develop a task-driven rails-based frontend for some tasks that puppet/mcollective is doing in the background ( basically some user-management and some asset queries...). But i'm currently stuck at finding some puppet/mcollective API classes for ruby. (you'll only fin

Re: [Puppet Users] puppet 3.1.1 - wrong domain and fqdn in facter.

2013-06-19 Thread David Schmitt
On 19.06.2013 10:24, Rafał Radecki wrote: My hostname is server.one.two.com: # hostname server.one.two.com # hostname --fqdn one.two.com This is wrong. "hostname" should return either "server" or "server.one.two.com" and "hostname --fqdn" should return "server.one.two.com" (the Fully Qualifi

Re: [Puppet Users] augeas

2013-06-19 Thread Dominic Cleal
On 18/06/13 23:07, Charles Mean wrote: > Hello guys, I am facing a problem with puppet client installed via gem > due Ruby EE. > The problem is the following: > >> puppetd -vt > info: Caching catalog for #FQDN > err: Could not run Puppet configuration client: Could not find a default > provider fo

Re: [Puppet Users] Pushing file updates - taking a long time

2013-06-19 Thread Denmat
Well depending on what your code looks like I would say; Install packages - unlikely Restart services - more likely. Notifies or subscribes to config files may or may not restart services - depends really..what you doin? Den On 19/06/2013, at 8:13, KC1987 wrote: > Hi. > > First off my situa

[Puppet Users] Re: puppet cisco device

2013-06-19 Thread livilu
setting up puppet hostname in hosts file fixed this issue and now I could signed the device. Now I'm facing other weird issue: I'm trying to configure a port. Successfully did it once but if I try again I receive: Error: Could not retrieve local facts: connection closed by remote host Error: Fai

[Puppet Users] Re: Pushing file updates - taking a long time

2013-06-19 Thread jcbollinger
On Tuesday, June 18, 2013 5:13:27 PM UTC-5, KC1987 wrote: > > Hi. > > First off my situation is this; > I have a module that's split up in such a way that it runs as follows: > Install packages => Ensure files are present => insure service is running. > > Now say I have a stable cluster up and

[Puppet Users] Re: is it possible to access resource definitions from ERB templates?

2013-06-19 Thread João Matos
Did you get anything like what you mentioned to work? I had this very same idea, but I can't find any documentation on accessing the list of instantiated resources from a template. On Monday, January 10, 2011 11:01:17 AM UTC, Nick wrote: > > Puppet's template() function has the potential to be a

[Puppet Users] Pip provider fails on RedHat osfamily when pip not installed via RPM (Could not locate the pip command)

2013-06-19 Thread Michael O'Dea
In resolving bug 15980, the pip package provider was changed to recognize the RedHat osfamily fact and use the executable name "pip-python" in those environments. This does not take into account environments where pip has been installed via easy_install or by custom rpm providers. In those en

[Puppet Users] Re: install module via rpm-> behind a proxy

2013-06-19 Thread cko
thank you! i changed the* /usr/lib/rpm/macros *file via puppet. works fine On Wednesday, June 19, 2013 8:17:25 AM UTC+2, cko wrote: > > hi, > > I'm trying to run the following manifest on my puppet agent: (snippet) > >package { 'check_mk-agent-logwatch-1.2.3i1-1.noarch': > provider =>

[Puppet Users] Re: Pushing file updates - taking a long time

2013-06-19 Thread KC1987
Figured it out. Someone had put ensure => running, on a package :( On Wednesday, June 19, 2013 8:19:04 AM UTC-5, jcbollinger wrote: > > > > On Tuesday, June 18, 2013 5:13:27 PM UTC-5, KC1987 wrote: >> >> Hi. >> >> First off my situation is this; >> I have a module that's split up in such a wa

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-19 Thread jcbollinger
On Tuesday, June 18, 2013 1:19:32 PM UTC-5, Alessandro Franceschi wrote: > > Some personal notes among the lines... > > On Tuesday, June 18, 2013 6:35:18 PM UTC+2, Ken Barber wrote: >> >> > Although I agree that to be reusable, modules need to provide certain >> types >> > of levers, knobs, and

[Puppet Users] Error 400 on SERVER: No such file or directory - getcwd

2013-06-19 Thread Rachel Andrew
Hi fully expecting to have done something silly here but am struggling to debug why I am getting the error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: No such file or directory - getcwd at /etc/puppet/manifests/nodes.pp:2 on node my.domain.net the line in quest

Re: [Puppet Users] augeas

2013-06-19 Thread Charles Mean
Hello Dominic, thank you for your reply. The make error is the following: *> gem install ruby-augeas* Building native extensions. This could take a while... ERROR: Error installing ruby-augeas: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb creating Makefile ma

[Puppet Users] Set environment variable that is visible to package installation

2013-06-19 Thread Kevin Lange
We have RPMs which requires an environment variable to be set prior to installation (contains conf information). What is the best way to do this? I'd like to avoid setting this environment var in each systems' profile. It would be nice to have an option to do this within the package type, bu

Re: [Puppet Users] augeas

2013-06-19 Thread Dominic Cleal
On 19/06/13 17:46, Charles Mean wrote: > Hello Dominic, thank you for your reply. > [snip] > make > gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux > -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 > -I/usr/include/libxml2-c _augeas.c > _augeas.c: In function 'Init__augeas': > _aug

Re: [Puppet Users] augeas

2013-06-19 Thread Charles Mean
Great Dominic, this version solved the problem. I have just installed ruby-augeas-0.3.0.gem and puppet is working now =) Thank you for your help. On Wed, Jun 19, 2013 at 2:19 PM, Dominic Cleal wrote: > On 19/06/13 17:46, Charles Mean wrote: > > Hello Dominic, thank you for your reply. > > > [sn

[Puppet Users] who is affected by this bug ?

2013-06-19 Thread iamauser
http://puppetlabs.com/security/cve/cve-2013-3567/ Does everyone using puppet affected by this bug ? I haven't understood in detail how puppet works with http. I am using puppetmaster behind rack/passenger and http. Version 3.0.2.x. Besides upgrading to 3.2.2 what else should I know ? Thanks f

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-19 Thread Alessandro Franceschi
On Wednesday, June 19, 2013 5:03:41 PM UTC+2, jcbollinger wrote: > > > > On Tuesday, June 18, 2013 1:19:32 PM UTC-5, Alessandro Franceschi wrote: >> >> Some personal notes among the lines... >> >> On Tuesday, June 18, 2013 6:35:18 PM UTC+2, Ken Barber wrote: >>> >>> > Although I agree that to be

[Puppet Users] How to make a package dependant on a class for the repository.

2013-06-19 Thread Stack Kororā
Greetings! tl;dr Why doesn't require=>Class work? I have a module I built that I creatively called "repos". This does a number of things for me: * I have many systems on different networks. Depending on the network depends on which repository the servers get their packages from. * I have many O

[Puppet Users] hiera and tags, resource collectors and lists

2013-06-19 Thread mpounsett
Forgive me for combining questions, but I'm looking at two options for solving a problem and I'm not sure which one is best, or the exact syntax for either one. First, I'm wondering if it's possible to set tags for resources create with hiera and create_resources. The first stab I took at synt

Re: [Puppet Users] Ruby Class or other API for controlling puppet/mcollective

2013-06-19 Thread Matthew Black
Not knowing your entire goal but what you could use is the mcollective-client gem in your rails application and have the puppet mcollective agent, which PuppetLabs made, and you can run puppet related commands like you would with "puppet resource". So right now you can do something like "puppet re

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-19 Thread David Schmitt
On 20.06.2013 00:34, Alessandro Franceschi wrote: Having a curated repository of interoperable modules without a minimum set of shared parameters would be a great drawback and a major lost occasion. Yes. _A really reusable module HAS to be parametrized_. Yes. Somehow it also seems that so

[Puppet Users] PuppetDB queries using custom facts

2013-06-19 Thread Alexander Grushin
Hi, all! I'm trying to use external facts from Facter 1.7 and everything looks good: web0 $ cat /etc/facter/facts.d/environment.txt environment=productionweb0$ web0 $ facter environment production web0 # puppet agent -t Info: Retrieving plugin Info: Loading facts in /var/lib/puppet/lib/facter/pu

Re: [Puppet Users] PuppetDB queries using custom facts

2013-06-19 Thread David Schmitt
Hi, Alexander, "environment" is a special variable. It denotes the puppet environment that is used by the puppetmaster to multiplex into different module directories. While I have not tested this, I would assume that this is special cased by many code paths. Your own example shows that the e