Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2620

How to run puppetserver and agent on different hosts?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: SERVER 6.5.0
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Environment:

      x86_64 ubuntu-16.04

    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.5.0
      Puppet Server Version: 6.5.0
      OS Name/Version: ubuntu 16.04

      I can start `puppetserver` from source with the default configuration, and start the agent on the same host. But when I run the server and agent on the different hosts, I got 

      errors.

      Here is the server config:  ~/.puppetlabs/etc/puppet/puppet.conf :

         
          [main]
           certname = localhost
          [agent]
           server = localhost
       
      And the config of agent is ~/.puppetlabs/etc/puppet/puppet.conf :
          [main]
            certname = localhost
          [agent]
           server = x161.fyre.ibm.com
       
      "x161.fyre.ibm.com" is the host to run puppetserver by "lein run -c dev/puppetserver.conf"
      When run agent by "puppet agent --confdir ~/.puppetlabs/etc/puppet -t --debug", get:

             ......
             Debug: Creating new connection for https://x161.fyre.ibm.com:8140
             Debug: Starting connection for https://x161.fyre.ibm.com:8140
             Debug: HTTP GET https://x161.fyre.ibm.com:8140/puppet-ca/v1/certificate/ca returned 200 OK
             Debug: Closing connection for https://x161.fyre.ibm.com:8140
             Info: Downloaded certificate for ca from x161.fyre.ibm.com
             Debug: Loading CRLs
             Debug: Creating new connection for https://x161.fyre.ibm.com:8140
             Debug: Starting connection for https://x161.fyre.ibm.com:8140
             Error: Could not run: hostname "x161.fyre.ibm.com" does not match the server certificate

       
      Is the configration not correct or missing something? How to config both server and agent?

      Thanks,
       
       

       

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                samding Sam Ding
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: