LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help needed in configuring puppet. (https://www.linuxquestions.org/questions/linux-newbie-8/help-needed-in-configuring-puppet-891664/)

pinga123 07-14-2011 04:34 AM

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?

acid_kewpie 07-14-2011 04:40 AM

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.

pinga123 07-14-2011 05:51 AM

Quote:

Originally Posted by acid_kewpie (Post 4414608)
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


acid_kewpie 07-14-2011 05:52 AM

so set your DNS up properly.

pinga123 07-14-2011 11:06 PM

Quote:

Originally Posted by acid_kewpie (Post 4414646)
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

acid_kewpie 07-15-2011 02:14 AM

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.

pinga123 07-20-2011 06:41 AM

Quote:

Originally Posted by acid_kewpie (Post 4415372)
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?


All times are GMT -5. The time now is 10:56 AM.