On Wednesday, March 9, 2016 at 4:03:58 AM UTC-8, Albert Shamsiyan wrote: > > My bad .... > > executing "puppet agent --configprint server" will always show "puppet" > because it's the default value > That's not quite true.
Per-user Puppet configuration lives in ~/.puppet or ~/.puppetlabs, depending on the version of Puppet you're running. That being said, > , however, when executing "sudo puppet agent --configprint server" will > print out the correct value > If you're running the puppet agent as root, which is standard practice, you are almost always going to need to run commands as root for them to function the way you expect. There's basically no scenario where you should be running a puppet command as non-root, if the agent is running as root, with the exception of non-agent/daemon tools, like `puppet module generate`. > > > On Wednesday, March 9, 2016 at 12:30:27 PM UTC+2, Albert Shamsiyan wrote: >> >> Hi, >> >> I'm new with puppet and I help with agent server communication. >> >> - Server installed on CentOS 65 and called puupetmaster.home >> - Agent installed on Ubuntu 14.01 and called wikitest.home >> >> >> 1. I get "puppet", When I hit the following command on the agent puppet >> agent --configprint server >> 2. Agent config file looks as follows: >> >> >> [main] >>> logdir=/var/log/puppet >>> vardir=/var/lib/puppet >>> ssldir=/var/lib/puppet/ssl >>> rundir=/var/run/puppet >>> factpath=$vardir/lib/facter >>> templatedir=$confdir/templates >>> [master] >>> # These are needed when the puppetmaster is run by passenger >>> # and can safely be removed if webrick is used. >>> ssl_client_header = SSL_CLIENT_S_DN >>> ssl_client_verify_header = SSL_CLIENT_VERIFY >>> [agent] >>> server=puppetmaster.home >>> #environment=production >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *What can be the problem? * >> >> -- 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/83578fe7-45b9-4093-94bc-81febccdb94e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.