Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-25188

puppet-agent-server-hostname does not match use case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 6.15.0
    • Installation
    • 0
    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • 0
    • Platform
    • Moderate
    • Yes

      Description of problem:

      The option `-puppet-agent-server-hostname` configured in puppet.conf in [main] the server= keyword. This is used both by the puppet-agent and the puppetserver. Based on the naming of the variable 'puppet-agent...' the value has to be configured in [agent] section and not the main section.

      Also, in the [server] section the sever= value can be programmed than with the puppetca hostname. 'puppetserver ca' commnd reads the [server] (or fallsback to [main]) section to find the puppet CA server

      Version-Release number of selected component (if applicable):

      Red Hat Satellite 6.15

      How reproducible:

      1. satellite-installer \
        > --enable-foreman-cli-puppet \
        > --enable-foreman-plugin-puppet \
        > --enable-puppet \
        > --foreman-proxy-puppet true \
        > --foreman-proxy-puppetca true \
        > --puppet-server true
      1. satellite-installer --puppet-agent-server-hostname satellite.example.com
      1. cat /etc/puppetlabs/puppet/puppet.conf
      2. file managed by puppet
        [main]
        basemodulepath = /etc/puppetlabs/code/environments/common:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules:/usr/share/puppet/modules
        certname = satellite.example.com
        codedir = /etc/puppetlabs/code
        environmentpath = /etc/puppetlabs/code/environments
        hiera_config = $confdir/hiera.yaml
        hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
        logdir = /var/log/puppetlabs/puppet
        pluginfactsource = puppet:///pluginfacts
        pluginsource = puppet:///plugins
        privatekeydir = $ssldir/private_keys { group = service }

        reports = foreman
        rundir = /var/run/puppetlabs
        server = satellite.example.com
        show_diff = false
        ssldir = /etc/puppetlabs/puppet/ssl
        vardir = /opt/puppetlabs/puppet/cache

      [agent]
      classfile = $statedir/classes.txt
      default_schedules = false
      environment = production
      localconfig = $vardir/localconfig
      masterport = 8140
      noop = false
      report = true
      runinterval = 1800
      splay = false
      splaylimit = 1800
      usecacheonfailure = true

      [server]
      autosign = /etc/puppetlabs/puppet/autosign.conf

      { mode = 0664 }

      ca = true
      certname = satellite.example.com
      external_nodes = /etc/puppetlabs/puppet/node.rb
      logdir = /var/log/puppetlabs/puppetserver
      node_terminus = exec
      parser = current
      rundir = /var/run/puppetlabs/puppetserver
      ssldir = /etc/puppetlabs/puppet/ssl
      storeconfigs = false
      strict_variables = false
      vardir = /opt/puppetlabs/server/data/puppetserver

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-mkalyat Mithun Kalyat
            Mithun Kalyat
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: