傀儡“连接被拒绝”

傀儡“连接被拒绝”

当我的 Puppet 代理Connection refused尝试连接到主服务器时,它无法正常工作。但是,其他交互可以正常工作,而 Google 搜索结果的第一页却没有帮助。我遗漏了什么?

我可以成功发送证书请求,并且成功签名并返回。所以,我知道一些沟通正在顺利进行。但是,--server需要争论。

[testuser@agent puppet]$ sudo puppet certificate generate agent.dev.example.com --ca-location remote --debug --server master.net.example.com
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Failed to load library 'selinux' for feature 'selinux'
debug: /File[/var/opt/lib/pe-puppet/facts]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl]: Autorequiring File[/etc/puppetlabs/puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/state]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/certs]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/private_keys]
debug: /File[/var/opt/lib/pe-puppet/lib]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/public_keys]
debug: /File[/etc/puppetlabs/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/private]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: Finishing transaction 23570689626320
info: Creating a new SSL certificate request for agent.dev.example.com
info: Certificate Request fingerprint (md5): [REDACTED]
true

[testuser@agent puppet]$ sudo puppet certificate find --ca-location remote --server master.net.example.com agent.dev.example.com
-----BEGIN CERTIFICATE-----
[REDACTED]
-----END CERTIFICATE-----

[testuser@agent puppet]$ sudo ls -la /etc/puppetlabs/puppet/ssl/certs/*
-rw-r--r-- 1 pe-puppet pe-puppet 2017 Apr  8 10:17 /etc/puppetlabs/puppet/ssl/certs/ca.pem
-rw-r--r-- 1 pe-puppet pe-puppet 1984 Apr  8 10:29 /etc/puppetlabs/puppet/ssl/certs/agent.dev.example.com.pem

Connection refused但是,当代理尝试连接时,没有任何开关组合可以避免出现消息。每次都会出错。这是长--debug输出。我添加了换行符以提高可读性。

[ testuser@agent ] $ sudo puppet agent -d --no-daemonize --test --detailed-exitcodes
debug: Failed to load library 'selinux' for feature 'selinux'
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: Puppet::Type::User::ProviderPw: file pw does not exist

debug: /File[/etc/puppetlabs/puppet/puppet.conf]: Autorequiring File[/etc/puppetlabs/puppet]
debug: /File[/etc/puppetlabs/puppet/ssl]: Autorequiring File[/etc/puppetlabs/puppet]
debug: /File[/var/opt/lib/pe-puppet/state/last_run_report.yaml]: Autorequiring File[/var/opt/lib/pe-puppet/state]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/classes.txt]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/run/pe-puppet/agent.pid]: Autorequiring File[/var/run/pe-puppet]
debug: /File[/var/opt/lib/pe-puppet/client_data]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/var/opt/lib/pe-puppet/state/last_run_summary.yaml]: Autorequiring File[/var/opt/lib/pe-puppet/state]
debug: /File[/etc/puppetlabs/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/clientbucket]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/var/opt/lib/pe-puppet/state/resources.txt]: Autorequiring File[/var/opt/lib/pe-puppet/state]
debug: /File[/var/opt/lib/pe-puppet/lib]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/certs]
debug: /File[/var/opt/lib/pe-puppet/state/state.yaml]: Autorequiring File[/var/opt/lib/pe-puppet/state]
debug: /File[/var/opt/lib/pe-puppet/state/graphs]: Autorequiring File[/var/opt/lib/pe-puppet/state]
debug: /File[/etc/puppetlabs/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/private_keys]
debug: /File[/var/opt/lib/pe-puppet/client_yaml]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/var/opt/lib/pe-puppet/facts]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/var/opt/lib/pe-puppet/state]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/certs]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/public_keys]
debug: /File[/etc/puppetlabs/puppet/ssl/private]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: Finishing transaction 23551325708480

debug: /File[/etc/puppetlabs/puppet/ssl/certs/ca.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/certs]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/facts]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl]: Autorequiring File[/etc/puppetlabs/puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/state]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/certs/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/certs]
debug: /File[/etc/puppetlabs/puppet/ssl/private]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/public_keys]
debug: /File[/etc/puppetlabs/puppet/ssl/certificate_requests]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/var/opt/lib/pe-puppet/lib]: Autorequiring File[/var/opt/lib/pe-puppet]
debug: /File[/etc/puppetlabs/puppet/ssl/public_keys]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl]
debug: /File[/etc/puppetlabs/puppet/ssl/private_keys/agent.dev.example.com.pem]: Autorequiring File[/etc/puppetlabs/puppet/ssl/private_keys]
debug: Finishing transaction 23551324209860

debug: Using cached certificate for ca
debug: Using cached certificate for agent.dev.example.com
debug: Finishing transaction 23551323810000
debug: Loaded state in 0.00 seconds

info: Retrieving plugin
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: Using cached certificate for ca
debug: Using cached certificate for agent.dev.example.com
debug: Using cached certificate_revocation_list for ca
debug: Finishing transaction 23551323523420

info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cachememfree.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_date.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_u01disk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_tmpdisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_rootdisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_oradumpdisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpufreqs.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_uptime.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/mounts.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_vardisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cputempaverage.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpufreq.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_appsdisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_u60disk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpumaxfreq.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_bootdisk.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpucores.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_custom_build.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpufreqout.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_issue.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cputemp.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cpuaverage.rb
info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/bpa_cputime.rb

debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson
info: Caching catalog for agent.dev.example.com
debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does not exist
debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
debug: Puppet::Type::Service::ProviderSystemd: file /bin/systemctl does not exist
debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
debug: Creating default schedules
debug: Finishing transaction 23551322650180

debug: Loaded state in 0.00 seconds
info: Applying configuration version '1365443005'

debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/util]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_accounts/Anchor[pe_accounts::begin]/before: requires Class[Pe_accounts::Groups]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/util/actionpolicy.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/server.cfg]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetral.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/application/puppetd.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/application/package.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Metadata/File[/opt/puppet/sbin/refresh-mcollective-metadata]/before: requires Cron[pe-mcollective-metadata]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-cert.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/application/service.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.ddl]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_accounts::Groups/before: requires Anchor[pe_accounts::end]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/File[puppet-dashboard-public.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/ssl]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/require: requires Anchor[pe_mcollective::begin]
debug: /Stage[main]/Pe_mcollective::Plugins/before: requires Anchor[pe_mcollective::end]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-public.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-private.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_compliance::Agent/require: requires Anchor[pe_compliance::begin]
debug: /Stage[main]/Pe_compliance::Agent/before: requires Anchor[pe_compliance::end]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetral.ddl]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/package.ddl]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/require: requires Anchor[pe_mcollective::begin]
debug: /Stage[main]/Pe_mcollective::Posix/before: requires Anchor[pe_mcollective::end]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/ssl/clients/mcollective-public.pem]/require: requires File[mcollective-public.pem]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/ssl/clients/mcollective-public.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/registration]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Posix/File[peadmin-public.pem]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/registration/meta.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/service.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Metadata/require: requires Anchor[pe_mcollective::begin]
debug: /Stage[main]/Pe_mcollective::Metadata/before: requires Anchor[pe_mcollective::end]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/aespe_security.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/package.rb]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/service.ddl]/notify: subscribes to Service[mcollective]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/util/actionpolicy.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/util]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-cert.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetral.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.ddl]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/ssl/clients]: Autorequiring File[/etc/puppetlabs/mcollective/ssl]
debug: /Stage[main]/Pe_mcollective::Posix/File[puppet-dashboard-public.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl/clients]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/security]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetral.ddl]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-private.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl]
debug: /Stage[main]/Pe_mcollective::Posix/File[mcollective-public.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/package.ddl]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/registration/meta.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/registration]
debug: /Stage[main]/Pe_mcollective::Posix/File[peadmin-public.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl/clients]
debug: /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/ssl/clients/mcollective-public.pem]: Autorequiring File[/etc/puppetlabs/mcollective/ssl/clients]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/service.ddl]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/package.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/aespe_security.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/security]
debug: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/service.rb]: Autorequiring File[/opt/puppet/libexec/mcollective/mcollective/agent]
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a host
debug: /Schedule[hourly]: Skipping device resources because running on a host
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson

err: /Stage[main]/Sys-status/File[/usr/local/bin/sys-status.rb]: Could not evaluate: Connection refused - connect(2) Could not retrieve file metadata for puppet://puppet/modules/sys-status/sys-status.rb: Connection refused - connect(2) at /etc/puppetlabs/puppet/modules/sys-status/manifests/init.pp:24

debug: /Schedule[never]: Skipping device resources because running on a host
debug: Prefetching crontab resources for cron
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: /Schedule[weekly]: Skipping device resources because running on a host
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Service[mcollective](provider=redhat): Executing '/sbin/service pe-mcollective status'
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig pe-mcollective'
debug: Finishing transaction 23551325678500
debug: Storing state
debug: Stored state in 0.07 seconds
notice: Finished catalog run in 2.53 seconds
debug: Value of 'preferred_serialization_format' (pson) is invalid for report, using default (b64_zlib_yaml)
debug: report supports formats: b64_zlib_yaml raw yaml; using b64_zlib_yaml

添加--server master.net.example.com不会改变此输出,并且该文件确实存在于服务器上。最后,我的puppet.conf文件确实指定了主服务器。

[ testuser@agent ] $ sudo cat /etc/puppetlabs/puppet/puppet.conf
[main]
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    modulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
    user = pe-puppet
    group = pe-puppet
    archive_files = true
    #archive_file_server = puppet
    archive_file_server = master.net.example.com
    pluginsync = true

[agent]
    certname = agent.dev.example.com
    #server = puppet
    server = master.net.example.com
    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true

最后一点:我熟悉 ssh 端口转发 ( -L)。如果有人可以指出代理端语法来指定主监听端口,我可以尝试一下。这将排除我是否在某处被过滤。

谢谢!

答案1

将文件资源源的 URL 从 puppet://puppet/modules/sys-status/sys-status.rb 更改为 puppet:///modules/sys-status/sys-status.rb。

它尝试从名为“puppet”的 puppet 服务器获取文件,但无法连接到该服务器。删除它将使它从连接的主机获取文件。

德国

相关内容