Puppet 3.8 client on Ubuntu 14.04

34 views
Skip to first unread message

Albert Shamsiyan

unread,
Mar 9, 2016, 5:30:27 AM3/9/16
to Puppet Users
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? 

                                    Albert Shamsiyan

                                    unread,
                                    Mar 9, 2016, 7:03:58 AM3/9/16
                                    to Puppet Users
                                    My bad .... 

                                    executing "puppet agent --configprint server" will always show "puppet" because it's the default value, however, when executing  "sudo puppet agent --configprint server" will print out the correct value 

                                    Zee Alexander

                                    unread,
                                    Mar 10, 2016, 12:25:56 AM3/10/16
                                    to Puppet Users


                                    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`.
                                    Reply all
                                    Reply to author
                                    Forward
                                    0 new messages