Puppet.conf 服务器指定端口吗?

Puppet.conf 服务器指定端口吗?

我在 docker 容器内运行一个 puppet 服务器,并将端口8140传递给32779。 这样我就可以在 上运行一个 puppet 服务器localhost:32779

然后我编辑/etc/puppetlabs/puppet/puppet.conf并添加以下内容:

[agent]
server = localhost:32779

然后我运行,puppet agent --test返回:

错误:无法请求证书:无法打开与 puppet 的 TCP 连接:8140(getaddrinfo:名称或服务未知)

由于我指定了端口,32779所以我很困惑为什么 Puppet 要寻找连接8140

不能指定端口吗?

注意:我尝试从运行 Docker 的主系统连接到容器。但是当我运行 这个docker容器 ,这是一个代理,似乎可以连接。但我无法直接连接。


编辑:

运行puppet agent --test --server_list localhost:32779结果:

WARN: Unresolved specs during Gem::Specification.reset:
      hiera (< 4, >= 2.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Warning: Could not select a functional puppet master
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Info: Retrieving pluginfacts
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Info: Retrieving plugin
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Error: Could not retrieve catalog from remote server: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)

编辑#2:

命令的完整输出puppet agent --test --server_list localhost:32779 --verbose --debug

WARN: Unresolved specs during Gem::Specification.reset:
      hiera (< 4, >= 2.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Debug: Applying settings catalog for sections main, agent, ssl
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'confdir': 'File[/home/philip/.puppetlabs/etc/puppet]{:path=>"/home/philip/.puppetlabs/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'codedir': 'File[/home/philip/.puppetlabs/etc/code]{:path=>"/home/philip/.puppetlabs/etc/code", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'vardir': 'File[/home/philip/.puppetlabs/opt/puppet/cache]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'logdir': 'File[/home/philip/.puppetlabs/var/log]{:path=>"/home/philip/.puppetlabs/var/log", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'statedir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'rundir': 'File[/home/philip/.puppetlabs/var/run]{:path=>"/home/philip/.puppetlabs/var/run", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'libdir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/lib]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'preview_outputdir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/preview]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/preview", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'certdir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/certs]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/certs", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'ssldir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl", :mode=>"771", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'publickeydir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/public_keys]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/public_keys", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'requestdir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/certificate_requests]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/certificate_requests", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'privatekeydir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/private_keys]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/private_keys", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'privatedir': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/private]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/private", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'hostcert': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/certs/admin2klic-hp-elitebook-8560p.2klic.pem]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/certs/admin2klic-hp-elitebook-8560p.2klic.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'hostprivkey': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/private_keys/admin2klic-hp-elitebook-8560p.2klic.pem]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/private_keys/admin2klic-hp-elitebook-8560p.2klic.pem", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'hostpubkey': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/public_keys/admin2klic-hp-elitebook-8560p.2klic.pem]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/public_keys/admin2klic-hp-elitebook-8560p.2klic.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'localcacert': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/certs/ca.pem]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/certs/ca.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'hostcrl': 'File[/home/philip/.puppetlabs/etc/puppet/ssl/crl.pem]{:path=>"/home/philip/.puppetlabs/etc/puppet/ssl/crl.pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'statefile': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state/state.yaml]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state/state.yaml", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'transactionstorefile': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state/transactionstore.yaml]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state/transactionstore.yaml", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'clientyamldir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/client_yaml]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'client_datadir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/client_data]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'clientbucketdir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/clientbucket]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'lastrunfile': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_summary.yaml]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_summary.yaml", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'lastrunreport': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_report.yaml]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_report.yaml", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'graphdir': 'File[/home/philip/.puppetlabs/opt/puppet/cache/state/graphs]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Using settings: adding file resource 'pluginfactdest': 'File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]{:path=>"/home/philip/.puppetlabs/opt/puppet/cache/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'shadow' for feature 'libshadow'
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: Failed to load library 'shadow' for feature 'libshadow'
Debug: Failed to load library 'cfpropertylist' for feature 'cfpropertylist'
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/lib]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/preview]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/certs]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/public_keys]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/certificate_requests]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/private_keys]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/private]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/certs/admin2klic-hp-elitebook-8560p.2klic.pem]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl/certs]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/private_keys/admin2klic-hp-elitebook-8560p.2klic.pem]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl/private_keys]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/public_keys/admin2klic-hp-elitebook-8560p.2klic.pem]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl/public_keys]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/certs/ca.pem]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl/certs]
Debug: /File[/home/philip/.puppetlabs/etc/puppet/ssl/crl.pem]: Adding autorequire relationship with File[/home/philip/.puppetlabs/etc/puppet/ssl]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state/state.yaml]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache/state]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state/transactionstore.yaml]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache/state]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/client_yaml]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/client_data]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/clientbucket]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_summary.yaml]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache/state]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state/last_run_report.yaml]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache/state]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/state/graphs]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache/state]
Debug: /File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]: Adding autorequire relationship with File[/home/philip/.puppetlabs/opt/puppet/cache]
Debug: Finishing transaction 24399340
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Runtime environment: puppet_version=4.10.0, ruby_version=2.3.1, run_mode=agent, default_encoding=UTF-8
Debug: Using cached certificate for ca
Debug: Using cached certificate for admin2klic-hp-elitebook-8560p.2klic
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Loaded state in 0.00 seconds
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson yaml binary
Debug: Using cached certificate for ca
Debug: Using cached certificate for admin2klic-hp-elitebook-8560p.2klic
Debug: Creating new connection for https://localhost:32779
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for https://localhost:32779
Warning: Could not select a functional puppet master
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson yaml binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Info: Retrieving pluginfacts
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson yaml binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson yaml binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Debug: Finishing transaction 35878660
Info: Retrieving plugin
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson yaml binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson yaml binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: /File[/home/philip/.puppetlabs/opt/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Debug: Finishing transaction 36864320
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Loading external facts from /home/philip/.puppetlabs/opt/puppet/cache/facts.d
Debug: Facter: Found no suitable resolves of 1 for ec2_metadata
Debug: Facter: value for ec2_metadata is still nil
Debug: Facter: value for agent_specified_environment is still nil
Debug: Facter: value for lsbrelease is still nil
Debug: Facter: Found no suitable resolves of 1 for ec2_metadata
Debug: Facter: value for ec2_metadata is still nil
Debug: Facter: Found no suitable resolves of 1 for ec2_userdata
Debug: Facter: value for ec2_userdata is still nil
Debug: Facter: Found no suitable resolves of 1 for processor
Debug: Facter: value for processor is still nil
Debug: Facter: value for cfkey is still nil
Debug: Facter: value for ipaddress6_br_2f267500abbb is still nil
Debug: Facter: value for ipaddress6_br_f91b6c0af8c5 is still nil
Debug: Facter: value for ipaddress6_docker0 is still nil
Debug: Facter: value for ipaddress6_enp0s25 is still nil
Debug: Facter: value for ipaddress6_lo is still nil
Debug: Facter: value for macaddress_lo is still nil
Debug: Facter: value for ipaddress_veth9119469 is still nil
Debug: Facter: value for ipaddress6_veth9119469 is still nil
Debug: Facter: value for netmask_veth9119469 is still nil
Debug: Facter: value for ipaddress_veth7239ec2 is still nil
Debug: Facter: value for ipaddress6_veth7239ec2 is still nil
Debug: Facter: value for netmask_veth7239ec2 is still nil
Debug: Facter: value for ipaddress_veth7249d6f is still nil
Debug: Facter: value for ipaddress6_veth7249d6f is still nil
Debug: Facter: value for netmask_veth7249d6f is still nil
Debug: Facter: value for ipaddress_veth738d899 is still nil
Debug: Facter: value for ipaddress6_veth738d899 is still nil
Debug: Facter: value for netmask_veth738d899 is still nil
Debug: Facter: value for ipaddress_vethca47805 is still nil
Debug: Facter: value for ipaddress6_vethca47805 is still nil
Debug: Facter: value for netmask_vethca47805 is still nil
Debug: Facter: value for ipaddress_vethcbb2c83 is still nil
Debug: Facter: value for ipaddress6_vethcbb2c83 is still nil
Debug: Facter: value for netmask_vethcbb2c83 is still nil
Debug: Facter: value for ipaddress_wlo1 is still nil
Debug: Facter: value for ipaddress6_wlo1 is still nil
Debug: Facter: value for netmask_wlo1 is still nil
Debug: Facter: value for sshdsakey is still nil
Debug: Facter: value for sshdsakey is still nil
Debug: Facter: value for sshfp_dsa is still nil
Debug: Facter: value for sshrsakey is still nil
Debug: Facter: value for sshrsakey is still nil
Debug: Facter: value for sshfp_rsa is still nil
Debug: Facter: value for sshecdsakey is still nil
Debug: Facter: value for sshecdsakey is still nil
Debug: Facter: value for sshfp_ecdsa is still nil
Debug: Facter: value for sshed25519key is still nil
Debug: Facter: value for sshed25519key is still nil
Debug: Facter: value for sshfp_ed25519 is still nil
Debug: Facter: Found no suitable resolves of 1 for selinux_enforced
Debug: Facter: value for selinux_enforced is still nil
Debug: Facter: Found no suitable resolves of 1 for selinux_policyversion
Debug: Facter: value for selinux_policyversion is still nil
Debug: Facter: Found no suitable resolves of 1 for selinux_current_mode
Debug: Facter: value for selinux_current_mode is still nil
Debug: Facter: Found no suitable resolves of 1 for selinux_config_mode
Debug: Facter: value for selinux_config_mode is still nil
Debug: Facter: Found no suitable resolves of 1 for selinux_config_policy
Debug: Facter: value for selinux_config_policy is still nil
Debug: Facter: Found no suitable resolves of 2 for swapencrypted
Debug: Facter: value for swapencrypted is still nil
Debug: Facter: Found no suitable resolves of 1 for xendomains
Debug: Facter: value for xendomains is still nil
Debug: Facter: Found no suitable resolves of 1 for gce
Debug: Facter: value for gce is still nil
Debug: Facter: value for network_veth9119469 is still nil
Debug: Facter: value for network_veth7239ec2 is still nil
Debug: Facter: value for network_veth7249d6f is still nil
Debug: Facter: value for network_veth738d899 is still nil
Debug: Facter: value for network_vethca47805 is still nil
Debug: Facter: value for network_vethcbb2c83 is still nil
Debug: Facter: value for network_wlo1 is still nil
Debug: Facter: Found no suitable resolves of 2 for iphostnumber
Debug: Facter: value for iphostnumber is still nil
Debug: Facter: value for vlans is still nil
Debug: Facter: Found no suitable resolves of 1 for zonename
Debug: Facter: value for zonename is still nil
Debug: Facter: value for zpool_version is still nil
Debug: Facter: ruby-augeas not available
Debug: Facter: value for augeasversion is still nil
Debug: Facter: value for is_rsc is still nil
Debug: Facter: value for is_rsc is still nil
Debug: Facter: Found no suitable resolves of 1 for rsc_region
Debug: Facter: value for rsc_region is still nil
Debug: Facter: value for is_rsc is still nil
Debug: Facter: Found no suitable resolves of 1 for rsc_instance_id
Debug: Facter: value for rsc_instance_id is still nil
Debug: Facter: value for lsbminordistrelease is still nil
Debug: Facter: value for zfs_version is still nil
Debug: Facter: Found no suitable resolves of 1 for system32
Debug: Facter: value for system32 is still nil
Debug: Facter: value for ipaddress6 is still nil
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: catalog supports formats: pson yaml dot binary
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: Could not retrieve catalog from remote server: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Debug: Creating new connection for https://puppet:0
Debug: Starting connection for https://puppet:0
Error: Could not send report: Failed to open TCP connection to puppet:0 (getaddrinfo: Name or service not known)

答案1

https://docs.puppet.com/puppet/latest/configuration.html#masterport

马斯特波特

Puppet Master 流量的端口。对于 Puppet Master,这是要监听的端口;对于 Puppet 代理,这是发出请求的端口。两个应用程序都使用此设置来获取端口。

因此,请尝试在代理部分下将主端口设置为 的值32779

相关内容