Re: [Puppet Users] Pushing git repo to Windows agent

2014-03-08 Thread David Schmitt

On 07.03.2014 21:13, Nick Miller wrote:

I'm just starting out with puppet, and I have a basic handle on it.
  What I've been tasked to do is to be able to push files from a git
repo to Windows servers.  The servers themselves will have no internet
access, so installing cygwin & git on the agents is not an option.  What
I'd like to do is create a manifest that clones the repo locally, then
copies that directory to the Windows client.  I have vscrepo working, I
just need to know how to pull the repo, save the files to the puppet
master server, then copy that directory to the agent when it connects.


Depending on your requirements to fidelity and coding skill, the tow 
options coming two my mind are cronjob on the master or puppet function.


The cronjob on the master (or an equivalent vcsrepo resource in its 
configuration) would take care that the repo is (relatively) up-to-date. 
The agent would only recursively copy the result down to the nodes. 
Upside: very easy to do. Downside: git repo might not be up-to-date, 
race conditions while updating.


The puppet function could do the cloning in a temporary directory and 
put all required files as finished resources into the catalog (ala 
create_resource). That will bloat the catalog mightily but the clone 
will be fresh and consistent.



Regards, David

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/531B4384.1020008%40dasz.at.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Versioned Deployment of Modules?

2014-03-08 Thread Atom Powers
I have, I think, a fairly "modern" setup of Puppet 3, hiera, ENC for
external facts, role/stack meta-module etc. I have a single puppetmaster
and I'm not inclined to do any kind of "master-less" puppet.

I am implementing a new monitoring system and it is a pretty big change. I
don't want to deploy that to every host in my infrastructure at the same
time. I want to be able to deploy a different version of my meta-module to
different hosts.

What is the "best" way to deploy different version of a module to different
hosts? I expect I could do something with environments but I'm not sure
what that looks like?

 Simple host description
ENC data for host.domain.tld:
role=webserver
environment=production

webserver.yaml
classes:
 - base
 - nginx

base.pp v1
include nagios

base.pp v2
include pandorafms


-- 
Perfection is just a word I use occasionally with mustard.
--Atom Powers--

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF-H%3DO%3DoF4u%3DaCRMEsw3QuC1PS58j1bv01p1zAA73ZMu2dPMxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.