Re: [Puppet Users] Puppet certification PPT-202

2014-04-01 Thread Nathan Valentine
http://puppetlabs.com/services/certification has a pretty solid list
of pre-cert study materials but, yes, the more hands-on experience you
have with Puppet/PE the better.

Of the self-study resources mentioned there, I highly recommend:

1) The Puppet Certification Practice Test
2) The Puppet Learning Management System videos
3) The Puppet Enterprise Learning VM

The training course are also awesome but then I'm biased as I'm a trainer. ;)

Also be aware that the content for the cert test was recently
refreshed. In my opinion, and I was among the people who worked on the
new version of the test, the new version is more challenging than the
old test. I would trust the Practice Test as a gauge over the word of
anyone who might have taken the previous version of the cert.

Good luck! If you pass don't post that fact to LinkedIn until you've
upped your mobile plan as the recruiters will set your phone on fire!
;)

-- 
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/CA%2BsYer3OtF1ORQNAAw3-3fy4bU6%3D-c5Cu0XR_n46k4MQo3EzWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] CloudFormation/puppet/hiera integration..

2014-04-01 Thread Nathan Valentine
> variables. In the case of AWS/EC2 facts this is done, if memory
> serves, via a Type and Provider that queries the 169.x node metadata
> service embedded in AWS/EC2.

Sorry, perils of multitasking... s/Type and Provider that/series of
custom facts which/g.

-- 
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/CA%2BsYer3R7gWH8hN6i4tdzi%3D9m99GHLW3%3Dt8dwcxLS1pGZwcizg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] CloudFormation/puppet/hiera integration..

2014-04-01 Thread Nathan Valentine
Hiera allows multiple backends, YAML being one and also being the one
with which most people start, some of which can be non-static. If you
Google for Craig Dunn's blog you'll see an example where he uses a
backend which enables Hiera data retrieval from a CouchDB backend.
That particular example is one of my favorites examples of the
flexibility of Hiera.

As to how to get CF data into Puppet, I've not used CF enough to
venture a solid guess but the first thing I would do is look to see if
someone has a Forge module which presents user data as facter
variables. In the case of AWS/EC2 facts this is done, if memory
serves, via a Type and Provider that queries the 169.x node metadata
service embedded in AWS/EC2.

Feel free to let me know how that goes via direct email. I rarely have
time to keep up with the mailing list.

Cheers.



On Tue, Apr 1, 2014 at 1:09 PM,   wrote:
>   Hello all, thanx in advance for listening to my sniffles as I am failing
> at solving this problem.
>
>   I have CloudFormation template that builds out some servers.  I have
> parameterized a few values like. DatabseName DataBaseUser DataBaseLocation
> and some others.  The problem I seem to be faced with is getting these
> values to puppet to perform the correct configuration steps.  I had a pretty
> good idea about how I could accomplish this, and then someone introduced
> .yaml files as part of hiera..  While I am not that impressed with hiera, it
> seems to introduce a-lot of static environment files to manage.  This is not
> a road our team wants to travel down.  If I am wrong about this I am
> certainly open to enlightenment, but from what I have read and witnessed,
> it's static.
>
>  So here I am, I have this CF template that asks for parameters that I need
> puppet to use for configuration.  Does anyone have any suggestions as I read
> on through all this documentation?
>
>
>  Thanks,
>
> J
>
> --
> 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/7d2b3b5a-87b5-4078-bff1-ab3e0ed49388%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
---
Nathan Valentine, Puppet Labs Professional Services

Join us at PuppetConf 2014, September 23-24 in San Francisco -
http://puppetconf.com

-- 
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/CA%2BsYer22UaQ%2B%2BxYcsm%3DrQkaZHRuSaK9jZrs1ytPadTqQKWXB1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Fundamentals training - how "fundamental" is it?

2014-01-17 Thread Nathan Valentine
Hey, David.

I'm a trainer for Puppet Labs and just finished teaching my bazillionth
Fundamentals class yesterday. ;)

The class is appropriate for those with at least a little bit of Ops or Dev
experience and it helps greatly if you are at least minimally comfortable
with VMWare/Virtualbox and things like SSH and Unix-y text editors (vi or
nano). That said of my my most impressive students was an MBA and had been
out of pure tech for 5 or 6 years. The classes assume no previous Puppet
experience but scripting experience certainly won't hurt you.

The class covers Puppet agent + master workflow, some basic version
control, Puppet modules, Defines, Parameterized Classes, Hiera and a few
other bits specific to Puppet Enterprise. I've had students who have been
doing Puppet for a couple of years come to the Fundamentals class and say
afterwards they were surprised how much they learned. One particular
student who expressed that view was maintaining a Puppet codebase of nearly
10k lines and thought he had seen it all before coming to class.

I will warn you that most people how decide to skip Fundamentals and go
straight to Advanced often regret it. It is quite a step up.

You might want to check the training schedule on our site. I think we list
"Puppet Introduction" classes there. They are a one-day very accelerated
and stripped down version of the Fundamentals class. They are almost always
taught at industry conferences as opposed to a public training center.
Sitting through one of those would give you a very good idea what to expect
in Fundamentals.

Feel free to email my offlist if you have other questions.






On Fri, Jan 17, 2014 at 9:35 AM, David Taylor wrote:

> Hi all,
>
> I've been playing around with Puppet with a view to implementing it at my
> workplace. I've already run through the "Learning Puppet" tutorial on
> docs.puppetlabs.com and the quizzes in the Puppet Learn Library, and now
> I'm looking into more formal training to try and get everything nailed down
> in my head and to get an idea of best practices for module design,
> environments etc. I was wondering if anyone could advise on whether the
> Puppet Fundamentals course is the right course to go for, or is it aimed at
> the complete Puppet novice - i.e. will I find that it just retreads things
> I already know?
>
> Thanks,
>
> --
> Dave Taylor
>
> --
> 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/2252a549-b862-4ffc-ae19-a1b3912b695c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer1%2B9Q0KcS9LK_ETYh9RRrD1hG%3Db4NLSPg25jHbZyEC1sQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Where do custom facter facts go on the Learning VM ? Is that the cause of these behaviors?

2014-01-08 Thread Nathan Valentine
The Facter.add scaffolding isn't required for external facts. That's
actually a key part of the design.

Here's an example vagrant environment with external facts similar to
your demo code:

https://github.com/nrvale0/vagrant-extfacts-demo

On Wed, Jan 8, 2014 at 5:03 PM, Shark Laser  wrote:
> The simpler ruby script you gave still exhibits the same behavior.  I'm sure
> the code in the facts I am using is correct, so I don't think it is a matter
> of their content.   As I mentioned I have literally copied examples from the
> tutorial and elsewhere.
>
> If I run facter --debug all of the facts give the same error message I give
> above that they were parsed but returned an empty dataset.
>
> If I run puppet agent --test then it is as if my fact did not exist.
>
> Any ideas?
>
>
> On Wednesday, January 8, 2014 4:40:10 PM UTC-8, Nathan Valentine wrote:
>>
>> You are making external facts too complicated. More like this:
>>
>>
>>  hello.rb
>>  ---
>>  #!/usr/bin/env ruby
>>  puts "hello=Hello, World!"
>>
>>
>> hello.yaml
>> ---
>> ---
>> hello='Hello, World!'
>>
>>
>> https://docs.puppetlabs.com/guides/custom_facts.html#external-facts
>>
>>
>> --
>> ---
>> Nathan Valentine, Puppet Labs Professional Services
>> Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?
>
> --
> 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/faf70d9b-d15f-4f23-a058-f2ef79189636%40googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer24MG%2BBZu03R8rRutStLXit1gP%3Dwt611CJSJ%2BgOGV%2BOXA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Where do custom facter facts go on the Learning VM ? Is that the cause of these behaviors?

2014-01-08 Thread Nathan Valentine
sorry, s/=/:/g in hello.yaml

On Wed, Jan 8, 2014 at 4:40 PM, Nathan Valentine  wrote:
> You are making external facts too complicated. More like this:
>
>
>  hello.rb
>  ---
>  #!/usr/bin/env ruby
>  puts "hello=Hello, World!"
>
>
> hello.yaml
> ---
> ---
> hello='Hello, World!'
>
>
> https://docs.puppetlabs.com/guides/custom_facts.html#external-facts
>
>
> --
> ---
> Nathan Valentine, Puppet Labs Professional Services
> Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?



-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer0yOMFcMWt0Fvr2swnphUp4VdvvXzYX3mGZ8CXQJKH6bw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Where do custom facter facts go on the Learning VM ? Is that the cause of these behaviors?

2014-01-08 Thread Nathan Valentine
You are making external facts too complicated. More like this:


 hello.rb
 ---
 #!/usr/bin/env ruby
 puts "hello=Hello, World!"


hello.yaml
---
---
hello='Hello, World!'


https://docs.puppetlabs.com/guides/custom_facts.html#external-facts


-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer3KWFMnc1W6BfLhoO23B-uapxCEKf5Gv98r5HbDq%2Bz%2BSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-08 Thread Nathan Valentine
Sorry, bitten by the Gmail interface on that last one...

I'm a proponent of something like this:

http://www.craigdunn.org/2012/11/puppet-data-from-couchdb-using-hiera-http/

with classification data that doesn't change much ( 'require
::site::profile::base' ) perhaps living in YAML and specific one-off tweaks
to a node's config like perhaps an override of the default NTP server
coming from CouchDB. Much easier for the less Puppet-y people on a team to
login and twiddle things via CouchDB web interface.



On Wed, Jan 8, 2014 at 3:52 PM, Nathan Valentine wrote:

> Keep in mind that Hiera can support multiple backends and not all of them
> mean manipulating JSON or YAML. For instance, I'm a proponent of something
> like this:
>
>
> On Sat, Jan 4, 2014 at 10:15 AM, Jose Luis Ledesma <
> joseluis.lede...@gmail.com> wrote:
>
>> I'm in the process of setting up puppet in my company and I don't like at
>> all the idea of having some thousand of files for describe the nodes. And,
>> despite the well known limitations, I like a lot the idea of having an enc
>> like ldap.
>>
>> Regards,
>>
>> --
>> 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/cbae58f9-3e14-472e-906d-ce7a3be355af%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> ---
> Nathan Valentine, Puppet Labs Professional Services
> Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?
>
>


-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer3urU3CM6RRWMQ6CCdhdbSFapX6H07ZsUtOO%2BHLdyTvFA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] The Future - ENCs vs Hiera?

2014-01-08 Thread Nathan Valentine
Keep in mind that Hiera can support multiple backends and not all of them
mean manipulating JSON or YAML. For instance, I'm a proponent of something
like this:


On Sat, Jan 4, 2014 at 10:15 AM, Jose Luis Ledesma <
joseluis.lede...@gmail.com> wrote:

> I'm in the process of setting up puppet in my company and I don't like at
> all the idea of having some thousand of files for describe the nodes. And,
> despite the well known limitations, I like a lot the idea of having an enc
> like ldap.
>
> Regards,
>
> --
> 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/cbae58f9-3e14-472e-906d-ce7a3be355af%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
---
Nathan Valentine, Puppet Labs Professional Services
Have you seen : http://ask.puppetlabs.com , http://puppetlabs.com/learn ?

-- 
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/CA%2BsYer2ur0DoMdOa9K5VMG4SYn_goz3LjLocvTK_GsjyukY5dA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Nathan Valentine
Hey, Stephen.

I point people here: https://puppetlabs.com/learn/library. Free
self-directed videos about core Puppet concepts with similar content to the
instructor-led courses. Great resource if a little hard to find on the
website.

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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/CA%2BsYer0_F%2B2ZHW1e7EjOs9j7DhN_xhkxHP%2Bb%3DKjk_7uG3J88hg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Best of Breed Modules?

2013-09-27 Thread Nathan Valentine
Here's what I advise in training classes:

1) Start with puppetlabs/ namespace modules.

2) If you don't find a puppetlabs/ module then you have to know a little
bit about the groups/individuals within the community who have a good rep
for putting out quality modules and identify their namespace. I'll not
favor anyone by mentioning any names here.

3) Lastly I look at the last release date and number of downloads. I want
something both widely used and showing some indication of active
development. If the repo has a "Project URL" that points to GH etc that can
be a nice thing to inspect as well.

The above determines which ones I'll download for further review.

Hope that helps. BTW, there's a lot work going into the Forge to improve
the above heuristic. Ryan's your guy. :)

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] augeas question

2013-09-23 Thread Nathan Valentine
Greg,

I believe resource ini_setting would be appropriate here but I do
understand the desire to learn about Puppet + Augeas.

>   augeas { 'vsftpd.conf':
> context => '/etc/vsftpd/vsftpd.conf',
> changes => [ 'set anonymous_enable=NO', 'set chroot_local_user=YES',
],
> require => File['/etc/vsftpd/vsftpd.conf'],
>   }


context => '*/files*/vsftpd/vsftpd.conf',

?

I'm lazy and haven't tested with a Puppet apply but I think this might just
be an issue of understanding the namespace-y Augeas stuff. You can test
like so with augtool:

$ augtool ls */files*/vsftpd/vsftpd.conf

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Where does the puppet master get its hostname

2013-09-10 Thread Nathan Valentine
Out of curiosity, your Puppet master was spun up how? As a Vagrant VM?


On Tue, Sep 10, 2013 at 3:23 PM, Greg Coit  wrote:

> Man, I could have swear i tested this...
>
> /etc/sysconfig/network was correct.
>
> /ets/hosts had:
>
> ip grover grover.example.com
>
> I switched that to:
>
> ip grover.example.com grover
>
> and the cert is now named grover.example.com.  :)
>
> Thank you!!!
>
> Greg
>
> On Tuesday, September 10, 2013 12:16:12 PM UTC-7, Nathan Valentine wrote:
>
>> Check both of the following: /etc/hosts and /etc/sysconfig/network.
>>
>> --
>> ---
>> Nathan Valentine - nat...@puppetlabs.com
>>
>> Puppet Labs Professional Services
>> GV: 415.504.2173
>> Skype: nrvale0
>>
>  --
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Where does the puppet master get its hostname

2013-09-10 Thread Nathan Valentine
Check both of the following: /etc/hosts and /etc/sysconfig/network.

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] freebsd clients failing to connect to new master with ssl errors

2013-05-07 Thread Nathan Valentine
This smells like a problem related to incorrect system clock when the cert
was generated for the new master.?.

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

Join us at PuppetConf 2013, August 22-23 in San Francisco -
http://bit.ly/pupconf13
Register now and take advantage of the Early Bird discount - save 25%!

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Dependency Cycle Question

2013-04-02 Thread Nathan Valentine
Is it possible that the registry_key type, like dirs and subdirs, has an
implied dependency? Sorry, not in a position to test at the moment and I've
actually not used that type in a while.


On Tue, Apr 2, 2013 at 12:09 PM,  wrote:

> Hi All,
>
> I am new to Puppet and have a question on dependency cycle.
>
> I am currently applying my resource directly using the command prompt on
> Windows 'puppet apply --noop init.pp'.
>
> When I try to test it, I encounter a dependency cycle error.
> Error: Could not apply complete catalog: Found 1 dependency cycle:
> (Registry_key[delete_hklm_test_foo1_key_step_1_2] =>
> Registry_key[delete_hklm_test_key_step_1_3] =>
> Registry_key[delete_hklm_test_foo2_key_step_1_1] =>
> Registry_key[delete_hklm_test_foo1_key_step_1_2])
> Try the '--graph' option and opening the resulting '.dot' file in
> OmniGraffle or GraphViz
>
> My init.pp is like this.
>
> include deletion_key_only
> class deletion_key_only {
> registry_key { 'delete_hklm_test_foo2_key_step_1_1':
> ensure => absent,
> purge_values => false,
> path => 'hklm\software\Test\foo2',
> }
> registry_key { 'delete_hklm_test_foo1_key_step_1_2':
> ensure => absent,
> purge_values => false,
> path => 'hklm\software\Test\foo1',
> require => Registry_Key['delete_hklm_test_foo2_key_step_1_1'],
> }
> registry_key { 'delete_hklm_test_key_step_1_3':
> ensure => absent,
> purge_values => false,
> path => 'hklm\software\Test',
> require => Registry_Key['delete_hklm_test_foo1_key_step_1_2'],
> }
> }
>
> I am not sure why I hit a dependency cycle error because I thought I have
> the dependency lay out correctly on my manifest where
> 'delete_hklm_test_foo2_key_step_1_1' will go first, then
> 'delete_hklm_test_foo1_key_step_1_2' and family
> 'delete_hklm_test_key_step_1_3'.
>
> Can anyone please explain why I am encountering a dependency cycle error?
>
> Thanks!
>
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Grouping hosts for stage deployment

2013-04-02 Thread Nathan Valentine
Hi,

You probably want to look at implementing a simple deployment pipeline
using Puppet environments and Git branches. Here's a URL for getting
started:

https://puppetlabs.com/blog/git-workflow-and-puppet-environments/



On Tue, Apr 2, 2013 at 9:27 AM, ForumUser  wrote:

> Hi all,
>
> I am new in puppet world so please excuse my lack of knowledge ...
>
> I am going to use puppet to manage our hosts but because my lack of
> knowledge whether I deploy configuration changes the right way
> I would like to deploy them first on some hosts, then wait a few days,
> then on another group of hosts, wait a few days etc.
> So it would be good to group all nodes into groups - something like
> (pseudo-code):
>
> group pre-testing {
> host02.domain
> host-other.domain
> <... 10 other hosts ...>
> }
>
> group testing {
> host115.domain
> host-other-10.domain
> <... 50 other hosts ...>
> }
>
> group pre-production {
> host-spare.domain
> <... 35 other hosts ...>
> }
>
> group production {
> host-main.domain
> <... 135 other hosts ...>
> }
>
> and then apply the change on just "pre-testing", wait a few days, apply on
> just "testing", wait a few days and then apply on "pre-production" etc.
> (sort of deployment in stages).
> I am not able to group nodes based on application running on it nor
> hardware architecture - the environment is mixed
> so I need to put this particular node to this particular group etc
>
> How would you organise that approach in puppet ?
>
> Thanks in advanced
>
>  --
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Site module with Puppet Enterprise

2013-03-06 Thread Nathan Valentine
Paleoposting FTW!

I've been doing enough work with site modules as of late that I decided to 
make a git repo with a basic site module set up for following Craig Dunn's 
"Roles and Profiles" pattern. Or at least something very similar (no 
inheritance):

https://github.com/nvalentine-puppetlabs/site.git

Nothing groundbreaking but an easy 'git clone' as opposed to putting 
together the scaffolding every time. 

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Pattern for managing software versions?

2013-03-02 Thread Nathan Valentine
+1 for Brendan's technique. This is the precisely the same technique that I
use/recommend when working with customers.

FWIW, keep an eye on the Puppet Labs site. We have someone working on a
raft of Puppet "best practices" documents and I expect that they should
start landing soon. I'm certain that effective use of Hiera will be a topic
of focus.

-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Checking GIT updates

2013-02-14 Thread Nathan Valentine
Hey, John.

llowder's recommendation is solid. There's a write-up on how to accomplish
the push/post-commit strategy here:

https://puppetlabs.com/blog/git-workflow-and-puppet-environments/


-- 
---
Nathan Valentine - nat...@puppetlabs.com
Puppet Labs Professional Services
GV: 415.504.2173
Skype: nrvale0

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.