[Puppet Users] Puppet and augeas - onlyif conditions; overwriting default values

2010-12-29 Thread Os
Hello,

I am still not getting warm with augeas and puppet, there are some
things I do not understand. At the moment I am trying the following:

- I want to set some kernel parameters in the /etc/sysctl.conf file
- in one puppet module, I have defined some default values for the
kernel parameters
- but for several servers I want to modify some of these values,
therefore I would like to overwrite the default value via the custom
module of these servers

Here is an fictitious example:

1. puppet module with the default value:

...
augeas {"default-sysctl.conf":
provider => "augeas",
context => "/files/etc/sysctl.conf",
changes => [
"set fs.aio-max-nr 1048576",
"set fs.file-max 9000",
],
notify => Exec["load-sysctl"],
onlyif => "match #comment[1] != 'MODIFY_FLAG'",
}
exec { "load-sysctl":
command => "/sbin/sysctl -p",
refreshonly => true,
}
...

2. custom puppet module to adjust adjusted value:

augeas {"custom-sysctl.conf":
provider => "augeas",
context => "/files/etc/sysctl.conf",
changes => [
"set fs.file-max 3000",
],
notify => Exec["load-sysctl"],
}


My problem is now the "match"-constraint. I would like to set a
comment in the /etc/sysctl.conf file to tell augeas/puppet that the
file will be configured via an other module.
So I want to match if this comment is present or not. I have tried
several combinations, at the moment I wrote the MODIFY_FLAG comment on
top of the file. But none of these worked.
When I rebuild this in augtool, it works fine:
augtool> match /files/etc/sysctl.conf/#comment[1] MODIFY_FLAG

I am using the following software:
- puppet 0.25.5
- augeas 0.7.4
- augeas-libs 0.7.4
- ruby-augeas 0.3.0

But perhaps I am doing the whole thing wrong, is there an other way to
solve this default-custom thing?

-- 
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] How the agents are distinguishing the matching config changes ?

2010-12-29 Thread Felix Frank
On 12/28/2010 03:45 PM, mbuyukkarakas wrote:
> Dear members,
> 
> I'm a newbie in Puppet. I was not able to find answers about this.
> Could you please redirect me to the correct resources. Thank you.
> 
> 
> I need to manage several Solaris10 servers. But I guess every server
> wont have the same configuration or same templates. So how the agents
> are distinguishing the correct configuration file which matches to the
> server or the group ?
> 
> Thank you.
> 

Look here: http://docs.puppetlabs.com/guides/language_tutorial.html#nodes

HTH,
Felix

-- 
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] Use MySQL replication with stored configs

2010-12-29 Thread Carles Amigó

Thanks. I'll give it a shot :)

El 28/12/2010 17:40, Ohad Levy escribió:

2010/12/27 Carles Amigó mailto:carles.am...@softonic.com>>

Couldn't find any related thread...

We're using it mainly for collection so far (ie: nagios), but in the
future we'll probably use it for inventory too.


My solution for collection / inventory was to use Foreman [1]
(and especially its query interface [2] for collections).. inventory
comes out of the box too.

[1] - http://theforeman.org
[2] - http://theforeman.org/projects/foreman/wiki/Query_Interface


El 22/12/2010 21:02, Ohad Levy escribió:

Hi,

Search the threads, there were a few discussions about this
point... at
the moment afaik, its not doable.

are you using store config for collection or just for inventory?
there
are a few other options for both requirements without having your
central db blocking puppet.

Ohad

2010/12/22 Carles Amigó mailto:fr...@fr3nd.net> >>


Hello,

I'm configuring an environment using multiple puppet masters
geographically distributed in different locations. We have a
"central" puppet master  in our main office with the CA signing
authority and we also keep the MySQL database with the stored
configs there.

As we sometimes have a lot of latency between locations we also
configured ActiveMQ with puppetqd so it doesn't take ages to
write
the stored configs, but the master is still reading from the
central
stored configs database making it very slow. As far as I
know, the
master uses ActiveMQ+puppetqd when it has to write and it
connects
directly to the database when it has to fetch the stored config
data. Am I right?

If so, would it be possible to setup a MySQL replication and
configure the master to read from the local database (replicated
from the MySQL master) and puppetqd to write to the MySQL
master?
Has anyone tried this architecture?

Cheers

--
Carles Amigó
fr...@fr3nd.net  >

http://www.fr3nd.net
Hey dol! merry dol! ring a dong dillo!

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



This e-mail (and any attached files) may contain confidential and/or
privileged information. If you are not the intended recipient (or
have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is
strictly forbidden.


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

Re: [Puppet Users] Generating Certs

2010-12-29 Thread Felix Frank
On 12/28/2010 08:34 PM, Mike wrote:
> Hi,
> 
>  I am trying to generate certificates on my puppet client to enable
> communication with my puppet master. However, when I run rake
> cert:create_key_pair I get the following message from rake:
> 
> rake aborted!
> Don't know how to build task 'cert:create_key_pair'
> 
> I am hoping someone has seen this and knows how to fix it or has a
> workaround? Thanks!

Is this even necessary? When puppetd is invoked and finds no
certificates, it should automatically create a new one for itself, and
send a CSR to the puppetmaster.

Cheers,
Felix

-- 
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] Testing Puppet Manifests?

2010-12-29 Thread Felix Frank
On 12/28/2010 09:04 PM, Patrick wrote:
> 
> On Dec 28, 2010, at 9:45 AM, Dustin J. Mitchell wrote:
> 
>> Second, I'm working on refactoring our puppet configuration, and in so
>> doing it would be best to ensure I haven't unexpectedly changed any
>> resources.  Is there any machine-parsable way of seeing the set of
>> resources that result from a particular manifest and set of facts?
>>
>> Thanks for any pointers!
> 
> Take a look at the --compile option on puppetmasterd.  
> 

For refactoring,
http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments
can be of interest.

-- 
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] Modify file with use of regex

2010-12-29 Thread Felix Frank
On 12/29/2010 12:44 AM, Dmytro Bablinyuk wrote:
> Hi Everyone,
> 
> I am trying to modify /etc/drbd.d/global_common.conf that in general
> looks like this
> 
> ...
> net {
> # snd‐buf-size rcvbuf-size timeout connect-int ping-
> int ping-timeout max-buffers
> # max-epoch-size ko-count allow-two-primaries cram-
> hmac-alg shared-secret
> # after-sb-0pri after-sb-1pri after-sb-2pri data-
> integrity-alg no-tcp-cork
> }
> 
> syncer {
> # rate after al-extents use-rle cpu-mask verify-alg
> csums-alg
> }
> 
> At first I attempt to use augeas but looks like (according to augtool)
> it's not making a tree out of the file
> 
> r...@puppet-client-ubuntu:~# augtool
> augtool> print /files/etc/drbd.d/global_common.conf
> augtool>
> 
> The next option I have is to use regex to modify that file e.g. to run
> something like this 's/syncer {/syncer {\n\t\trate 50M ;/'

The crude way would indeed be to use an exec of sed with an expression
like you suggest.

Note that more often than not, it will be a lot cleaner to template the
whole DRBD config and define sensible resource types that will spit out
the whole config the way you need it.

If you don't want puppet to take full control over your files (and
assuming you are somewhat comfortable with hacking in ruby), writing
your own plugin would be superior to a sed solution.

Regards,
Felix

-- 
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] How do you extend a previous setting?

2010-12-29 Thread Adam Nielsen

Hi all,

I have a site.pp which defines the user I want to log in as, however on some 
nodes (depending on which software is installed) this user needs to be a 
member of particular groups.


If I define the user in site.pp with core details and then in each class alter 
the group membership (the idea being including all the necessary classes will 
install the software, configure it, and make me a member of all the necessary 
groups) I get this error:


Error 400 on SERVER: Duplicate definition: User[adam] is already defined in 
file ...; cannot redefine at ...


Is there any way I can make the node definition "inherit" the site one?  All I 
want to do is add another entry into the array passed as the 'groups' parameter.


Many thanks,
Adam.

--
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] How do you extend a previous setting?

2010-12-29 Thread Felix Frank
On 12/29/2010 01:26 PM, Adam Nielsen wrote:
> Hi all,
> 
> I have a site.pp which defines the user I want to log in as, however on
> some nodes (depending on which software is installed) this user needs to
> be a member of particular groups.
> 
> If I define the user in site.pp with core details and then in each class
> alter the group membership (the idea being including all the necessary
> classes will install the software, configure it, and make me a member of
> all the necessary groups) I get this error:
> 
> Error 400 on SERVER: Duplicate definition: User[adam] is already defined
> in file ...; cannot redefine at ...
> 
> Is there any way I can make the node definition "inherit" the site one? 
> All I want to do is add another entry into the array passed as the
> 'groups' parameter.

Good keyword that.

Put the use definition in a class. Each list of groups is a subclass
such that

class my_user_in_group_foo inherits my_user {
  User["bla"] { groups +> [ "foo", "bar" ] }
}

Include those subclasses as appropriate.

HTH,
Felix

-- 
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] How do you extend a previous setting?

2010-12-29 Thread Adam Nielsen

Is there any way I can make the node definition "inherit" the site one?
All I want to do is add another entry into the array passed as the
'groups' parameter.


Good keyword that.

Put the use definition in a class. Each list of groups is a subclass
such that

class my_user_in_group_foo inherits my_user {
   User["bla"] { groups +>  [ "foo", "bar" ] }
}

Include those subclasses as appropriate.


Ah, of course!  I'm still new to Puppet and had forgotten about class 
inheritance.  I just tried this and it works perfectly.


Many thanks!
Adam.

--
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 and augeas - onlyif conditions; overwriting default values

2010-12-29 Thread Rob McBroom
On Dec 29, 2010, at 3:07 AM, Os wrote:

> But perhaps I am doing the whole thing wrong, is there an other way to
> solve this default-custom thing?

Depending on how conceptually “close together” they are, you could just define 
the defaults in one class and have another class that inherits from it and 
overrides with custom changes as needed.

I've done exactly that for `sysctl.conf`, but the defaults in my case only 
apply to a specific group of systems. To put it another way, I don't use 
modules at all but if I did, the default and custom values would probably be in 
the same one in my particular case. Sounds like you've got them separated.

Something else I don't use is virtual resources, but maybe that would apply 
here? If I understood them well enough to say for sure, I'd probably use them. 
:)

-- 
Rob McBroom


-- 
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] Issues with puppet first launch

2010-12-29 Thread Shawn
In one screen I am running the puppet daemon.

r...@puppetmaster:~# puppetmasterd --verbose --no-daemonize
info: Caching certificate for ca
info: Creating a new SSL certificate request for puppetmaster
notice: puppetmaster has a waiting certificate request
notice: Signed certificate request for puppetmaster
notice: Removing file Puppet::SSL::CertificateRequest puppetmaster at
'/var/lib/puppet/ssl/ca/requests/puppetmaster.pem'
notice: Removing file Puppet::SSL::CertificateRequest puppetmaster at
'/var/lib/puppet/ssl/certificate_requests/puppetmaster.pem'
notice: Starting Puppet server version 0.25.4
err: Removing mount files: /etc/puppet/files does not exist

Next screen.


r...@puppetmaster:~# puppetd --server
puppetmaster.patient-pad.org--waitforcert 60 --test
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources
using 'eval_generate': undefined method `closed?' for nil:NilClass
err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
resource: undefined method `closed?' for nil:NilClass Could not retrieve
file metadata for puppet://puppetmaster.domainname.com/plugins: undefined
method `closed?' for nil:NilClass
err: Could not retrieve catalog from remote server: undefined method
`closed?' for nil:NilClass
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run



Any ideas on this?

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.



[Puppet Users] Puppet doesn't work over slow connections?

2010-12-29 Thread Adam Nielsen

Hi all,

I'm trying to do exactly the same thing as described on this bug report, and 
I'm having exactly the same problem:


  http://projects.puppetlabs.com/issues/4762

The bug report seems to suggest that "editing the line on the puppet master" 
will fix the problem, but I don't know what this means.  Is this the 
configtimeout or filetimeout config option?


At the moment this is all I get when connecting to a puppetmaster (which works 
fine with hosts on the same LAN, but this server is on the other side of the 
world, ping time approx 175ms):


# puppetd --server localhost --waitforcert 60 --test
warning: peer certificate won't be verified in this SSL session
err: Could not request certificate: SSL_connect SYSCALL returned=5 errno=0 
state=SSLv2/v3 read server hello A


After this the server says:

[2010-12-29 09:57:28] ERROR RuntimeError: Client disconnected before 
connection could be established

/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in 
`listen'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in 
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in 
`initialize'

/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in 
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in 
`synchronize'

/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in 
`listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in 
`run_command'

/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'
/usr/bin/puppetmasterd:4

I assume the connection is working then, because if I try to telnet to port 
8140 on the puppetmaster I get disconnected before I can type a single letter. 
 Normally you get a few minutes before getting disconnected, so either it's 
not working or the timeout defaults to a value far too low for Puppet to work 
when the servers are a long distance apart.


Any suggestions as to how I might get Puppet working with hosts on different 
continents?


Many thanks,
Adam.

--
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 & Hudson CI

2010-12-29 Thread Scott
All,

I'm looking for additional information regarding Puppet and Hudson.
Specifically, I am looking to automatically push successful
environment builds (say for Dev, QA, Production environments) from
Hudson to Puppet.  Thus, when a puppet configuration is checked into
Hudson and the build succeeds, I want that configuration pushed via
Puppet to its managed servers.  A RedMonk podcast (http://
www.redmonk.com/cote/2008/06/11/puppet-at-google-redmonk-radio-episode-48/)
indicates Google uses this setup, and a few users here have alluded
they have a similar setup.  However, I cannot find any documentation
on how to integrate the two.  A short how-to or tutorial would be
appreciated!

Thanks in advance.

-- 
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 doesn't work over slow connections?

2010-12-29 Thread Nigel Kersten
On Tue, Dec 28, 2010 at 4:07 PM, Adam Nielsen  wrote:
> Hi all,
>
> I'm trying to do exactly the same thing as described on this bug report, and
> I'm having exactly the same problem:
>
>  http://projects.puppetlabs.com/issues/4762

Adam, can you vote or watch that bug please so we know other people
are being affected by it?

Updating the worklog to also say "I'm having this problem under these
conditions" also lets the person who it is assigned to know that it's
still an issue, and is affecting more than just the original reporter.

>
> The bug report seems to suggest that "editing the line on the puppet master"
> will fix the problem, but I don't know what this means.  Is this the
> configtimeout or filetimeout config option?

It's actually suggesting that you edit the puppet source code.
Obviously this is not a long term solution, but it would be very
helpful if you had success doing this and could let us know in the
ticket.

Depending upon your platform and installation, the puppet source code
may live in various locations, but it's likely to be something like:

/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb
or
/usr/lib/ruby/1.8/puppet/network/http/webrick.rb

Are you actually using webrick as the puppet master? We do highly
suggest that people set up Passenger or Mongrel with Apache for
production environments, as webrick hits scalability limits rather
quickly.


http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger
http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel

That's not to suggest this shouldn't be resolved for webrick however.
> At the moment this is all I get when connecting to a puppetmaster (which
> works fine with hosts on the same LAN, but this server is on the other side
> of the world, ping time approx 175ms):
>
> # puppetd --server localhost --waitforcert 60 --test
> warning: peer certificate won't be verified in this SSL session
> err: Could not request certificate: SSL_connect SYSCALL returned=5 errno=0
> state=SSLv2/v3 read server hello A
>
> After this the server says:
>
> [2010-12-29 09:57:28] ERROR RuntimeError: Client disconnected before
> connection could be established
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:43:in
> `listen'
>        /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
>        /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
>        /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>        /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
>        /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
>        /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
>        /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
>        /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in
> `listen'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in
> `initialize'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in
> `new'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in
> `listen'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in
> `synchronize'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in
> `listen'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'
>        /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'
>        /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:124:in `start'
>        /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in
> `main'
>        /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in
> `run_command'
>        /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'
>        /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:393:in
> `exit_on_fail'
>        /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:287:in `run'
>        /usr/bin/puppetmasterd:4
>
> I assume the connection is working then, because if I try to telnet to port
> 8140 on the puppetmaster I get disconnected before I can type a single
> letter.  Normally you get a few minutes before getting disconnected, so
> either it's not working or the timeout defaults to a value far too low for
> Puppet to work when the servers are a long distance apart.
>
> Any suggestions as to how I might get Puppet working with hosts on different
> continents?
>
> Many thanks,
> Adam.
>
> --
> 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.
T

Re: [Puppet Users] Issues with puppet first launch

2010-12-29 Thread Nigel Kersten
On Wed, Dec 29, 2010 at 7:13 AM, Shawn  wrote:
> In one screen I am running the puppet daemon.
>
> r...@puppetmaster:~# puppetmasterd --verbose --no-daemonize
> info: Caching certificate for ca
> info: Creating a new SSL certificate request for puppetmaster
> notice: puppetmaster has a waiting certificate request
> notice: Signed certificate request for puppetmaster
> notice: Removing file Puppet::SSL::CertificateRequest puppetmaster at
> '/var/lib/puppet/ssl/ca/requests/puppetmaster.pem'
> notice: Removing file Puppet::SSL::CertificateRequest puppetmaster at
> '/var/lib/puppet/ssl/certificate_requests/puppetmaster.pem'
> notice: Starting Puppet server version 0.25.4
> err: Removing mount files: /etc/puppet/files does not exist
>
> Next screen.
>
>
> r...@puppetmaster:~# puppetd --server puppetmaster.patient-pad.org
> --waitforcert 60 --test
> info: Retrieving plugin
> err: /File[/var/lib/puppet/lib]: Failed to generate additional resources
> using 'eval_generate': undefined method `closed?' for nil:NilClass
> err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
> resource: undefined method `closed?' for nil:NilClass Could not retrieve
> file metadata for puppet://puppetmaster.domainname.com/plugins: undefined
> method `closed?' for nil:NilClass
> err: Could not retrieve catalog from remote server: undefined method
> `closed?' for nil:NilClass
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run

Does the problem go away if you add "--no-pluginsync" to the puppetd invocation?

Can you let us know what versions of puppet and facter you are running?

$ puppet --version
$ facter --version




>
>
>
> Any ideas on this?
>
> 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.



Re: [Puppet Users] Puppet & Hudson CI

2010-12-29 Thread Nigel Kersten
On Wed, Dec 29, 2010 at 7:28 AM, Scott  wrote:
> All,
>
> I'm looking for additional information regarding Puppet and Hudson.
> Specifically, I am looking to automatically push successful
> environment builds (say for Dev, QA, Production environments) from
> Hudson to Puppet.  Thus, when a puppet configuration is checked into
> Hudson and the build succeeds, I want that configuration pushed via
> Puppet to its managed servers.  A RedMonk podcast (http://
> www.redmonk.com/cote/2008/06/11/puppet-at-google-redmonk-radio-episode-48/)
> indicates Google uses this setup, and a few users here have alluded
> they have a similar setup.  However, I cannot find any documentation
> on how to integrate the two.  A short how-to or tutorial would be
> appreciated!

I think I was on that podcast, but can't bring myself to suffer
through listening to my own voice right now :) and I mustn't have been
clear. We didn't use Hudson at Google with Puppet.

We manually tested due to having so many laptop installations and
operating systems like OS X that are difficult to test full installs
programmatically with.

We used environments for the release process, along the lines of
Debian with unstable -> testing -> stable, and had things set up so
you could PXE boot against specific servers and environments. If that
process succeeded, we would promote the given environment through the
release process.

I do know other people have set up CI with Puppet/Hudson, so hopefully
they'll chime in here soon.

>
> Thanks in advance.
>
> --
> 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] case statement err?

2010-12-29 Thread An
Hi,

I'm a newbie to Puppet so please bare with me if I made silly mistakes
or question something really simple.

I was trying to intergrate Puppet with Nagios and I was customizing
David S's manifests/init.pp - extra_host define. I basically added one
more variable ($host_template) in the purpose of creating ${name}
_host.cfg file based on preferred host template.

define extra_host($ip = $fqdn, $short_alias = $fqdn, $parent = "none",
$host_template="none") {
$nagios_parent = $parent
$nagios_host_tempalte = $host_template
   file{
  "$nagios_cfgdir/${name}_host.cfg":
  ensure => present,
  mode => 644, owner => root, group => root,
   }

   case $host_template {
 'test': { File[$nagios_cfgdir/${name}_host.cfg] { content
=> template ( "nagios_ds/host_test.erb" )} }
 default: { File[$nagios_cfgdir/${name}_host.cfg]
{ content => template ( "nagios_ds/host.erb" )} }
   }
}

Then I tried to compile it, puppet complains Syntax error at
'/';expected ']' at the case line, but I don't see what was wrong in
those line. If I comment the case statement out, it went through fine.
Can someone point me what I did wrong?

An

-- 
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: case statement err?

2010-12-29 Thread An

Issue solved. It was something simple, the double quotation was
missing when declaring the File.
An.

On Dec 29, 1:58 pm, An  wrote:
> Hi,
>
> I'm a newbie to Puppet so please bare with me if I made silly mistakes
> or question something really simple.
>
> I was trying to intergrate Puppet with Nagios and I was customizing
> David S's manifests/init.pp - extra_host define. I basically added one
> more variable ($host_template) in the purpose of creating ${name}
> _host.cfg file based on preferred host template.
>
> define extra_host($ip = $fqdn, $short_alias = $fqdn, $parent = "none",
> $host_template="none") {
>     $nagios_parent = $parent
>     $nagios_host_tempalte = $host_template
>        file{
>           "$nagios_cfgdir/${name}_host.cfg":
>                   ensure => present,
>                   mode => 644, owner => root, group => root,
>        }
>
>        case $host_template {
>              'test': { File[$nagios_cfgdir/${name}_host.cfg] { content
> => template ( "nagios_ds/host_test.erb" )} }
>              default: { File[$nagios_cfgdir/${name}_host.cfg]
> { content => template ( "nagios_ds/host.erb" )} }
>        }
>
> }
>
> Then I tried to compile it, puppet complains Syntax error at
> '/';expected ']' at the case line, but I don't see what was wrong in
> those line. If I comment the case statement out, it went through fine.
> Can someone point me what I did wrong?
>
> An

-- 
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] Issues with puppet first launch

2010-12-29 Thread Patrick

On Dec 29, 2010, at 7:13 AM, Shawn wrote:

> err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of 
> resource: undefined method `closed?' for nil:NilClass Could not retrieve file 
> metadata for puppet://puppetmaster.domainname.com/plugins: undefined method 
> `closed?' for nil:NilClass
> err: Could not retrieve catalog from remote server: undefined method 
> `closed?' for nil:NilClass

This error is a bug that is fixes in later versions of puppet.  It means, 
something went wrong (this might be your fault) and the cleanup code failed 
(this part isn't your fault).

You can find more information and a workaround that will get you the real error 
at:
http://projects.puppetlabs.com/issues/3101

You can also get the real error message if you upgrade to 0.25.5 or 2.6.x

-- 
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 & Hudson CI

2010-12-29 Thread Stefan Schlesinger
Hey Scott,

I wrote a puppet-sync tool which syncs a git branch from Git to puppet
masters. http://sts.ono.at/blog/2010/12/22/synchronize-puppet-with-git/

Maybe you could trigger it from hudson and sync the build from the Git
repository. Only thing which might still be missing, is to specify a
revision of a branch.

Have a look at it and tell me if its useable and whether you need a
parameter to sync a specific version of a Git branch. If so I'll just
patch it.

Regards, Stefan.  


On Dec 29, 2010, at 16:28 , Scott wrote:

> All,
> 
> I'm looking for additional information regarding Puppet and Hudson.
> Specifically, I am looking to automatically push successful
> environment builds (say for Dev, QA, Production environments) from
> Hudson to Puppet.  Thus, when a puppet configuration is checked into
> Hudson and the build succeeds, I want that configuration pushed via
> Puppet to its managed servers.  A RedMonk podcast (http://
> www.redmonk.com/cote/2008/06/11/puppet-at-google-redmonk-radio-episode-48/)
> indicates Google uses this setup, and a few users here have alluded
> they have a similar setup.  However, I cannot find any documentation
> on how to integrate the two.  A short how-to or tutorial would be
> appreciated!
> 
> Thanks in advance.
> 
> -- 
> 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.
> 

--
Stefan Schlesinger // ///
s...@ono.at+43.676.4911123

-- 
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: puppet +with build support

2010-12-29 Thread Stefan Schlesinger
Hey Sanjiy,


On Nov 16, 2010, at 11:41 , sanjiv.singh wrote:
> i am able to use environment option for build support  ..

Don't know whether this might still be of use to you. I wrote
a puppet-sync script, which in this setup could maybe solve
your problem.

http://sts.ono.at/blog/2010/12/22/synchronize-puppet-with-git/

Regards, Stefan.

-- 
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: OS X package management

2010-12-29 Thread Nigel Kersten
On Wed, Dec 29, 2010 at 4:59 PM, Sean Lazar  wrote:
> Hello,
>
> I've got puppet installed and working. I'm looking for a way to update
> software on OS X desktops. I have successfully set up the appdmg package
> provider, and I can update an application. How do you manage installs? I
> want to update an application but not when the user is using the
> application. Is there a way to check if an application is running and do the
> package install later? How do people manage this? Or are more people leaning
> toward Munki and letting Munki's dialog box interact with the user?

This is difficult, and I believe that we shouldn't replicate the great
work Munki is doing in this area, but should instead work on
Munki/Puppet integration. We have some community members who have been
looking into this recently who I'm sure will chime in here.

I'm going to talk about the pkgdmg provider more here, as it offers
more control than appdmg. I know you're using the latter, but you
really have very little control there.

If these are custom packages, you can do the work in the installation
scripts, but that gets really old really quickly, and doesn't
translate well to signed flat packages in any case.

If I was spending time working on this problem right now, I'd be
making a munki type/provider that uses Munki to do all this work as
Greg has done a great job dealing with the user interaction process.

There are other hacky solutions like setting up launchd to register
for NSWorkspace notifications and watch for application quits if in
use, then copying the files in, but they're not trivial to implement.

-- 
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 & Hudson CI

2010-12-29 Thread Scott
Thanks, Nigel.  That actually gives me a few more ideas re: PXE
booting against specific bootstrap images.  I'll keep that in mind!

On Dec 29, 12:04 pm, Nigel Kersten  wrote:
> On Wed, Dec 29, 2010 at 7:28 AM, Scott  wrote:
> > All,
>
> > I'm looking for additional information regarding Puppet and Hudson.
> > Specifically, I am looking to automatically push successful
> > environment builds (say for Dev, QA, Production environments) from
> > Hudson to Puppet.  Thus, when a puppet configuration is checked into
> > Hudson and the build succeeds, I want that configuration pushed via
> > Puppet to its managed servers.  A RedMonk podcast (http://
> >www.redmonk.com/cote/2008/06/11/puppet-at-google-redmonk-radio-episod...)
> > indicates Google uses this setup, and a few users here have alluded
> > they have a similar setup.  However, I cannot find any documentation
> > on how to integrate the two.  A short how-to or tutorial would be
> > appreciated!
>
> I think I was on that podcast, but can't bring myself to suffer
> through listening to my own voice right now :) and I mustn't have been
> clear. We didn't use Hudson at Google with Puppet.
>
> We manually tested due to having so many laptop installations and
> operating systems like OS X that are difficult to test full installs
> programmatically with.
>
> We used environments for the release process, along the lines of
> Debian with unstable -> testing -> stable, and had things set up so
> you could PXE boot against specific servers and environments. If that
> process succeeded, we would promote the given environment through the
> release process.
>
> I do know other people have set up CI with Puppet/Hudson, so hopefully
> they'll chime in here soon.
>
>
>
>
>
>
>
>
>
> > Thanks in advance.
>
> > --
> > 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.



[Puppet Users] Re: Puppet & Hudson CI

2010-12-29 Thread Scott
Stefan,

This is a great start, thank you!  This is what I needed; once I check
in the source code revision (and it passes the requisite tests) I can
have Hudson trigger the sync tool on the puppet masters.  It will work
as-is; but if you could add the option for a specific revision I would
be grateful as it would make reverting to an earlier version much
easier.

Thanks again.

On Dec 29, 7:13 pm, Stefan Schlesinger  wrote:
> Hey Scott,
>
> I wrote a puppet-sync tool which syncs a git branch from Git to puppet
> masters.http://sts.ono.at/blog/2010/12/22/synchronize-puppet-with-git/
>
> Maybe you could trigger it from hudson and sync the build from the Git
> repository. Only thing which might still be missing, is to specify a
> revision of a branch.
>
> Have a look at it and tell me if its useable and whether you need a
> parameter to sync a specific version of a Git branch. If so I'll just
> patch it.
>
> Regards, Stefan.  
>
> On Dec 29, 2010, at 16:28 , Scott wrote:
>
>
>
>
>
>
>
>
>
> > All,
>
> > I'm looking for additional information regarding Puppet and Hudson.
> > Specifically, I am looking to automatically push successful
> > environment builds (say for Dev, QA, Production environments) from
> > Hudson to Puppet.  Thus, when a puppet configuration is checked into
> > Hudson and the build succeeds, I want that configuration pushed via
> > Puppet to its managed servers.  A RedMonk podcast (http://
> >www.redmonk.com/cote/2008/06/11/puppet-at-google-redmonk-radio-episod...)
> > indicates Google uses this setup, and a few users here have alluded
> > they have a similar setup.  However, I cannot find any documentation
> > on how to integrate the two.  A short how-to or tutorial would be
> > appreciated!
>
> > Thanks in advance.
>
> > --
> > 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.
>
> --
> Stefan Schlesinger // ///
> s...@ono.at                                            +43.676.4911123

-- 
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] Package Repositories at http://yum.puppetlabs.com/

2010-12-29 Thread Jeff McCune
There has recently been some confusion over the contents of the package
repositories located at http://yum.puppetlabs.com/  I hope to clarify the
intended purpose of these repositories with the following information.

The "base" repository located at: http://yum.puppetlabs.com/base/ contains
official packages for software Puppet Labs has released.  Currently this
repository contains official releases of MCollective and Dashboard.

The "prosvc" repository contains packages some of us (myself comes to mind)
in the company have found useful and use in our own projects from time to
time.  The repository is meant to be by copied into a local repository to
provide an easier to manage solution than compiling things by hand.

I don't recommend pointing production systems at the prosvc repository,
instead pull the packages into your own repository.  We may remove versions
of software you're relying on, and I'd hate to have that cause issues.  The
prosvc repository is also "unofficial" and provided as a convenience.

There was some confusion about the passenger RPM's in the base repository.
These shouldn't have been there and have been moved into the prosvc
repository.  If you're looking for RPM's of Passenger, please pull down and
test the 2.2.11 RPM's at http://yum.puppetlabs.com/prosvc/ rather than the
older RPM's we had in "base"  I've removed the old RPM's from base and added
a README.txt file to help prevent confusion in the future.

Hope this helps.  Please let me know if you have any questions.

Cheers,
-- 
Jeff McCune
http://www.puppetlabs.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.



[Puppet Users] OS X package management

2010-12-29 Thread Sean Lazar

Hello,

I've got puppet installed and working. I'm looking for a way to update 
software on OS X desktops. I have successfully set up the appdmg package 
provider, and I can update an application. How do you manage installs? I 
want to update an application but not when the user is using the 
application. Is there a way to check if an application is running and do 
the package install later? How do people manage this? Or are more people 
leaning toward Munki and letting Munki's dialog box interact with the user?


Sean

--
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] How to group actions

2010-12-29 Thread Dmytro Bablinyuk
Hi Everyone,

I have a very big chunk of code that consists from file, package,
exec, auges actions. I need to execute certain actions on certain
hosts. Each group of actions is valid for a single client host only
thus they are not re-usable.
I was thinking about grouping those actions into some sort of
functions that I can call from main "case".

What the best way of grouping actions and how?

Thank you
Dmytro

-- 
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: OS X package management

2010-12-29 Thread Gary Larizza
Hi Sean,

I'm one of the guys looking into Munki/Puppet integration. I hope to
have something hashed out very soon. For now, Nigel has outlined the
alternatives. I have a small wiki setup at
http://links.huronstudents.com/puppet that describes how I handle
packages, but everything is still quite intrusive.

If you've got Python chops and want to help with work on a Munki
provider, just let me know!

Gary

On Wednesday, December 29, 2010, Nigel Kersten  wrote:
> On Wed, Dec 29, 2010 at 4:59 PM, Sean Lazar  wrote:
>> Hello,
>>
>> I've got puppet installed and working. I'm looking for a way to update
>> software on OS X desktops. I have successfully set up the appdmg package
>> provider, and I can update an application. How do you manage installs? I
>> want to update an application but not when the user is using the
>> application. Is there a way to check if an application is running and do the
>> package install later? How do people manage this? Or are more people leaning
>> toward Munki and letting Munki's dialog box interact with the user?
>
> This is difficult, and I believe that we shouldn't replicate the great
> work Munki is doing in this area, but should instead work on
> Munki/Puppet integration. We have some community members who have been
> looking into this recently who I'm sure will chime in here.
>
> I'm going to talk about the pkgdmg provider more here, as it offers
> more control than appdmg. I know you're using the latter, but you
> really have very little control there.
>
> If these are custom packages, you can do the work in the installation
> scripts, but that gets really old really quickly, and doesn't
> translate well to signed flat packages in any case.
>
> If I was spending time working on this problem right now, I'd be
> making a munki type/provider that uses Munki to do all this work as
> Greg has done a great job dealing with the user interaction process.
>
> There are other hacky solutions like setting up launchd to register
> for NSWorkspace notifications and watch for application quits if in
> use, then copying the files in, but they're not trivial to implement.
>
> --
> 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.
>
>

-- 
Gary Larizza

Director of Technology
Huron City Schools
http://www.huronhs.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: [Puppet Users] Package Repositories at http://yum.puppetlabs.com/

2010-12-29 Thread hai wu
Does it mean mod_passenger RPM package for 2.2.11 is not recommended going
forward? I had to run the built-in script from rubygem-passenger to build
passenger module for apache earlier since no such RPM package was available
from both repositories ..

Thanks,
Hai

On Wed, Dec 29, 2010 at 8:20 PM, Jeff McCune  wrote:

> There has recently been some confusion over the contents of the package
> repositories located at http://yum.puppetlabs.com/  I hope to clarify the
> intended purpose of these repositories with the following information.
>
> The "base" repository located at: http://yum.puppetlabs.com/base/ contains
> official packages for software Puppet Labs has released.  Currently this
> repository contains official releases of MCollective and Dashboard.
>
> The "prosvc" repository contains packages some of us (myself comes to mind)
> in the company have found useful and use in our own projects from time to
> time.  The repository is meant to be by copied into a local repository to
> provide an easier to manage solution than compiling things by hand.
>
> I don't recommend pointing production systems at the prosvc repository,
> instead pull the packages into your own repository.  We may remove versions
> of software you're relying on, and I'd hate to have that cause issues.  The
> prosvc repository is also "unofficial" and provided as a convenience.
>
> There was some confusion about the passenger RPM's in the base repository.
> These shouldn't have been there and have been moved into the prosvc
> repository.  If you're looking for RPM's of Passenger, please pull down and
> test the 2.2.11 RPM's at http://yum.puppetlabs.com/prosvc/ rather than the
> older RPM's we had in "base"  I've removed the old RPM's from base and added
> a README.txt file to help prevent confusion in the future.
>
> Hope this helps.  Please let me know if you have any questions.
>
> Cheers,
> --
> Jeff McCune
> http://www.puppetlabs.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.
>

-- 
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] Testing Puppet Manifests?

2010-12-29 Thread Nikolay Sturm
* Dustin J. Mitchell [2010-12-28]:
> I'm having a hard time figuring out how best to develop and test
> changes to Puppet manifests.

Depending on the meaning of "test changes to Puppet manifests",
cucumber-puppet might be of interest. It allows you to specify test
cases and verifies catalog behaviour against them. The project is hosted
at http://projects.puppetlabs.com/projects/cucumber-puppet.

cheers,

Nikolay

-- 
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 & Hudson CI

2010-12-29 Thread Nikolay Sturm
* Scott [2010-12-29]:
> I'm looking for additional information regarding Puppet and Hudson.

I blogged about our company's puppet setup here:

http://blog.nistu.de/Continuous_Integration_for_Puppet.html

Since that post I wrote cucumber-puppet, allowing me to implement some
kind of automated test suite and added a deploy job to hudson,
automatically deploying successful builds to our puppetmaster's testing
environment. We added a manual step, updating the production environment
from the testing environment. The former is a git clone from the latter,
so a git pull is all it takes to update production.

HTH,

Nikolay

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