LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2011, 04:34 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
Help needed in configuring puppet.


I m running puppet latest version. 2.7.1

but there is no such file as /etc/puppet/puppet.conf

How would i define different manifest files for different environment.

i had manually created puppet.conf file and added following content into it.
Code:
# cat /etc/puppet/puppet.conf
[master]
  manifest = /etc/puppet/manifests/site.pp
[dev]
  manifest = /etc/puppet/manifests/site2.pp
but whenever i run this on my puppet client i get following error.

Code:
# puppet agent --server --environment dev PuppetMaster.domain.com --waitforcert 60 --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known
However

when i run it without specifying environment then it works fine.

Code:
# puppet agent --server  PuppetMaster.domain.com --waitforcert 60 --test
info: Caching catalog for puppetclient.domain.com
info: Applying configuration version '1310635621'
notice: Finished catalog run in 0.31 seconds
Also for starting puppet master i use following command.

How would i start it automatically after system reboot?
Code:
puppet master --mkusers
Which command to use to stop master daemon?

Last edited by pinga123; 07-14-2011 at 04:36 AM.
 
Old 07-14-2011, 04:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you've managed to stick the environment parameter inside the server parameter... kinda helps if they are in the right order.

you should really NOT be using --server though, puppet will look for puppet.domain.com automatically, so don't fight it and change the server to be reachable on that address (and have the cert for it to match). it's much simpler.
 
Old 07-14-2011, 05:51 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by acid_kewpie View Post
you've managed to stick the environment parameter inside the server parameter... kinda helps if they are in the right order.

you should really NOT be using --server though, puppet will look for puppet.domain.com automatically, so don't fight it and change the server to be reachable on that address (and have the cert for it to match). it's much simpler.
Agree on mixing the parameters but
this is what i get if i dont specify server parameter

Code:
# puppet agent --waitforcert 60 --test
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: getaddrinfo: Name or service not known
 
Old 07-14-2011, 05:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
so set your DNS up properly.
 
Old 07-14-2011, 11:06 PM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by acid_kewpie View Post
so set your DNS up properly.
Still not able to figure out how to stop the puppet server.

Since there is no puppetmaster service available in puppet 2.7.1
 
Old 07-15-2011, 02:14 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
What do you mean "stop"? How did you start it. Note you should really use passenger and Apache not the dumb puppetmaster service.

Did you just install from source? That would explain the lack of service scripts etc.
 
Old 07-20-2011, 06:41 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by acid_kewpie View Post
What do you mean "stop"? How did you start it. Note you should really use passenger and Apache not the dumb puppetmaster service.

Did you just install from source? That would explain the lack of service scripts etc.
Yes i have installed it from tar.gz packages available .

Do i need to install it from rpm to get the services?

How would it different if i install it using different method?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter to execute shell script on puppet client through Puppet server niraj.kumar Linux - Server 3 02-08-2011 09:01 PM
help needed for configuring RAS athulv Linux - General 3 08-27-2009 09:16 AM
help needed configuring guarddog mechmg93 Linux - Networking 0 08-12-2006 02:31 PM
Help needed configuring lilo unicef2k Linux - General 3 07-22-2004 11:55 AM
Help Needed Configuring Modem. Rubicone Linux - Software 1 03-04-2002 08:36 PM


All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration