Re: [Puppet Users] puppet for switches

2010-05-04 Thread Luke Kanies

On May 4, 2010, at 9:25 PM, James Turnbull wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 5/05/10 1:53 PM, Geoff Crompton wrote:

This might be a crazy idea, but it just popped into my head, and I
wanted to know if it's possible. Perhaps not possible right now, but
possible in a theoretical sense.

Is it possible that puppet could be modified to be used to manage
switches that have a command line based interface?

When I manage our Allied Telesis switches (which have a CLI similar  
to

cisco IOS) I wonder if I could control it via a puppet-like node:

node 'switch-101' {
  vlan { storage:
id => 1234,
untagged_ports => "3/e1, 4/e3",
tagged_ports => "1/e1-2/e48",
  }
  include gvrp
  include stp::rstp
  stp::portfast { "1/e1-e48,2/e1-48",3/e1-48": }
}


Now I know we probably can't get puppet to run on the switch, but  
we can
get a host to ssh or telnet to the switch, and to download the  
current

configuration of the switch.



It's feasible - you could create a type and provider that connects
to the switch and interacts with the CLI to retrieve the
configuration, manipulate it in some way (depending on how complex
the format is) and then send it back and apply it.

Obviously there would be limitations - no Factor facts and you'd
have to create a dummy node I guess because the switch wouldn't be a
real "node".

Others may have niftier ideas on how to do this - an easier
mechanism might be use Puppet's REST API to integrate with the
switches own management tool if it has an exposed API.


The way that I would implement this would basically to write a system  
that read in the whole switch config, used the catalog and RAL to  
compare states and write a new config, and then a hook at the end to  
write the new config.


You could use the (new in 0.25) pre and post transaction hooks to  
retrieve and store the switch config, and then it's just a question of  
having RAL types that modify that config in some way.


Make sense?

--
When I die, I want go out just like my grandfather, in his sleep,
peaceful and quiet...not kicking and screaming like the other guys in
his car.
-
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199

--
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] puppet for switches

2010-05-04 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 5/05/10 1:53 PM, Geoff Crompton wrote:
> This might be a crazy idea, but it just popped into my head, and I
> wanted to know if it's possible. Perhaps not possible right now, but
> possible in a theoretical sense.
> 
> Is it possible that puppet could be modified to be used to manage
> switches that have a command line based interface?
> 
> When I manage our Allied Telesis switches (which have a CLI similar to
> cisco IOS) I wonder if I could control it via a puppet-like node:
> 
> node 'switch-101' {
>vlan { storage:
>  id => 1234,
>  untagged_ports => "3/e1, 4/e3",
>  tagged_ports => "1/e1-2/e48",
>}
>include gvrp
>include stp::rstp
>stp::portfast { "1/e1-e48,2/e1-48",3/e1-48": }
> }
> 
> 
> Now I know we probably can't get puppet to run on the switch, but we can
> get a host to ssh or telnet to the switch, and to download the current
> configuration of the switch.
> 

It's feasible - you could create a type and provider that connects
to the switch and interacts with the CLI to retrieve the
configuration, manipulate it in some way (depending on how complex
the format is) and then send it back and apply it.

Obviously there would be limitations - no Factor facts and you'd
have to create a dummy node I guess because the switch wouldn't be a
real "node".

Others may have niftier ideas on how to do this - an easier
mechanism might be use Puppet's REST API to integrate with the
switches own management tool if it has an exposed API.

Regards

James Turnbull

- -- 
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBS+DzNCFa/lDkFHAyAQKpsAf+J2ILNsTi6+A8JekLF5tAES+BNHdqnd9s
tlouVVokiMebNmh0m51aguvmTN2V4pa5RYQpmbfVqK1SI3m/UT68EH871vMbc6KG
xUpZTbR2zhin46qMWVZReWsJq2r9yLXex3fM66/YTh25J7S9j/kP8OpUKdguAW5L
cB66vXTlJjO7IXSZwyZzP3lvllShJ0sZAb/RvIrfKE9XXnCU5x7kF8gMLpQqjrqB
E/Dnm0Vi02b+agpzeapqbPf+CEHgBVaBIdZoPg7hAyBPIsvNoD1/pUIXkfU7/96/
ADF5O+BXbXXS5S0CgZ/SoD979VCEWwWW2Dy0CmuTLgfxJeuhdg0/KQ==
=QYIs
-END PGP SIGNATURE-

-- 
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] puppet for switches

2010-05-04 Thread Geoff Crompton

This might be a crazy idea, but it just popped into my head, and I
wanted to know if it's possible. Perhaps not possible right now, but
possible in a theoretical sense.

Is it possible that puppet could be modified to be used to manage
switches that have a command line based interface?

When I manage our Allied Telesis switches (which have a CLI similar to
cisco IOS) I wonder if I could control it via a puppet-like node:

node 'switch-101' {
  vlan { storage:
id => 1234,
untagged_ports => "3/e1, 4/e3",
tagged_ports => "1/e1-2/e48",
  }
  include gvrp
  include stp::rstp
  stp::portfast { "1/e1-e48,2/e1-48",3/e1-48": }
}


Now I know we probably can't get puppet to run on the switch, but we can
get a host to ssh or telnet to the switch, and to download the current
configuration of the switch.

--
+-Geoff Crompton
+--Debian System Administrator
+---Trinity College

--
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] Issue with naginator and elusive nagios cfg file corruption (#3712)

2010-05-04 Thread Joe McDonagh

On 05/04/2010 03:00 PM, David Schmitt wrote:

Am 03.05.2010 21:33, schrieb Joe McDonagh:

Hello, I have run into a data corruption problem with naginator that is
fairly difficult for me to track down. Hand-written configurations do
not suffer from this fate. This was present in .24.8, and still present
in .25.4. I'd love to complete this automatic nagios project, if anyone
has some ideas on narrowing down the source after reading the bug report
(http://projects.reductivelabs.com/issues/3712) please let me know.
David, just wanna say thanks for responding to this as it's driving me 
absolutely insane and causing a project I want to end to linger forever.


You can try using a hex editor or similar to see what the actual 
corruption is.
David, I tried this and got absolutely nowhere. I'm willing to believe I 
am doing something wrong when analyzing the data, but the tests I've 
tried which I think will narrow down the corruption actually make it 
more difficult to diagnose. For example, if apt-proxys.cfg was having 
the problem, and i renamed the hostgroup to , it would then claim 
the error was in the next alphabetical hostname, say domino-servers, 
until i get past a few and it runs.


Also, can you post a minimal configuration example that causes the 
problem?
Here's the error: Error: Host ' ' specified in host group 'ad-servers' 
is not defined anywhere!


Here's the .cfg file:

# HEADER: This file was autogenerated at Mon May 03 13:59:19 -0400 2010
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
define hostgroup {
hostgroup_name ad-servers
alias Active Directory Servers
}

Here is a hex dump

000 2023 4548 4441 5245 203a 6854 7369 6620
020 6c69 2065 6177 2073 7561 6f74 6567 656e
040 6172 6574 2064 7461 4d20 6e6f 4d20 7961
060 3020 2033 3331 353a 3a39 3931 2d20 3430
100 3030 3220 3130 0a30 2023 4548 4441 5245
120 203a 7962 7020 7075 6570 2e74 2020 6857
140 6c69 2065 7469 6320 6e61 7320 6974 6c6c
160 6220 2065 616d 616e 6567 2064 616d 756e
200 6c61 796c 202c 7469 230a 4820 4145 4544
220 3a52 6920 2073 6564 6966 696e 6574 796c
240 6e20 746f 7220 6365 6d6f 656d 646e 6465
260 0a2e 6564 6966 656e 6820 736f 6774 6f72
300 7075 7b20 090a 6f68 7473 7267 756f 5f70
320 616e 656d 2020 2020 2020 2020 2020 2020
340 2020 2020 6120 2d64 6573 7672 7265 0a73
360 6109 696c 7361 2020 2020 2020 2020 2020
400 2020 2020 2020 2020 2020 2020 2020 2020
420 6341 6974 6576 4420 7269 6365 6f74 7972
440 5320 7265 6576 7372 7d0a 000a
453

Now I change the file to this:

# HEADER: This file was autogenerated at Mon May 03 13:59:19 -0400 2010
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
define hostgroup {
hostgroup_name ZZ
alias Active Directory Servers
}

And I get this:

Error: Host ' ' specified in host group 'ZZ' is not defined anywhere!

It indicates to me that the file is fucked somehow. This is written out 
from an exported and collected resource. Is it possible database 
encoding comes into play here?





From where have you installed puppet? Packages, source? Can you 
confirm that the installation is pristine?


I make my own packages but they are basically just dsc's from 
ftp.ubuntu.org that I build for 8.04 LTS since the 8.04 LTS package is 
so old. They are installed via apt.
Are you using storeconfigs? Is there maybe something wrong in the 
database?
That's what I am wondering but I don't know what to look for. Things 
look fine. The file itself, looks fine. There's corruption at the byte 
level that isn't apparent to the human eye. Any idea what to check in 
the DB?


I've used the nagios types from 0.25.4 today and they worked flawlessly.

I know, I think I may have even taken some inspiration from your modules.



Best regards, David



--
Joe McDonagh
AIM: YoosingYoonickz
IRC: joe-mac on freenode
"When the going gets weird, the weird turn pro."

--
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] Issue with naginator and elusive nagios cfg file corruption (#3712)

2010-05-04 Thread David Schmitt

Am 03.05.2010 21:33, schrieb Joe McDonagh:

Hello, I have run into a data corruption problem with naginator that is
fairly difficult for me to track down. Hand-written configurations do
not suffer from this fate. This was present in .24.8, and still present
in .25.4. I'd love to complete this automatic nagios project, if anyone
has some ideas on narrowing down the source after reading the bug report
(http://projects.reductivelabs.com/issues/3712) please let me know.


You can try using a hex editor or similar to see what the actual 
corruption is.


Also, can you post a minimal configuration example that causes the problem?

From where have you installed puppet? Packages, source? Can you confirm 
that the installation is pristine?


Are you using storeconfigs? Is there maybe something wrong in the database?

I've used the nagios types from 0.25.4 today and they worked flawlessly.


Best regards, David
--
dasz.at OG  Tel: +43 (0)664 2602670 Web: http://dasz.at
Klosterneuburg UID: ATU64260999

   FB-Nr.: FN 309285 g  FB-Gericht: LG Korneuburg

--
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] Puppet 2.5.4 and Ruby 1.9.1

2010-05-04 Thread Cameron Smith
On Tue, May 4, 2010 at 10:01 AM, James Turnbull wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Cameron Smith wrote:
> > Thanks for the info James!
> > I'll drop down and try again :)
>
> Cameron
>
> It'd be great if you could the specific issues you had as bug tickets so
> we can be sure we fix them for Ruby 1.9.x
>
> Thanks
>
> James Turnbull
>
>
>
I can do that! :)
Oh and thanks for writing your book on Puppet. It has been helpful!

-- 
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] Puppet 2.5.4 and Ruby 1.9.1

2010-05-04 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cameron Smith wrote:
> Thanks for the info James!
> I'll drop down and try again :)

Cameron

It'd be great if you could the specific issues you had as bug tickets so
we can be sure we fix them for Ruby 1.9.x

Thanks

James Turnbull

- --
Author of:
* Pro Linux Systems Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJL4FL5AAoJECFa/lDkFHAytXYIAM/iB7baJQaoeusEEzhPPtjO
/DefG7eJy2+vpM7fJv2YcPVYiVSYKpMMdsi6zVkaWhJ3E8XwMmXVm06iCmv4f84q
TQ3Q46+XHWp4gCn8exli0dNYIBdoPUQk1rxU4kn0VBnyZGTFqvvLLhaPaEsJG774
u+KIgbsp5jrRfOqObHFuCaSmfl23Fen8CGiR2h5WVFerCU7yHtMfHj+e23VARdHm
L/walDH7Qs/aoPuFk3dIvgYUxyv72SjVArPd/PmnJN5dCsC9raVsKznaDuI7pQRw
JGTQkycD/+9b+RZ9UmxwyD7/+i2FIT58QHCMupVr3hIrsoY3mQbLN5wR8FYWDaw=
=061M
-END PGP SIGNATURE-

-- 
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] adding users help.

2010-05-04 Thread Thomas Bellman

On 2010-05-03 19:06, merritt wrote:


I want to be able to add additional resources to my virtual users,
such as force a file or directory to exist if I realize that user, if
someone could point me in the right direction, I’m guessing i need to
use a definition I’m just not sure on the best way to do it.


A definition is a good way, yes.  Like this:

define myuser($uid, $comment, ...)
{
user {
$name:
uid => $uid, comment => $comment, ...;
}
file {
"/home/$name":
ensure => directory, owner => $name, ...;
"/home/$name/.ssh":
ensure => directory, owner => $name, ...;
}
}

class our-users
{
@myuser { "aguy": uid => 1001, ...; }
@myuser { "agirl": uid => 1002, ...; }
@myuser { "analien": uid => 1003, ...; }
}

class storageadmins
{
include our-users
realize(User["aguy"], User["agirl"])
}

A slight modification is to declare if the user should be an admin
or not in the myuser definition.  Add a parameter $type to myuser
(without actually using it inside the definition), and do:

class our-users
{
@myuser { "aguy": uid => 1001, type => "storageadmin", ...; }
@myuser { "agirl": uid => 1002, type => "storageadmin", ...; }
@myuser { "analien": uid => 1003, type => "nonadmin", ...; }
}

class storageadmins
{
include our-users
Myuser <| type == "storageadmin" |>
}

It's up to your taste to determine which version is preferable.


/Bellman

--
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] Puppet 2.5.4 and Ruby 1.9.1

2010-05-04 Thread Cameron Smith
Thanks for the info James!
I'll drop down and try again :)

On Mon, May 3, 2010 at 3:15 PM, James Turnbull wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 4/05/10 1:32 AM, velvetpixel wrote:
> > First time Puppet user so please bear with me :)
> >
> > Is Puppet 2.5.4 compatible with Ruby 1.9.1 and RubyGems 1.3.6?
> >
> > I did a test install on CentOS 5.4 and got some errors when trying to
> > run puppetmasterd.
> >
> > # puppetmasterd
> > Could not autoload file: constant Puppet::Type::File not defined
> > Could not autoload status: undefined method `add_method' for
> > nil:NilClass
> > Could not autoload fileserver: undefined method `add_method' for
> > nil:NilClass
> > Could not autoload master: undefined method `add_method' for
> > nil:NilClass
> > Could not autoload report: undefined method `add_method' for
> > nil:NilClass
> > Could not autoload filebucket: undefined method `add_method' for
> > nil:NilClass
> > Could not autoload ca: undefined method `add_method' for nil:NilClass
> >
> > Got Facter to return info though! :)
> >
>
> Puppet is not currently compatible with Ruby 1.9.x.  We've got some
> fixes in for 1.9 but we've got some other work to do before its ready.
>
> As indicated though Facter should work fine.
>
> Regards
>
> James Turnbull
>
> - --
> Author of:
> * Pro Linux System Administration (http://tinyurl.com/linuxadmin)
> * Pulling Strings with Puppet (http://tinyurl.com/pupbook)
> * Pro Nagios 2.0 (http://tinyurl.com/pronagios)
> * Hardening Linux (http://tinyurl.com/hardeninglinux)
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEVAwUBS99K8SFa/lDkFHAyAQI1HQf+NGqreOyzATu7oj/wNSawEqA101x/mcgr
> uCjhL1LHLZfYJ4db1WZ156H1zhEnGtBudOQ0wplEJwFyhSfmjSh6WTDpQ+PCsBaw
> B/rOZA0UB2btEbroXI02Tmup6uipoZSYuCOJD9iADca30jd1EnuFHhgyDhGmhD3B
> zh+LHljnJKJQZ0NlFj0hRIli18YJOOnB54VCV1qdkmsyUZ7gNmKxSrQYqZ+p0U/g
> o8BjYTkC3YNjBXO9vnSqo4HWpw/nEufPFVwU+UK/FXvbEUSYif0r5dTOvSmPL65T
> nVkizz5ZkVKKKQWKNAKg19+E9c5dHoDIIW4WXHPnEnIWUZgchzhObQ==
> =5sak
> -END PGP SIGNATURE-
>
> --
> 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] PSON error?

2010-05-04 Thread Patrick
Do you have version 0.25.x puppet clients connecting to version 0.24.x servers? 
 This looks a bit like that error.

On May 4, 2010, at 5:27 AM, Kent Rankin wrote:

> Can anyone shed any light to this error message?  We're getting a
> number of them.
> 
> Tue May 04 08:18:35 -0400 2010 ///File[/usr/local//]
> (err): Failed to generate additional resources using 'eval_generate':
> Could not intern_multiple from pson: source did not contain any PSON!
> 
> 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-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.



[Puppet Users] PSON error?

2010-05-04 Thread Kent Rankin
Can anyone shed any light to this error message?  We're getting a
number of them.

Tue May 04 08:18:35 -0400 2010 ///File[/usr/local//]
(err): Failed to generate additional resources using 'eval_generate':
Could not intern_multiple from pson: source did not contain any PSON!

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-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] mcollective scalability

2010-05-04 Thread R.I.Pienaar
hello,

Probably best to send this kind of thing to mcollective's mailing list rather 
than puppets :)

- "linuxdatacenter"  wrote:

> I've been thinking a lot about running mcollective on my production
> servers recently, especially about its nice integration with puppet
> (using facts and so on). However I've got some concern about its
> scalability - how publish/subscribe middleware scales in terms of
> speed and flooding the network. I run about 2000 servers. Has anyone
> got any experience running mcollective on similar scale?

2000 nodes certainly is within my goals with the design, that said there has 
not been such a big deploy.

If any problems at all it will be related to the fast producer/slow consumer 
style problems.  In MC the consumer is very fast (it does very little) but 
still, should there be a problem it will be a fairly simple matter to convert 
the replies to go over a queue rather than a topic.  That should resolve any 
issue with it.

You'd probably want a few activemq instances in a cluster in such a setup, 
though I've heard of much larger client counts on activemq.

-- 
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-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] mcollective scalability

2010-05-04 Thread linuxdatacenter
I've been thinking a lot about running mcollective on my production
servers recently, especially about its nice integration with puppet
(using facts and so on). However I've got some concern about its
scalability - how publish/subscribe middleware scales in terms of
speed and flooding the network. I run about 2000 servers. Has anyone
got any experience running mcollective on similar scale?


-Regards

--linuxdatacenter.blogspot.com---

-- 
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: AW: [Puppet Users] Re: complex data types in puppet & facter

2010-05-04 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/05/10 5:59 PM, Patrick wrote:
> I think that Rwolf is puppet 0.2*6*.x.
> 

That's correct.

Next maintenance release is 0.25.5 - currently in testing.

Next feature release is Rowlff which doesn't have a version number
assigned as yet and is the final stages of being tidied up.

You can see draft release notes at:

http://projects.puppetlabs.com/projects/puppet/wiki/Release_Notes

Regards

James Turnbull

- -- 
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBS9/eNyFa/lDkFHAyAQIlzQgA5ZNXDixWh0UAH6KTSHi6kuuG5QWaRRRU
NmYEgjrS8ljJ4Ja3GDnYZeaaPdvpJUlDPfYq50DGcOnxZsXBEhtZa51L2rTyq2P7
J40RYZByQIllC2uO9ouPKSoypnKdbwg+gtszdyrjAHRjdnlUVmO59nVJoJpyfQNV
qcCMx4pD4BdoUczzjaCSaWCIChk4DvDVZ6ISehe7uYa5lB0XAbWganH2q7Iil3u3
qwudmRudTi5OcRc+ddr0MuNpMbYovjbraApSNppoOQgAbFnUl9CS6XtviPVy07WM
tS02jC1fjdQrSYhf+AJcb9NbUfqn1sRChL3CTlR0TNj1BFDXyPdfjA==
=Jjt3
-END PGP SIGNATURE-

-- 
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] Introducing Scaffold

2010-05-04 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I?ve just written and released Scaffold
(http://github.com/jamtur01/puppet-scaffold) ? a very simple Puppet
scaffolding templating tool. It integrates with Puppet to create a
variety of Puppet configuration and objects.

You can install it via a gem currently:

$ sudo gem install scaffold

It requires Puppet and will install the templater gem as a dependency.

You can then use it like so:

* Basic Puppet configuration (creates site.pp, fileserver.conf and
supporting material in the Puppet configuration directory):

$ scaffold puppet

* Modules (it checks the Puppet module path and creates the module
in the first module path it finds):

$ scaffold module module_name

* Nodes (assumes you?ve created the basic Puppet configuration and
creates nodes in Puppet configuration directory):

$ scaffold node node_name

* Classes and Definitions:

$ scaffold class module_name class_name

$ scaffold define module_name define_name

* Functions:

$ scaffold function module_name function_name function_type

The function type can be statement or rvalue and defaults to
statement if omitted.

* Types and providers:

$ scaffold type module_name type_name

I?d welcome feedback, testing, and ideas (and code!) on how to
extend it. The idea is that once we?ve got a strong working tool
we?ll look to integrate something like the result into Puppet
mainline as a provisioning and template system.

Regards

James Turnbull

- -- 
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBS9/bMiFa/lDkFHAyAQJKWQgA40wqP1cp5JYgF+yNMoa5OLclL/n8cf2r
MmThAOfd0FhcRHvF+vGXhU5NHiVSzAX7CrhTYmePA8Os80pMTcmvTgoxMM85FKya
/Z7Hvw0PJcnnUSgJVNQWRgd5LciUkAQ/MPmTjjK83y3Sd/SxEOE0lkpoop6pngyq
ltUT0kmy9qKm+dUbkQBkfZAPCK12jvAcgO0t3dAlHLoKF3TjlSf9wg3k3BvuJDUr
j0Wcae+d+FYLOn7GUXwsqwy3qrKaHp5+VSNzhIKnp1qp+GQEF3qdMhLsC4K84ls7
hgNKG1Vey1IlveMaHyMZIvOQFlBHldPpzVSd1Whqk2zp5r88nPUVWw==
=P+Y6
-END PGP SIGNATURE-

-- 
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: use both ldap and text files

2010-05-04 Thread walexey
I want use node_terminus=ldap, not 'exec'.

On 30 апр, 17:25, Michael DeHaan  wrote:
> /etc/puppet/manifests/site.pp (which probably loads your nodes.pp) and
> an external node source can be used together.
>
> So if you have an external nodes tool that queries LDAP, it would also
> work with site.pp
>
> http://docs.puppetlabs.com/guides/external_nodes.html
>
> On Fri, Apr 30, 2010 at 7:07 AM, walexey  wrote:
> > How can i use for node definitions both /etc/puppet/manifests/nodes.pp
> > and ldap?
>
> > --
> > 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 
> > athttp://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 
> athttp://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: AW: [Puppet Users] Re: complex data types in puppet & facter

2010-05-04 Thread Patrick
I think that Rwolf is puppet 0.26.x.

On May 4, 2010, at 12:43 AM, Bernd Adamowicz wrote:

> Ok, found the answer myself. Just installed 25.5-rc2 on client and server and 
> tried it. But same error message when parsing the template.
> 
>> 
 Is there an elegant way to use complex facts in puppet's erb
>> templates?
>>> 
>>> Puppet will support hashes in the next major version (Rwolf),
>> although I am
>>> not sure if the interaction between Puppet and Facter will support
>> it.
>> 
>> Dan,
>> 
>> does this mean it will be possible to have a template like this
>> 
>> 16 <% workers.each do |worker| -%>
>> 17 worker.<%= worker %>.type=<%= worker['type'] %>
>> 18 worker.<%= worker %>.host=<%= worker['host'] %>
>> 
>> 24
>> 25 <% end -%>
>> 
>> which can be pouplated with an external node definition like this one:
>> 
>> ---
>> classes:
>> - vim
>> - users
>> - templates_eval::testvars
>> environment: test
>> parameters:
>>  workers:
>>bo-01-010101:
>>  type: ajp13
>>  host: myhostname.net
>> 
>> And is this already available in the current beta release? I didn't
>> find anything in the release notes so far (concerning ERB templates,
>> though hashes are mentioned).
>> 
>> Thanks!
>> Bernd
> 
> -- 
> 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.



AW: [Puppet Users] Re: complex data types in puppet & facter

2010-05-04 Thread Bernd Adamowicz
Ok, found the answer myself. Just installed 25.5-rc2 on client and server and 
tried it. But same error message when parsing the template.

> 
> > > Is there an elegant way to use complex facts in puppet's erb
> templates?
> >
> > Puppet will support hashes in the next major version (Rwolf),
> although I am
> > not sure if the interaction between Puppet and Facter will support
> it.
> 
> Dan,
> 
> does this mean it will be possible to have a template like this
> 
>  16 <% workers.each do |worker| -%>
>  17 worker.<%= worker %>.type=<%= worker['type'] %>
>  18 worker.<%= worker %>.host=<%= worker['host'] %>
>  
>  24
>  25 <% end -%>
> 
> which can be pouplated with an external node definition like this one:
> 
> ---
> classes:
>  - vim
>  - users
>  - templates_eval::testvars
> environment: test
> parameters:
>   workers:
> bo-01-010101:
>   type: ajp13
>   host: myhostname.net
> 
> And is this already available in the current beta release? I didn't
> find anything in the release notes so far (concerning ERB templates,
> though hashes are mentioned).
> 
> Thanks!
> Bernd

-- 
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: New user: How to deploy new version of a custom RPM package?

2010-05-04 Thread Daniel Pittman
JRendell  writes:

[...]

> I specifically want to use the RPM provider, not the yum provider.

Ah, sorry.  I missed that, somehow, and have never used the RPM provider.
I think other people have answered your questions there, though, which I hope
is helpful to you.

Thanks for not hating me for my failure to read for content. ;)
Daniel

-- 
✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707
   ♽ 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-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: New user: How to deploy new version of a custom RPM package?

2010-05-04 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> I specifically want to use the RPM provider, not the yum provider.
> Otherwise (as I understand it) I will have to set up a yum repository
> for each machine (or at least environment), and updating/rolling back
> our app will be more complicated than I want to deal with.  ie I don't
> want an inadvertent 'yum update' changing the version of our
> application.  Pulling explicit RPMs via puppet seems easier to control
> right now.  Eg we can store the manifests in svn and have an explicit
> record of application versions installed at a given point in time/for
> a given environment.  If we use yum, I'll have to manage several yum
> repos, including checking in the generated indices etc to be able to
> work out what a particular environment had at a given point in time.

if you need this kind of control over your installed packages I would
recommend that you look for patch-/package-version-management into
spacewalk/satellite (if this is possible for your distro). It is imho
the better tool for that job.

Not that it is not possible to do that with puppet, but I see a certain
complexity that will sooner or later come up with controlling exact
package version over plain rpms with puppet.

What I imagine is that you control package installation (ensure =>
installed), config file management and service restarts etc. with puppet
and control the exact patch-level of applications with spacewalk/satellite.

As a sidenote: you might want to use defines to for example wrap up rpm
downloads and package installation. Also be warned that for larger file
downloads you should at least use 0.25.x and that (hopefully) the next
major release (codename rowfl) will finally clean up the remaining
issues with sourcing large files.

cheers pete
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvfx+MACgkQbwltcAfKi38TEgCgsEDkWo1slmSnGqx9A0x5b/zs
yYIAnA9wb76mLGA2BYsP/jrD2oYEOXda
=YcDl
-END PGP SIGNATURE-

-- 
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: complex data types in puppet & facter

2010-05-04 Thread badamowicz
> > Is there an elegant way to use complex facts in puppet's erb templates?
>
> Puppet will support hashes in the next major version (Rwolf), although I am
> not sure if the interaction between Puppet and Facter will support it.

Dan,

does this mean it will be possible to have a template like this

 16 <% workers.each do |worker| -%>
 17 worker.<%= worker %>.type=<%= worker['type'] %>
 18 worker.<%= worker %>.host=<%= worker['host'] %>
 
 24
 25 <% end -%>

which can be pouplated with an external node definition like this one:

---
classes:
 - vim
 - users
 - templates_eval::testvars
environment: test
parameters:
  workers:
bo-01-010101:
type: ajp13
host: myhostname.net

And is this already available in the current beta release? I didn't
find anything in the release notes so far (concerning ERB templates,
though hashes are mentioned).

Thanks!
Bernd

-- 
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.