Re: [Puppet Users] Getting started - yikes

2022-07-29 Thread ch...@freeranger.com
Thank you, Martin,

I installed the specific package requirements
I checked NTP services; all good
I re-ran the install - still the same issues
I uninstalled with: /opt/puppetlabs/bin/puppet-enterprise-uninstaller
Reinstalled with: ./puppet-enterprise-installer

## Puppet Enterprise configuration complete!  - hooray!

Our hardened AMI had a pre-existing puppet agent so I think that might have 
been the source of some mismatch indicating an expired CA/time-sync issue.  
The uninstall might have removed the agent so the reinstall started more or 
less from a cleaner slate.

Now to get it set up and configured...

Again,  Thank you.
Chris.
On Friday, July 29, 2022 at 12:22:47 AM UTC-7 Martin Alfke wrote:

> Hi Chris,
>
> Please check the time synchronisation prior running the installer.
> Also check the system requirements page: 
> https://puppet.com/docs/pe/2019.8/system_requirements.html
> Especially 
> https://puppet.com/docs/pe/2019.8/supported_operating_systems.html#supported_operating_systems
>  which 
> will list also required packages.
>
> Hth,
> Martin
>
>
> On 29. Jul 2022, at 06:00, ch...@freeranger.com  
> wrote:
>
> I've been tasked to install puppet enterprise 2019.8.11 on centos 7.  We 
> have some licenses that I figure I can apply once puppet is installed.
>
> I figured I could just fire up a centos 7 instance on AWS (derived from a 
> self hardened AMI) and install a puppet enterprise master.  What could go 
> wrong...  ;)
>
> I proceeded to get things lined up and ran a wget of a centos 7 tar of 
> Enterprise - 2019.8.11 LTS.  Upzipped it, and in the folder which was 
> created ran:
>
> ./puppet-enterprise-installer
>
> Things seemed to go fine for a bit, then...
> in red:::
> Error: Failed to initialize SSL: The CRL issued by 'CN=Puppet Enterprise 
> CA' has expired, verify time is synchronized
> Error: Run `puppet agent -t`
> Error: 
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/ssl/ssl_provider.rb:278:in 
> `raise_cert_verify_error'
>
> The above errors seemed to crop up, in red, periodically during the install
>
> More red:
> [Error]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate ca 
> cert]/returns: change from 'notrun' to ['0'] failed: 
> '/opt/puppetlabs/bin/puppetserver ca setup --certname tm.sys-f.ecm 
> --ca-name 'Puppet Enterprise CA generated at +2022-07-28 23:56:46 +' 
> --subject-alt-names 'puppet'' returned 1 instead of one of [0]
>
> Then lots of yellow warnings:
> [Warning]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate 
> node cert]: Skipping because of failed dependencies
> [Warning]: /Stage[main]/Pe_install::Install::Ssldir/Exec[Set user/group of 
> /etc/puppetlabs/puppet/ssl contents to pe-puppet:pe-puppet]: Skipping 
> because of failed dependencies
> [Warning]:/Stage[main]/Puppet_enterprise::Profile::Database/File[/opt/puppetlabs/server/data/postgresql/11/data/certs/_local.cert.pem]:
>  
> Skipping because of failed dependencies
> [Warning]:/Stage[main]/Puppet_enterprise::Profile::Orchestrator/Pe_hocon_setting[orchestration-services.authorization.version]:
>  
> Skipping because of failed dependencies
>
> The tons of warnings with references to "Skipping because of failed 
> dependencies"
>
> I've obviously got some gaping hole in the dependencies.
>
> Can anyone point me to what I missed in the instructions to provide the 
> config that provisions the dependencies.
>
> Also, I've looked for prerequisites of applications that should be loaded 
> prior to install, like wget, or postgresql but haven't seen much of that 
> except in random sites.
>
> Thanks in advance for any tips,
> Chris.
>
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/e567b5e8-1395-4929-becb-4e38a24bf372n%40googlegroups.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/09b4f8c8-20c7-481c-a27e-375911b1d609n%40googlegroups.com.


Re: [Puppet Users] Getting started - yikes

2022-07-29 Thread Martin Alfke
Hi Chris,

Please check the time synchronisation prior running the installer.
Also check the system requirements page: 
https://puppet.com/docs/pe/2019.8/system_requirements.html 

Especially 
https://puppet.com/docs/pe/2019.8/supported_operating_systems.html#supported_operating_systems
 

 which will list also required packages.

Hth,
Martin


> On 29. Jul 2022, at 06:00, ch...@freeranger.com  wrote:
> 
> I've been tasked to install puppet enterprise 2019.8.11 on centos 7.  We have 
> some licenses that I figure I can apply once puppet is installed.
> 
> I figured I could just fire up a centos 7 instance on AWS (derived from a 
> self hardened AMI) and install a puppet enterprise master.  What could go 
> wrong...  ;)
> 
> I proceeded to get things lined up and ran a wget of a centos 7 tar of 
> Enterprise - 2019.8.11 LTS.  Upzipped it, and in the folder which was created 
> ran:
> 
> ./puppet-enterprise-installer
> 
> Things seemed to go fine for a bit, then...
> in red:::
> Error: Failed to initialize SSL: The CRL issued by 'CN=Puppet Enterprise CA' 
> has expired, verify time is synchronized
> Error: Run `puppet agent -t`
> Error: 
> /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/ssl/ssl_provider.rb:278:in 
> `raise_cert_verify_error'
> 
> The above errors seemed to crop up, in red, periodically during the install
> 
> More red:
> [Error]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate ca 
> cert]/returns: change from 'notrun' to ['0'] failed: 
> '/opt/puppetlabs/bin/puppetserver ca setup --certname tm.sys-f.ecm --ca-name 
> 'Puppet Enterprise CA generated at +2022-07-28 23:56:46 +' 
> --subject-alt-names 'puppet'' returned 1 instead of one of [0]
> 
> Then lots of yellow warnings:
> [Warning]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate node 
> cert]: Skipping because of failed dependencies
> [Warning]: /Stage[main]/Pe_install::Install::Ssldir/Exec[Set user/group of 
> /etc/puppetlabs/puppet/ssl contents to pe-puppet:pe-puppet]: Skipping because 
> of failed dependencies
> [Warning]:/Stage[main]/Puppet_enterprise::Profile::Database/File[/opt/puppetlabs/server/data/postgresql/11/data/certs/_local.cert.pem]:
>  Skipping because of failed dependencies
> [Warning]:/Stage[main]/Puppet_enterprise::Profile::Orchestrator/Pe_hocon_setting[orchestration-services.authorization.version]:
>  Skipping because of failed dependencies
> 
> The tons of warnings with references to "Skipping because of failed 
> dependencies"
> 
> I've obviously got some gaping hole in the dependencies.
> 
> Can anyone point me to what I missed in the instructions to provide the 
> config that provisions the dependencies.
> 
> Also, I've looked for prerequisites of applications that should be loaded 
> prior to install, like wget, or postgresql but haven't seen much of that 
> except in random sites.
> 
> Thanks in advance for any tips,
> Chris.
> 
> 
> -- 
> 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/e567b5e8-1395-4929-becb-4e38a24bf372n%40googlegroups.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/B4C3EF7C-F588-47E3-ADEB-860E8AAE06DF%40gmail.com.


[Puppet Users] Getting started - yikes

2022-07-28 Thread ch...@freeranger.com
I've been tasked to install puppet enterprise 2019.8.11 on centos 7.  We 
have some licenses that I figure I can apply once puppet is installed.

I figured I could just fire up a centos 7 instance on AWS (derived from a 
self hardened AMI) and install a puppet enterprise master.  What could go 
wrong...  ;)

I proceeded to get things lined up and ran a wget of a centos 7 tar of 
Enterprise - 2019.8.11 LTS.  Upzipped it, and in the folder which was 
created ran:

./puppet-enterprise-installer

Things seemed to go fine for a bit, then...
in red:::
Error: Failed to initialize SSL: The CRL issued by 'CN=Puppet Enterprise 
CA' has expired, verify time is synchronized
Error: Run `puppet agent -t`
Error: 
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/ssl/ssl_provider.rb:278:in 
`raise_cert_verify_error'

The above errors seemed to crop up, in red, periodically during the install

More red:
[Error]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate ca 
cert]/returns: change from 'notrun' to ['0'] failed: 
'/opt/puppetlabs/bin/puppetserver ca setup --certname tm.sys-f.ecm 
--ca-name 'Puppet Enterprise CA generated at +2022-07-28 23:56:46 +' 
--subject-alt-names 'puppet'' returned 1 instead of one of [0]

Then lots of yellow warnings:
[Warning]: /Stage[main]/Pe_install::Prepare::Certificates/Exec[generate 
node cert]: Skipping because of failed dependencies
[Warning]: /Stage[main]/Pe_install::Install::Ssldir/Exec[Set user/group of 
/etc/puppetlabs/puppet/ssl contents to pe-puppet:pe-puppet]: Skipping 
because of failed dependencies
[Warning]:/Stage[main]/Puppet_enterprise::Profile::Database/File[/opt/puppetlabs/server/data/postgresql/11/data/certs/_local.cert.pem]:
 
Skipping because of failed dependencies
[Warning]:/Stage[main]/Puppet_enterprise::Profile::Orchestrator/Pe_hocon_setting[orchestration-services.authorization.version]:
 
Skipping because of failed dependencies

The tons of warnings with references to "Skipping because of failed 
dependencies"

I've obviously got some gaping hole in the dependencies.

Can anyone point me to what I missed in the instructions to provide the 
config that provisions the dependencies.

Also, I've looked for prerequisites of applications that should be loaded 
prior to install, like wget, or postgresql but haven't seen much of that 
except in random sites.

Thanks in advance for any tips,
Chris.

-- 
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/e567b5e8-1395-4929-becb-4e38a24bf372n%40googlegroups.com.


Re: [Puppet Users] Getting Started with Hiera

2012-11-16 Thread Rajul Vora
http://docs.puppetlabs.com/hiera/1/index.html is the only document I could 
find and some of the pages are empty or light on content. I also did git 
clone of the hiera project from github to read some of the docs / code / 
examples there.

Also, the Puppet function reference has no documentation (says 
"Undocumented") on the hiera, hiera_array, hiera_hash function. The ruby 
code for these functions has absolutely no comments either.

Good luck.

It would be interesting to hear what you had in mind in terms of using 
hiera to help verify post-install functionality.

Rajul

On Friday, November 16, 2012 2:22:22 AM UTC-8, Martin Alfke wrote:
>
> Hi,
> On 15.11.2012, at 19:20, Worker Bee wrote:
>
> Hi Everyone;
>
> Can anyone direct me towards documentation on getting started with Hiera?  
> SPecifically, I ma looking for an easy way to verify post-install 
> functionality.
>
> I did visit the following page which is is blank...
> http://docs.puppetlabs.com/hiera/1/puppet.html
>
> Any help would be greatly appreciated!
>
>
> Here: http://docs.puppetlabs.com/#hierahiera1
> you will find a list of links covering hiera installation, configuration 
> and examples.
>
> hth,
>
> Martin
>
>

-- 
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.google.com/d/msg/puppet-users/-/vVRP4cF_zf0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting Started with Hiera

2012-11-16 Thread Martin Alfke
Hi,
On 15.11.2012, at 19:20, Worker Bee wrote:

> Hi Everyone;
> 
> Can anyone direct me towards documentation on getting started with Hiera?  
> SPecifically, I ma looking for an easy way to verify post-install 
> functionality.
> 
> I did visit the following page which is is blank...
> http://docs.puppetlabs.com/hiera/1/puppet.html
> 
> Any help would be greatly appreciated!

Here: http://docs.puppetlabs.com/#hierahiera1
you will find a list of links covering hiera installation, configuration and 
examples.

hth,

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Getting Started with Hiera

2012-11-15 Thread Worker Bee
Hi Everyone;

Can anyone direct me towards documentation on getting started with Hiera?
SPecifically, I ma looking for an easy way to verify post-install
functionality.

I did visit the following page which is is blank...
http://docs.puppetlabs.com/hiera/1/puppet.html

Any help would be greatly appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-09 Thread Josh Cooper
Hi Andreas,

On Sun, Apr 8, 2012 at 11:30 AM, Andreas Haerter <
list+puppet-us...@mail-node.com> wrote:

> On 08.04.2012 00:46, Michael Stahnke wrote:
> >>> Puppet seems way too clumber some with the amount of dependencies
> >>> required so far.
> >>
> >> Seriously: use the packages of your distribution or the YUM/APT repos by
> >> Puppetlabs if you want to start with all the 2.7 features right now (I
> >> would recommend that - why learning and maintain old stuff if you just
> >> start to use Puppet?). Or are you running Puppet on windows (=no
> >> repositories available)?
>
> > But an MSI is available for windows:
> http://downloads.puppetlabs.com/windows
>
> Cool, even better. Since when does a Puppet MSI exist?
>

The Puppet 2.7.12 MSI was released at the same time as the PE 2.5 release,
and we'll continue to make them available for future FOSS and PE releases.

Josh
-- 
Josh Cooper
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-09 Thread Luke Tislow
I think that if you enable the EPEL repo it will be in there. So add the
EPEL with -

rpm -Uvh
http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

And then you can yum search and install for puppet/facter

On Mon, Apr 9, 2012 at 10:46 AM, Brown, Rodrick  wrote:

>  I’m running 64Bit CentOS 6.2  I’m using the Puppet software from scratch
> I couldn’t find any RPM’s is there a yum repo for puppet RPM binaries and
> dependencies? I didn’t see one so I built from source. 
>
> ** **
>
> I need to support roughly ~3000 Linux host, I have a 3 VM’s in my lab
> right now I’m using to familiarize myself with the software so  ill rather
> start learning to configure Puppet for a large production deployment
> instead of just running it in adhoc or simple configuration modes. 
>
> ** **
>
> Thanks. 
>
> ** **
>
> ** **
>
> *From:* puppet-users@googlegroups.com [mailto:
> puppet-users@googlegroups.com] *On Behalf Of *Russell Van Tassell
> *Sent:* Thursday, April 05, 2012 5:26 PM
> *To:* puppet-users@googlegroups.com
> *Subject:* Re: [Puppet Users] Getting started
>
> ** **
>
> It might also be helpful to include your O/S, here ... as there are many
> linuxes where installing puppet can largely be reduced to installing the
> right RPMs out of one repository or another (so you worry less about
> compiling and manufacturing basic configs than just learning how to make
> puppet go).
>
> ** **
>
> ** **
>
> On Thu, Apr 5, 2012 at 1:42 PM, Brown, Rodrick  wrote:*
> ***
>
> I really hate poor documentation. 
>
>  
>
> I’m following along in PDF documentation I downloaded from the official
> site and I’m stuck after I installed rack & passenger modules from
> rubygems. 
>
> I ran the passenger build script and it compiled and installed into my
> local apache httpd server successfully. 
>
>  
>
> Now where do I find an working example of puppetmaster.conf ? 
>
> Which config.ru should I be coping into
> /usr/share/puppet/rack/puppetmasterd ? 
>
>  
>
> Is there a guide on generate the pem files required for use when defining
> the virtual host settings in puppetmaster? 
>
>  
>
> I’m almost fed-up already and I’ve not even gotten 1 agent configured to
> talk to my sever  
>
>  
>
> Puppet seems way too clumber some with the amount of dependencies required
> so far.  
>
>  
>
> I almost feel like going back to hacking on my system based on Python &
> Fabric L
>
>  
>
> --RB 
>
>
> Please visit our website for important disclaimers/disclosures regarding
> Knight’s products and services:
>
> http://knight.com/KnightEmailDisclaimer.html
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
> Please visit our website for important disclaimers/disclosures regarding
> Knight’s products and services:
>
> http://knight.com/KnightEmailDisclaimer.html
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



RE: [Puppet Users] Getting started

2012-04-09 Thread Dan White
http://yum.puppetlabs.com/

“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

- Rodrick Brown  wrote:
> I'm running 64Bit CentOS 6.2  I'm using the Puppet software from scratch I 
> couldn't find any RPM's is there a yum repo for puppet RPM binaries and 
> dependencies? I didn't see one so I built from source.
> 
> I need to support roughly ~3000 Linux host, I have a 3 VM's in my lab right 
> now I'm using to familiarize myself with the software so  ill rather start 
> learning to configure Puppet for a large production deployment instead of 
> just running it in adhoc or simple configuration modes.
> 
> Thanks.
> 
> 
> From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
> Behalf Of Russell Van Tassell
> Sent: Thursday, April 05, 2012 5:26 PM
> To: puppet-users@googlegroups.com
> Subject: Re: [Puppet Users] Getting started
> 
> It might also be helpful to include your O/S, here ... as there are many 
> linuxes where installing puppet can largely be reduced to installing the 
> right RPMs out of one repository or another (so you worry less about 
> compiling and manufacturing basic configs than just learning how to make 
> puppet go).
> 
> 
> On Thu, Apr 5, 2012 at 1:42 PM, Brown, Rodrick 
> mailto:rbr...@knight.com>> wrote:
> I really hate poor documentation.
> 
> I'm following along in PDF documentation I downloaded from the official site 
> and I'm stuck after I installed rack & passenger modules from rubygems.
> I ran the passenger build script and it compiled and installed into my local 
> apache httpd server successfully.
> 
> Now where do I find an working example of puppetmaster.conf ?
> Which config.ru<http://config.ru> should I be coping into 
> /usr/share/puppet/rack/puppetmasterd ?
> 
> Is there a guide on generate the pem files required for use when defining the 
> virtual host settings in puppetmaster?
> 
> I'm almost fed-up already and I've not even gotten 1 agent configured to talk 
> to my sever
> 
> Puppet seems way too clumber some with the amount of dependencies required so 
> far.
> 
> I almost feel like going back to hacking on my system based on Python & 
> Fabric :(
> 
> --RB
> 
> Please visit our website for important disclaimers/disclosures regarding 
> Knight's products and services:
> 
> http://knight.com/KnightEmailDisclaimer.html
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to 
> puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to 
> puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 
> Please visit our website for important disclaimers/disclosures regarding 
> Knight's products and services:
> 
> http://knight.com/KnightEmailDisclaimer.html
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



RE: [Puppet Users] Getting started

2012-04-09 Thread Brown, Rodrick
I'm running 64Bit CentOS 6.2  I'm using the Puppet software from scratch I 
couldn't find any RPM's is there a yum repo for puppet RPM binaries and 
dependencies? I didn't see one so I built from source.

I need to support roughly ~3000 Linux host, I have a 3 VM's in my lab right now 
I'm using to familiarize myself with the software so  ill rather start learning 
to configure Puppet for a large production deployment instead of just running 
it in adhoc or simple configuration modes.

Thanks.


From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of Russell Van Tassell
Sent: Thursday, April 05, 2012 5:26 PM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Getting started

It might also be helpful to include your O/S, here ... as there are many 
linuxes where installing puppet can largely be reduced to installing the right 
RPMs out of one repository or another (so you worry less about compiling and 
manufacturing basic configs than just learning how to make puppet go).


On Thu, Apr 5, 2012 at 1:42 PM, Brown, Rodrick 
mailto:rbr...@knight.com>> wrote:
I really hate poor documentation.

I'm following along in PDF documentation I downloaded from the official site 
and I'm stuck after I installed rack & passenger modules from rubygems.
I ran the passenger build script and it compiled and installed into my local 
apache httpd server successfully.

Now where do I find an working example of puppetmaster.conf ?
Which config.ru<http://config.ru> should I be coping into 
/usr/share/puppet/rack/puppetmasterd ?

Is there a guide on generate the pem files required for use when defining the 
virtual host settings in puppetmaster?

I'm almost fed-up already and I've not even gotten 1 agent configured to talk 
to my sever

Puppet seems way too clumber some with the amount of dependencies required so 
far.

I almost feel like going back to hacking on my system based on Python & Fabric 
:(

--RB

Please visit our website for important disclaimers/disclosures regarding 
Knight's products and services:

http://knight.com/KnightEmailDisclaimer.html
--
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to 
puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users%2bunsubscr...@googlegroups.com>.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to 
puppet-users@googlegroups.com<mailto:puppet-users@googlegroups.com>.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Please visit our website for important disclaimers/disclosures regarding 
Knight's products and services:

http://knight.com/KnightEmailDisclaimer.html

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-08 Thread Andreas Haerter
On 08.04.2012 00:46, Michael Stahnke wrote:
>>> Puppet seems way too clumber some with the amount of dependencies
>>> required so far.
>>
>> Seriously: use the packages of your distribution or the YUM/APT repos by
>> Puppetlabs if you want to start with all the 2.7 features right now (I
>> would recommend that - why learning and maintain old stuff if you just
>> start to use Puppet?). Or are you running Puppet on windows (=no
>> repositories available)?

> But an MSI is available for windows: http://downloads.puppetlabs.com/windows

Cool, even better. Since when does a Puppet MSI exist?
However: One more reason why I can't understand the "Puppet seems way
too clumber some with the amount of dependencies required so
far"-statement. :-)

-- 
Andreas 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



signature.asc
Description: OpenPGP digital signature


Re: [Puppet Users] Getting started

2012-04-07 Thread Michael Stahnke
On Fri, Apr 6, 2012 at 7:40 AM, Andreas Haerter
 wrote:
> Hi,
>
> On 05.04.2012 22:42, Brown, Rodrick wrote:
>> I really hate poor documentation.
>>
>> I’m following along in PDF documentation I downloaded from the official
>> site and I’m stuck after I installed rack & passenger modules from
>> rubygems.
>
> There is a PDF?! OK...
>
> However, Maybe helpful:
> 
> -> "How to start" listing
>
>
>> I ran the passenger build script and it compiled and installed into my
>> local apache httpd server successfully.
>
> I personally started by using Puppet without master but "puppet apply"
> instead. I created modules and then ran something like
>
>> su -
>> puppet apply --verbose --modulepath /your/modules-directory/ -e "class { 
>> 'example': } foobar { [...] }"
>
> to learn the stuff before creating master infrastructure and stuff.
> BTW: There are masterless users out there (cf. "Masterless" listing at
> my blog posting linked above).
>
>
>> Puppet seems way too clumber some with the amount of dependencies
>> required so far.
>
> Seriously: use the packages of your distribution or the YUM/APT repos by
> Puppetlabs if you want to start with all the 2.7 features right now (I
> would recommend that - why learning and maintain old stuff if you just
> start to use Puppet?). Or are you running Puppet on windows (=no
> repositories available)?
But an MSI is available for windows: http://downloads.puppetlabs.com/windows


>
> --
> Andreas 
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-06 Thread Andreas Haerter
Hi,

On 05.04.2012 22:42, Brown, Rodrick wrote:
> I really hate poor documentation.
> 
> I’m following along in PDF documentation I downloaded from the official
> site and I’m stuck after I installed rack & passenger modules from
> rubygems.

There is a PDF?! OK...

However, Maybe helpful:

-> "How to start" listing


> I ran the passenger build script and it compiled and installed into my
> local apache httpd server successfully.

I personally started by using Puppet without master but "puppet apply"
instead. I created modules and then ran something like

> su -
> puppet apply --verbose --modulepath /your/modules-directory/ -e "class { 
> 'example': } foobar { [...] }"

to learn the stuff before creating master infrastructure and stuff.
BTW: There are masterless users out there (cf. "Masterless" listing at
my blog posting linked above).


> Puppet seems way too clumber some with the amount of dependencies
> required so far.

Seriously: use the packages of your distribution or the YUM/APT repos by
Puppetlabs if you want to start with all the 2.7 features right now (I
would recommend that - why learning and maintain old stuff if you just
start to use Puppet?). Or are you running Puppet on windows (=no
repositories available)?

-- 
Andreas 

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



signature.asc
Description: OpenPGP digital signature


Re: [Puppet Users] Getting started

2012-04-05 Thread Tom Barber
I have to say I find the online documentation very helpful indeed... along
with github once you get working with the module.



On Thu, Apr 5, 2012 at 10:26 PM, Eric Shamow  wrote:

> Jo,
>
> Very good advice - Rodrick, I'd try the Learning Puppet VM to start and
> get used to the tool first.  There's an excellent Learning Puppet doc as
> well -
>
> http://docs.puppetlabs.com/learning/
>
> That should get you started.
>
> -Eric
>
> --
>
> Eric Shamow
> Professional Services
> http://puppetlabs.com/
> (c)631.871.6441
>
> On Thursday, April 5, 2012 at 5:14 PM, Jo Rhett wrote:
>
> You've probably gone about this the hard way.  It would be best to just
> get the server running without passenger and learn Puppet itself.  You only
> need passenger when you exceed 50-100 systems.
>
> Anyway, to answer your questions the config.ru is available in
> share/puppet (exactly where depending on your OS), and puppetmaster.conf
> should have been installed when the gem/rpm was installed. But you should
> probably be using the docs on www.puppetlabs.com rather than the PDF, I
> suspect they are kept more up to date.
>
> On Apr 5, 2012, at 1:42 PM, Brown, Rodrick wrote:
>
> I really hate poor documentation.
> ** **
> I’m following along in PDF documentation I downloaded from the official
> site and I’m stuck after I installed rack & passenger modules from rubygems.
> 
> I ran the passenger build script and it compiled and installed into my
> local apache httpd server successfully.
> ** **
> Now where do I find an working example of puppetmaster.conf ?
> Which config.ru should I be coping into
> /usr/share/puppet/rack/puppetmasterd ?
> ** **
> Is there a guide on generate the pem files required for use when defining
> the virtual host settings in puppetmaster?
> ** **
> I’m almost fed-up already and I’ve not even gotten 1 agent configured to
> talk to my sever  
> ** **
> Puppet seems way too clumber some with the amount of dependencies required
> so far.  
> ** **
> I almost feel like going back to hacking on my system based on Python &
> Fabric L
> ** **
> --RB
>
> Please visit our website for important disclaimers/disclosures regarding
> Knight’s products and services:
>
> http://knight.com/KnightEmailDisclaimer.html
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>
>  --
> Jo Rhett
> Net Consonance : consonant endings by net philanthropy, open source and
> other randomness
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-05 Thread Eric Shamow
Jo,

Very good advice - Rodrick, I'd try the Learning Puppet VM to start and get 
used to the tool first.  There's an excellent Learning Puppet doc as well -

http://docs.puppetlabs.com/learning/

That should get you started.

-Eric  

--  

Eric Shamow
Professional Services
http://puppetlabs.com/
(c)631.871.6441


On Thursday, April 5, 2012 at 5:14 PM, Jo Rhett wrote:

> You've probably gone about this the hard way.  It would be best to just get 
> the server running without passenger and learn Puppet itself.  You only need 
> passenger when you exceed 50-100 systems.  
>  
> Anyway, to answer your questions the config.ru (http://config.ru) is 
> available in share/puppet (exactly where depending on your OS), and 
> puppetmaster.conf should have been installed when the gem/rpm was installed. 
> But you should probably be using the docs on www.puppetlabs.com 
> (http://www.puppetlabs.com) rather than the PDF, I suspect they are kept more 
> up to date.
>  
> On Apr 5, 2012, at 1:42 PM, Brown, Rodrick wrote:
> > I really hate poor documentation.
> >   
> > I’m following along in PDF documentation I downloaded from the official 
> > site and I’m stuck after I installed rack & passenger modules from rubygems.
> > I ran the passenger build script and it compiled and installed into my 
> > local apache httpd server successfully.
> >   
> > Now where do I find an working example of puppetmaster.conf ?
> > Which config.ru (http://config.ru) should I be coping into 
> > /usr/share/puppet/rack/puppetmasterd ?
> >   
> > Is there a guide on generate the pem files required for use when defining 
> > the virtual host settings in puppetmaster?
> >   
> > I’m almost fed-up already and I’ve not even gotten 1 agent configured to 
> > talk to my sever   
> >   
> > Puppet seems way too clumber some with the amount of dependencies required 
> > so far.   
> >   
> > I almost feel like going back to hacking on my system based on Python & 
> > Fabric L
> >   
> > --RB
> >  
> >  
> > Please visit our website for important disclaimers/disclosures regarding 
> > Knight’s products and services:
> >  
> > http://knight.com/KnightEmailDisclaimer.html
> >  
> >  
> > --  
> > You received this message because you are subscribed to the Google Groups 
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@googlegroups.com 
> > (mailto:puppet-users@googlegroups.com).
> > To unsubscribe from this group, send email to 
> > puppet-users+unsubscr...@googlegroups.com 
> > (mailto:puppet-users+unsubscr...@googlegroups.com).
> > For more options, visit this group at 
> > http://groups.google.com/group/puppet-users?hl=en.
>  
> --  
> Jo Rhett
> Net Consonance : consonant endings by net philanthropy, open source and other 
> randomness
>  
>  
>  
>  
> --  
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com 
> (mailto:puppet-users@googlegroups.com).
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com 
> (mailto:puppet-users+unsubscr...@googlegroups.com).
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-05 Thread Russell Van Tassell
It might also be helpful to include your O/S, here ... as there are many
linuxes where installing puppet can largely be reduced to installing the
right RPMs out of one repository or another (so you worry less about
compiling and manufacturing basic configs than just learning how to make
puppet go).



On Thu, Apr 5, 2012 at 1:42 PM, Brown, Rodrick  wrote:

>  I really hate poor documentation. 
>
> ** **
>
> I’m following along in PDF documentation I downloaded from the official
> site and I’m stuck after I installed rack & passenger modules from
> rubygems. 
>
> I ran the passenger build script and it compiled and installed into my
> local apache httpd server successfully. 
>
> ** **
>
> Now where do I find an working example of puppetmaster.conf ? 
>
> Which config.ru should I be coping into
> /usr/share/puppet/rack/puppetmasterd ? 
>
> ** **
>
> Is there a guide on generate the pem files required for use when defining
> the virtual host settings in puppetmaster? 
>
> ** **
>
> I’m almost fed-up already and I’ve not even gotten 1 agent configured to
> talk to my sever  
>
> ** **
>
> Puppet seems way too clumber some with the amount of dependencies required
> so far.  
>
> ** **
>
> I almost feel like going back to hacking on my system based on Python &
> Fabric L
>
> ** **
>
> --RB 
>
> Please visit our website for important disclaimers/disclosures regarding
> Knight’s products and services:
>
> http://knight.com/KnightEmailDisclaimer.html
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-05 Thread Christopher Wood
In your position I would "apt-get install puppet" and then try out some 
manifests before running my own puppetmaster. Then I would "apt-get install 
puppetmaster" or something similar. Personally I have never installed from gems 
and I've been just fine.

(Or pkg_add -r puppet or yum install puppet etc. etc.)

On Thu, Apr 05, 2012 at 04:42:57PM -0400, Brown, Rodrick wrote:
>I really hate poor documentation.
> 
> 
> 
>I’m following along in PDF documentation I downloaded from the official
>site and I’m stuck after I installed rack & passenger modules from
>rubygems.
> 
>I ran the passenger build script and it compiled and installed into my
>local apache httpd server successfully.
> 
> 
> 
>Now where do I find an working example of puppetmaster.conf ?
> 
>Which config.ru should I be coping into
>/usr/share/puppet/rack/puppetmasterd ?
> 
> 
> 
>Is there a guide on generate the pem files required for use when defining
>the virtual host settings in puppetmaster?
> 
> 
> 
>I’m almost fed-up already and I’ve not even gotten 1 agent configured to
>talk to my sever  
> 
> 
> 
>Puppet seems way too clumber some with the amount of dependencies required
>so far.  
> 
> 
> 
>I almost feel like going back to hacking on my system based on Python &
>Fabric L
> 
> 
> 
>--RB
> 
>Please visit our website for important disclaimers/disclosures regarding
>Knight’s products and services:
> 
>http://knight.com/KnightEmailDisclaimer.html
> 
>--
>You received this message because you are subscribed to the Google Groups
>"Puppet Users" group.
>To post to this group, send email to puppet-users@googlegroups.com.
>To unsubscribe from this group, send email to
>puppet-users+unsubscr...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2012-04-05 Thread Jo Rhett
You've probably gone about this the hard way.  It would be best to just get the 
server running without passenger and learn Puppet itself.  You only need 
passenger when you exceed 50-100 systems. 

Anyway, to answer your questions the config.ru is available in share/puppet 
(exactly where depending on your OS), and puppetmaster.conf should have been 
installed when the gem/rpm was installed. But you should probably be using the 
docs on www.puppetlabs.com rather than the PDF, I suspect they are kept more up 
to date.

On Apr 5, 2012, at 1:42 PM, Brown, Rodrick wrote:
> I really hate poor documentation.
>  
> I’m following along in PDF documentation I downloaded from the official site 
> and I’m stuck after I installed rack & passenger modules from rubygems.
> I ran the passenger build script and it compiled and installed into my local 
> apache httpd server successfully.
>  
> Now where do I find an working example of puppetmaster.conf ?
> Which config.ru should I be coping into /usr/share/puppet/rack/puppetmasterd ?
>  
> Is there a guide on generate the pem files required for use when defining the 
> virtual host settings in puppetmaster?
>  
> I’m almost fed-up already and I’ve not even gotten 1 agent configured to talk 
> to my sever  
>  
> Puppet seems way too clumber some with the amount of dependencies required so 
> far.  
>  
> I almost feel like going back to hacking on my system based on Python & 
> Fabric L
>  
> --RB
> 
> Please visit our website for important disclaimers/disclosures regarding 
> Knight’s products and services:
> 
> http://knight.com/KnightEmailDisclaimer.html
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source and other 
randomness

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Getting started

2012-04-05 Thread Brown, Rodrick
I really hate poor documentation.

I'm following along in PDF documentation I downloaded from the official site 
and I'm stuck after I installed rack & passenger modules from rubygems.
I ran the passenger build script and it compiled and installed into my local 
apache httpd server successfully.

Now where do I find an working example of puppetmaster.conf ?
Which config.ru should I be coping into /usr/share/puppet/rack/puppetmasterd ?

Is there a guide on generate the pem files required for use when defining the 
virtual host settings in puppetmaster?

I'm almost fed-up already and I've not even gotten 1 agent configured to talk 
to my sever

Puppet seems way too clumber some with the amount of dependencies required so 
far.

I almost feel like going back to hacking on my system based on Python & Fabric 
:(

--RB

Please visit our website for important disclaimers/disclosures regarding 
Knight's products and services:

http://knight.com/KnightEmailDisclaimer.html

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2010-07-26 Thread Daniel Maher

On 07/26/2010 02:36 PM, parag(PK) wrote:

Hey,
  I have just installed puppet
I wanted some basic tasks ,so that i will get started  with it ..
Can anyone help out ..



If you're interested in getting started, you might like to read the 
documentation in the "Getting Started" area :

http://docs.reductivelabs.com/#getting_started

The "Puppet Language Tutorial" is excellent as well :
http://docs.reductivelabs.com/guides/language_tutorial.html


--
Daniel Maher 
"The Internet is completely over." -- Prince

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Getting started

2010-07-26 Thread Rob McBroom
On Jul 26, 2010, at 8:36 AM, parag(PK) wrote:

> I have just installed puppet
> I wanted some basic tasks ,so that i will get started  with it ..
> Can anyone help out ..

I’m going to ignore the fascinating cultural differences your posts bring to 
light and instead just say…

http://docs.reductivelabs.com/#getting_started

-- 
Rob McBroom


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Getting started

2010-07-26 Thread parag(PK)
Hey,
 I have just installed puppet
I wanted some basic tasks ,so that i will get started  with it ..
Can anyone help out ..

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] getting started with puppet: overriding roles

2010-05-24 Thread Dan Bode
On Fri, May 21, 2010 at 4:32 PM, andreash  wrote:

> hi there,
>
> i'm not sure as to how to call the subject of this post, as i'm
> totally new to puppet -- so please forgive me if this is
> misleading ...
>
> for my servers, i'm planning to do something like this (pseudo-code):
>
> class (?) base-config:
>include ntp::client
>include resolver
>...
>
> all servers should by default include the base-config class.
>
> however, for the node which has the role "ntpd-server", i don't want
> ntp::client to be included, but rather ntp::server.
>
> how can i do this?
>

you can include both a parent and child class in puppet and puppet is smart
enough to apply all of the overridden attributes.

I use this fact sometimes in combination with an external node classifier
(like the dashboard) to override resources from parent groups.

I also opened a feature on the Dashboard to better support this kind of
behavior.

http://projects.puppetlabs.com/issues/3675



> my ntp module looks like this:
>
> class ntp {
>package { 'openntpd':
> ensure => latest
>}
>
>service { 'openntpd':
>ensure => running,
>}
>$ntpserverip = '192.168.1.1' # this is somehow to be replaced with
> the
># actual ip of the ntpd server
>class client {
>$role = 'CLIENT'
>}
>class server {
>$role = 'SERVER'
>}
>file { "/etc/openntpd/ntpd.conf":
>template("ntp/ntpd.conf.erb")
>}
> }
>
> and the template looks like this:
>
> <% if role == "SERVER" %>
>listen on <%= ntpserverip %>
>server ptbtime1.ptb.de
>server ptbtime2.ptb.de
>server ptbtime3.ptb.de
> <% end %>
>
> <% if role == "CLIENT" %>
>server <%= ntpserverip %>
> <% end %>
>
> to summarize:
>
> question 1: how can i make sure that the server which shall be
> openntpd server has $role = 'SERVER' and all others have role =
> 'CLIENT' ?
>
> question 2: how can i include the ip of the ntp server as $ntpserverip
> without having to manually set it?
>
> question 3: what else did i do wrong?
>
> i just found out about puppet, and am really excited about it. looks
> like a great helper even for a rather small (~15 machines (virtual +
> physical) in total) environment.
>
> thanks for your insight!
>
> Andreas.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] getting started with puppet: overriding roles

2010-05-24 Thread Silviu Paragina

On 22.05.2010 02:32, andreash wrote:

hi there,

i'm not sure as to how to call the subject of this post, as i'm
totally new to puppet -- so please forgive me if this is
misleading ...

for my servers, i'm planning to do something like this (pseudo-code):

class (?) base-config:
 include ntp::client
 include resolver
 ...

all servers should by default include the base-config class.

however, for the node which has the role "ntpd-server", i don't want
ntp::client to be included, but rather ntp::server.

how can i do this?

my ntp module looks like this:

class ntp {
 package { 'openntpd':
  ensure =>  latest
 }

 service { 'openntpd':
 ensure =>  running,
 }
 $ntpserverip = '192.168.1.1' # this is somehow to be replaced with
the
 # actual ip of the ntpd server
   
You may have some success of setting this ip address automatically with 
exported resources. You export the resources in the server class, and 
you realize them on the client. Check out 
http://docs.puppetlabs.com/guides/exported_resources.html . Till now I 
haven't seen this used to set up ntp, but I think it might be possible 
with the help of the concat module.



Silviu

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] getting started with puppet: overriding roles

2010-05-21 Thread Daniel Pittman
andreash  writes:

> i'm not sure as to how to call the subject of this post, as i'm totally new
> to puppet -- so please forgive me if this is misleading ...
>
> for my servers, i'm planning to do something like this (pseudo-code):
>
> class (?) base-config:
> include ntp::client
> include resolver
> ...
>
> all servers should by default include the base-config class.

I would suggest, instead, this:

  define base ($ntp, ...) {
case $ntp {
  'master': { include ntp::master }
  ...
  default: { fail("sorry, ntp $ntp is an unknown value") }
}
  }


[...]

> question 1: how can i make sure that the server which shall be
> openntpd server has $role = 'SERVER' and all others have role =
> 'CLIENT' ?

Essentially, use 'fail' when it isn't set.  You can pull this up a bit by, for
example, using the define there without a default value, but it essentially
comes down to the same thing.

> question 2: how can i include the ip of the ntp server as $ntpserverip
> without having to manually set it?

You can't.  At least, not trivially: puppet doesn't let you ask questions like
"what is the IP address of the server(s) including the ntp::master class".

Your choices come down to writing it in the manifest somewhere, or using a
fact or external tool that works it out for you.

> question 3: what else did i do wrong?

Nothing I can see; when *I* started this I used node inheritance, which is a
mistake, because it is useless.  Your approach isn't. :)

Daniel

-- 
✣ Daniel Pittman✉ dan...@rimspace.net☎ +61 401 155 707
   ♽ made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] getting started with puppet: overriding roles

2010-05-21 Thread andreash
hi there,

i'm not sure as to how to call the subject of this post, as i'm
totally new to puppet -- so please forgive me if this is
misleading ...

for my servers, i'm planning to do something like this (pseudo-code):

class (?) base-config:
include ntp::client
include resolver
...

all servers should by default include the base-config class.

however, for the node which has the role "ntpd-server", i don't want
ntp::client to be included, but rather ntp::server.

how can i do this?

my ntp module looks like this:

class ntp {
package { 'openntpd':
 ensure => latest
}

service { 'openntpd':
ensure => running,
}
$ntpserverip = '192.168.1.1' # this is somehow to be replaced with
the
# actual ip of the ntpd server
class client {
$role = 'CLIENT'
}
class server {
$role = 'SERVER'
}
file { "/etc/openntpd/ntpd.conf":
template("ntp/ntpd.conf.erb")
}
}

and the template looks like this:

<% if role == "SERVER" %>
listen on <%= ntpserverip %>
server ptbtime1.ptb.de
server ptbtime2.ptb.de
server ptbtime3.ptb.de
<% end %>

<% if role == "CLIENT" %>
server <%= ntpserverip %>
<% end %>

to summarize:

question 1: how can i make sure that the server which shall be
openntpd server has $role = 'SERVER' and all others have role =
'CLIENT' ?

question 2: how can i include the ip of the ntp server as $ntpserverip
without having to manually set it?

question 3: what else did i do wrong?

i just found out about puppet, and am really excited about it. looks
like a great helper even for a rather small (~15 machines (virtual +
physical) in total) environment.

thanks for your insight!

Andreas.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] getting started with naginator?

2009-09-02 Thread Dan Bode
I want to have a look at Naginator. Where is the best place to start

the link from the Type reference is a dead link

http://reductivelabs.com/trac/naginator

I downloaded the project from gitrepo and had a glance, but the first thing
that I saw said that its an integration with CFEngine (in the README I
think).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Getting started with puppet

2009-06-17 Thread Matt Delves

Hey Folks,
I'm just starting to look into Puppet though am finding it a bit
confusing as to how to get it setup on the network I administer. At the
moment it is a combination of RHEL 4 and SLES 10 boxes with windows and
novell also.

I know that windows / novell is beside the point though am wondering how
to get puppet setup on the RHEL and SLES side of things.

Any good howto's or tutorials would be greatly appreciated.

Thanks,
Matt Delves


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Getting started.. quick start guide?

2008-09-16 Thread Brian Mathis

>From what I've been reading about puppet I think it's the answer to my
(and every sysadmin's) prayers.  I've been going over the docs at the
reductive labs web site, and I've found a short introduction using the
'sudo' example, but the next step I've found there is "everything".

Does anyone know of a guide or site that can get someone going on
puppet quickly, without having to swallow the whole system at once?

Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---