[Puppet Users] Newbie trying ModuleSSHAuth : getting resource Ssh_auth_key_namecheck[id_rsa] already exists.

2009-12-26 Thread Kassec
Hi,

I'm new to puppet and trying some simple things. Especially, I
followed the doc @ 
http://reductivelabs.com/trac/puppet/wiki/Recipes/ModuleSSHAuth
to manage ssh keys.

Everything went well until I tried with more than one user! If I try
to add another user key, ie :

ssh::auth::key { ["user1", "user2"]: }

then I get a "puppetmasterd[10022]: Puppet::Parser::AST::Resource
failed with error ArgumentError: Cannot alias Ssh_auth_key_namecheck
[user2-filename] to id_rsa; resource Ssh_auth_key_namecheck[id_rsa]
already exists at /etc/puppet/modules/ssh/manifests/auth.pp:48 on
node ..."

It sounds like a resource uniqueness problem, but i don't know how to
work around this ...


Thanks for any tip ;)

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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] Facter 1.5.7 and operatingsystemrelease

2009-12-26 Thread Derek Yarnell
I think the problem is that using the LSB stuff is unhelpful since
non-Linux  systems don't support it.  The issue with
operatingsystemrelease is that behavior has kinda changed with rhel5
from 3 and 4.  Now I realize that all it is doing is tokenizing
/etc/redhat-release but i agree that this annoys the crap out of me
and we implement local facts to make this better.

On Tuesday, December 22, 2009, Len Rugen  wrote:
> I posted a question about the lsb prefixed facts a few weeks ago.  lsbmaj 
> may be what you're looking for.
>
> On Tue, Dec 22, 2009 at 9:17 AM, Kenton Brede  wrote:
> On Tue, Oct 20, 2009 at 8:45 PM, Ohad Levy  wrote:
>> Hi,
>>
>> I for one, thinks that the operatingsystemrelease fact should contain only
>> the major number of the operating system, e.g. for Centos/Rehat 5.4 it
>> should return just 5.
>>
>> the reason behind it is that I rarely use the full release version as a
>> variable, and if I do, I use the lsb facts.
>>
>> this change is very annoying, as it requires to change your manifest again
>> (we had the same issue between facter 1.38 and 1.5.0).
>>
>> I ended up having my own fact which is just a wrapper for the
>> operatingsystem relase, as it one point of time I might have multiple facter
>> version running around
>>
>
> I searched through old messages and didn't see that this had been
> addressed.  I can see people wanting facter to report the minor
> version and others wanting just the major release number.  The way it
> stands I'll need to change every operatingystemrelease variable, each
> time a new minor version come out.  That's a pain I don't need.  So
> I'll work around this by creating my own fact.  Having two variables
> for the OS release seems to me a good choice.  Just my 2 cents.
> Kent
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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-us...@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.
>

-- 
---
Derek T. Yarnell

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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] nested variables

2009-12-26 Thread Silviu Paragina
On 26.12.2009 20:10, Scott Smith wrote:
> Silviu Paragina wrote:
>
>>> $mac = ${$macaddress_${iface}}
>>>
>>>
>> Shouldn't this be ${macaddress_${iface}} ?
>>
>>  
> Have you tried that? Doesn't work for me in 0.25.1.
>
Not really, tested it now, and you are right, but there was an extra $ 
in there, sorry :">


Silviu
> -scott
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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-us...@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] nested variables

2009-12-26 Thread Scott Smith
Silviu Paragina wrote:
>> $mac = ${$macaddress_${iface}}
>>
> Shouldn't this be ${macaddress_${iface}} ?
> 

Have you tried that? Doesn't work for me in 0.25.1.

-scott

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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: [Puppet-dev] ANNOUNCE: Puppet 0.25.2rc2 now available

2009-12-26 Thread Todd Zullinger
James Turnbull wrote:
> Puppet 0.25.2 - code-named "Zoe"
>
> Due to a missing commit in RC1 the 0.25.2 Release Candidate 2 is now
> available for testing.
>
> This is the second release candidate for 0.25.2.  The 0.25.2 release
> is a significant maintenance release (118 tickets closed!) in the
> 0.25.x branch.

Packages for Fedora 11/12/rawhide and EL 4/5 are available at:

http://tmz.fedorapeople.org/repo/puppet/

Please report any packaging or repository bugs to me and not to the
Puppet or Fedora bug trackers.  And be sure to report any
non-packaging bugs to the Puppet bug tracker. :)

-- 
ToddOpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Entropy just isn't what it used to be.



pgp5IjAJS38sy.pgp
Description: PGP signature


Re: [Puppet Users] how to specify source parameter for gem packages

2009-12-26 Thread Silviu Paragina
On 24.12.2009 21:00, byron appelt wrote:
> I am trying to use the package class to manage a gem and I need to
> specify the source. I tried doing the following:
>
> package { "gateway_install_support":
>  ensure =>  installed,
>  provider =>  gem,
>  source =>  "http://gems.ublip.com:8808";,
>  require =>  Exec["ruby setup.rb"]
>}
>
Source should be local afaik. You need a file resource to copy it and 
after that the package resource.
The documentation for package source: 
http://reductivelabs.com/trac/puppet/wiki/TypeReference#id77
Also note this (file resource source) 
http://reductivelabs.com/trac/puppet/wiki/TypeReference#source


Silviu
> but this causes the error:
>
> err: //Node[byron-dev.numerexfast.com]/base_gateway/Package
> [gateway_install_support]/ensure: change from absent to present
> failed: Execution of '/usr/bin/gem install --include-dependencies
> http://gems.ublip.com:8808' returned 512: ERROR:  could not find gem
> http://gems.ublip.com:8808 locally or in a repository
>
> Which looks like it is trying to use the source parameter as the gem
> name.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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-us...@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] nested variables

2009-12-26 Thread Silviu Paragina
On 24.12.2009 11:33, sHaggY_caT wrote:
> Hi all!
>
> I have quation: how i may use nested variables/facts? For example, I
> have variable $iface. It's variable declared in node brakets, and, use
> with defenition. iface may be eth0, eth1(Linux), em0, ...
> , ...
>
> is fact:
>
> facter | grep eth0 | grep mac
> macaddress_eth0 =>  54:52:00:3D:CB:40
>
> We don'nt know name of $iface in our module (to generate network
> settings), how we may use nested variables/facts? Syntax:
>
> $mac = ${$macaddress_${iface}}
>
Shouldn't this be ${macaddress_${iface}} ?

Silviu

> Does'nt work.
>
> In documentation i did'nt find answer for my quation...
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@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-us...@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: Couldn't see RRDReport in foreman

2009-12-26 Thread Silviu Paragina
On 25.12.2009 13:11, koliama wrote:
> I wished to allocate with tag  change in URL. Probably it does not
> work in google groups.
> In a reality I certainly do not use this tag in URL.
Use firefox + firebug, inspect element there and check the output, it 
will probably point you in the right direction :)


Silviu

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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: nested variables

2009-12-26 Thread sHaggY_caT
Thank's, Scott :)

Happy New Year!

On 26 дек, 01:18, Scott Smith  wrote:
> sHaggY_caT wrote:
> > Thank you very much for answer.
>
> > Do you may print simple working example?
>
> $ifaces = split($interfaces, ',')
>
> define do::it {
>      $tpl = "<% if has_variable?(\"ipaddress_$name\") -%>
> The IP address for $name is: <%= ipaddress_$name %>
> <% end -%>
> "
>
>      notice(inline_template($tpl))
>
> }
>
> do::it { $ifaces: }
>
> -scott

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.