[Puppet Users] Re: puppet capistrano and repository

nate
2010-07-13T01:31:59Z

On Jul 12, 9:33 am, bmort <propertywholesa...@gmail.com>
wrote:
> Whew.... I am struggling on a puppet architecture design learning
> curve.
>
> I believe if i could find a good ''stand alone'' example,
it would
> clarify a lot of the questions I have and it would help me set up a
> test machine.
>
> I hoping to find an example of a stand alone that has a process flow
> similar to:
>
> - start puppet with Capistrano
> - puppet checks the  ''repository''  and determines changes
have been
> made
> - applies  any changes
>
> Please share any instructions or good reads ...
>
> I am looking to support a set of servers that support 10+ clients,
> each client has a dev, test and production server for 5 different web
> applications.
>
> Regards.

i''m sort of looking to do similar things. basically, i''m
trying to
hash out the best way to run puppet without a puppetmaster.

i support various businesses with mostly lenient outbound firewalls,
though some restrict traffic on high ports and the like.

one way around this is to run puppet locally. i have some basic
groundwork to keep all the manifests and modules, etc. in a git repo
which then gets checked out via http by the clients.

i''m looking to use git hooks to run puppet. something simple like this
seemed to work, though puppet didn''t actually run on the client. no
error checking or anything in this yet… just quick and dirty.

#!/bin/bash
# post-checkout testing
# stored in .git/hooks/post-checkout
# 100712, initial version, nate
#
/usr/bin/logger -t PUPPET -i "running puppet..."
/usr/bin/puppet -v /etc/pconfig/manifests/site.pp
/usr/bin/logger -t PUPPET -i "puppet run complete"



instead of using capistrano, would a post pull/clone hook do what you
want?