[Puppet Users] Base directory with File

2012-06-25 Thread Mark Roggenkamp
Hi all, I'd like to specify a base_directory and a list of directories (as variables that may be pulled via hiera later) that will be created under that base directory. base_dir = "/home/base" bars = ["a", "b", "c"] bars will be used to create the folders under base and also part of the infor

[Puppet Users] Re: Base directory with File

2012-06-25 Thread Mark Roggenkamp
nly thinking about the parameters specified in the define, which probably comes from me continuing to think of it like a function which is wrong. Regards Mark On Monday, June 25, 2012 1:27:40 PM UTC-4, Mark Roggenkamp wrote: > > Hi all, > > I'd like to specify a base_dire

Re: [Puppet Users] Base directory with File

2012-06-27 Thread Mark Roggenkamp
Even better. Thank you, sir. Mark On Tuesday, June 26, 2012 7:17:34 PM UTC-4, Stefan Schulte wrote: > > On Mon, Jun 25, 2012 at 10:27:40AM -0700, Mark Roggenkamp wrote: > > Hi all, > > > > I'd like to specify a base_directory and a list of directories (as > &g

[Puppet Users] Modeling higher level services

2012-07-13 Thread Mark Roggenkamp
Will Puppet ever enable the modeling of higher level resources (than node). I'd like to model a multi-node application/service or even many applications/services that sometimes connect. I guess I'm thinking something along the lines of cloudformation but in puppet such that the DAG would extend

[Puppet Users] Re: rspec-puppet and puppet doc conflicts

2012-07-19 Thread Mark Roggenkamp
Perhaps make your puppet doc rake task depend on the spec_clean task? It seems like you may not need the symlinks created by rspec-puppet-init as a dynamic fixture environment is created via .fixtures.yml. Mark On Wednesday, July 18, 2012 5:35:44 PM UTC-4, llo...@oreillyauto.com wrote: > > I re

[Puppet Users] rspec-puppet and create_resources

2012-07-20 Thread Mark Roggenkamp
Using rspec-puppet should I be able to check for resources created as a result of a create_resources call within a class? Regards, Mark -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.go

[Puppet Users] Re: Calling a definition multiple times but with different parameters

2012-07-20 Thread Mark Roggenkamp
First, I'll say this sort of thing comes up rather often. It seems that perhaps there's a void in dynamic generation of resources based on some data structure (where you wish you had full langage features to do so). However, you may be able to make use of the create_resources function if it mak

Re: [Puppet Users] rspec-puppet and create_resources

2012-07-20 Thread Mark Roggenkamp
Thx. That helped me stay on course while troubleshooting a test failure. I hadn't reached the 'trust what the test is telling you' stage yet. :) Mark On Friday, July 20, 2012 2:38:06 PM UTC-4, Jeff McCune wrote: > > On Fri, Jul 20, 2012 at 9:31 AM, Mark Roggenkamp < >

[Puppet Users] Re: Atomicity of updates on the Puppet master

2012-07-30 Thread Mark Roggenkamp
Even if it cached individual files wouldn't it still be possible for it to grab two related files, one just updated and one not yet updated to be used during a catalog compilation? I think I'm going to treat modules/manifests together as an artifact (tarball probably) and put a new (probably ve

Re: [Puppet Users] Pass array to a define

2012-08-11 Thread Mark Roggenkamp
FWIW, there is a join function in stdlib. https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/join.rb Mark On Saturday, August 11, 2012 8:21:05 AM UTC-4, Stefan Schulte wrote: > > On Fri, Aug 10, 2012 at 05:10:20PM -0700, Douglas Garstang wrote: > > How can I

[Puppet Users] Re: New Scope > 2.7

2012-08-11 Thread Mark Roggenkamp
You may want to consider making whatever needs $my_role into a define or class that can be used in another module. Then make a module to contain roles. These roles would be classes (since puppet has no role resources type like this) that include relevant defines/classes from other modules. I've

Re: [Puppet Users] packaging puppet modules

2012-08-16 Thread Mark Roggenkamp
Is this level of namespacing enough? What happens when a module (mymodule) depends on the "mysql" module but you chose a mysql module that isn't quite the same as the one mymodule expects? Thanks Mark On Monday, July 2, 2012 11:33:42 PM UTC-4, Ryan Coleman wrote: > > On Sun, Jul 1, 2012 at 12:

Re: [Puppet Users] packaging puppet modules

2012-08-16 Thread Mark Roggenkamp
dency? Now if they don't have similar interfaces (not to mention implementations) I'm stuck, right? Thanks Mark On Thursday, August 16, 2012 2:35:57 PM UTC-4, Ryan Coleman wrote: > > On Thu, Aug 16, 2012 at 11:05 AM, Mark Roggenkamp > > wrote: > > What happens when a

[Puppet Users] Re: Package install from a URL

2012-09-03 Thread Mark Roggenkamp
I believe it will work if you change the provider to rpm in this case (provider => rpm,). Mark On Monday, September 3, 2012 8:26:30 AM UTC-4, matonb wrote: > > puppet-server 2.7.19 on CentOS 6.3 x64 > > I have the follow very bsaic class, which I would expect to install the > package if it's