Phillip B Oldham
2011-Feb-16 14:37 UTC
[Puppet Users] Make puppet clients look at a domain name rather than an IP?
In the docs it says one must add a line to the /etc/hosts file with the name "puppet" and the IP of the puppet master. This isn''t a possibility for us as the IP is subject to change. Is it possible to configure the puppet clients to look for a specific domain to find the master? eg. "puppetmaster.mydomain.com"? If so, how/where can this be configured? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Kinzel, David
2011-Feb-16 14:38 UTC
RE: [Puppet Users] Make puppet clients look at a domain name rather than an IP?
> >In the docs it says one must add a line to the /etc/hosts file with >the name "puppet" and the IP of the puppet master. This isn''t a >possibility for us as the IP is subject to change. Is it possible to >configure the puppet clients to look for a specific domain to find the >master? eg. "puppetmaster.mydomain.com"? If so, how/where can this be >configured?In your clients /etc/puppet/puppet.conf [agent] server = puppet.foo.com> >-- >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+unsubscribe@googlegroups.com. >For more options, visit this group at >http://groups.google.com/group/puppet-users?hl=en. > >This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only. Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited. If you receive this email in error, please contact the sender and delete this communication and any copies immediately. Thank you. http://www.encana.com -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Feb-16 14:40 UTC
Re: [Puppet Users] Make puppet clients look at a domain name rather than an IP?
On Wed, Feb 16, 2011 at 6:37 AM, Phillip B Oldham <phillip.oldham@gmail.com> wrote:> In the docs it says one must add a line to the /etc/hosts file with > the name "puppet" and the IP of the puppet master. This isn''t a > possibility for us as the IP is subject to change. Is it possible to > configure the puppet clients to look for a specific domain to find the > master? eg. "puppetmaster.mydomain.com"? If so, how/where can this be > configured?Where does it say this Phillip? We must have some unclear documentation. Puppet nodes normally find their master by name resolution, and in the vast majority of cases this is a DNS entry. You can configure this on the node with the "server" configuration parameter in puppet.conf The documentation around an /etc/hosts entry should be targeted at people who for whatever reason cannot use DNS.> > -- > 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+unsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick
2011-Feb-16 20:48 UTC
Re: [Puppet Users] Make puppet clients look at a domain name rather than an IP?
On Feb 16, 2011, at 6:37 AM, Phillip B Oldham wrote:> In the docs it says one must add a line to the /etc/hosts file with > the name "puppet" and the IP of the puppet master. This isn''t a > possibility for us as the IP is subject to change. Is it possible to > configure the puppet clients to look for a specific domain to find the > master? eg. "puppetmaster.mydomain.com"? If so, how/where can this be > configured?Other people already answered you question directly but, if you control and host your DNS, an even better option would be to add a CNAME from puppet.mydomain.com to puppetmaster.mydomain.com. Then you can just change the CNAME any time you chance which computer is the puppetmaster. If you can''t do that, can you change the hostname of the server to puppet.mydomain.com? The CNAME option it probably the right way to do it if you can affect DNS. (Note: I''m also assuming that mydomain.com is in your search domain list. This will only work if "ping puppet" pings the puppet master) -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Phillip B Oldham
2011-Feb-25 14:40 UTC
[Puppet Users] Re: Make puppet clients look at a domain name rather than an IP?
On Feb 16, 2:40 pm, Nigel Kersten <ni...@puppetlabs.com> wrote:> Where does it say this Phillip? We must have some unclear documentation.http://docs.puppetlabs.com/guides/configuring.html#configure-dns-optional It is quite confusing... I struggled for a moment getting a puppet- master daemon running, too - the configuration documentation could maybe do with a little more work for those not used to the ruby environment or usual set-up of ruby daemons. The following paragraph threw me (from http://docs.puppetlabs.com/guides/configuring.html#start-the-central-daemon):> If you’re running on Red Hat, CentOS, Fedora, Debian, Ubuntu, or Solaris, the OS package already contains a suitable init script. If you don’t have one, you can either create your own using an existing init script as an example, or simply run without one (though this is not advisable for production environments).... sounds fine, however there''s no example of how to actually run the puppet master directly on the command-line (I''d installed via a ruby gem). -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.