Re: [Puppet Users] defined types question

2015-01-12 Thread Drew
Damn! That was it. Removed my include and it works exactly like it should. On Sunday, January 11, 2015 at 6:46:20 PM UTC-5, Felix.Frank wrote: > > On 01/10/2015 02:39 PM, Christopher Wood wrote: > > On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: > >> >I'm fooling around with some de

Re: [Puppet Users] defined types question

2015-01-12 Thread Drew
Thanks, Felix. On Monday, January 12, 2015 at 7:57:05 AM UTC-5, Drew wrote: > > Damn! That was it. Removed my include and it works exactly like it > should. > > On Sunday, January 11, 2015 at 6:46:20 PM UTC-5, Felix.Frank wrote: >> >> On 01/10/2015 02:39 PM, Christopher Wood wrote: >> > On Fri

Re: [Puppet Users] defined types question

2015-01-11 Thread Felix Frank
On 01/10/2015 02:39 PM, Christopher Wood wrote: > On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: >> >I'm fooling around with some defined types and am struggling a little. >> > The following is just a small example of what I'm doing while I work it >> >out: >> >#/etc/puppet/m

Re: [Puppet Users] defined types question

2015-01-11 Thread Christopher Wood
I could swear that at some point I had a define in init.pp and it worked. For some reason I could not reproduce that when I tried your example. You might try two things: 1) on your puppet master, try applying site.pp puppet apply --debug --modulepath /etc/puppet/modules /etc/puppet/manifests/

Re: [Puppet Users] defined types question

2015-01-11 Thread Drew
Thanks for jumping in. I've seen example modules from the forge that have the define in the init.pp. I'm pretty sure the module can have a define in it or a class. But I am doing something wrong for sure. I've already tried putting it in a different file and that didn't make any difference.

Re: [Puppet Users] defined types question

2015-01-10 Thread Christopher Wood
On Fri, Jan 09, 2015 at 01:51:28PM -0800, Drew wrote: >I'm fooling around with some defined types and am struggling a little. > The following is just a small example of what I'm doing while I work it >out: >#/etc/puppet/modules/testmodule/manifests/init.pp >define testmodule ( $

[Puppet Users] defined types question

2015-01-09 Thread Drew
I'm fooling around with some defined types and am struggling a little. The following is just a small example of what I'm doing while I work it out: #/etc/puppet/modules/testmodule/manifests/init.pp define testmodule ( $message ){ testmodule::down { "${name}": message => "test message for

[Puppet Users] defined types question

2015-01-09 Thread Drew
I'm fooling around with some defined types and am struggling a little. The following is just a small example of what I'm doing while I work it out: #/etc/puppet/modules/testmodule/manifests/init.pp define testmodule ( $message ){ testmodule::down { "${name}": message => "test message for