कठपुतली "कनेक्शन से इनकार कर दिया"


0

मेरा कठपुतली एजेंट हो रहा है 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/modules/sys-status/sys-status.rb से कठपुतली: ///modules/sys-status/sys-status.rb।

यह इसे 'कठपुतली' नाम के एक कठपुतली सर्वर से प्राप्त करने की कोशिश करता है, जिसे यह कनेक्ट नहीं कर सकता है। इसे हटाने से यह उस मास्टर से फ़ाइल प्राप्त करेगा जो इसे कनेक्ट कर रहा है।

जर्मन


यही मुझे किसी और के कॉन्फ़िगरेशन को विरासत में मिला है। फिक्स्ड, और धन्यवाद!
dafydd
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.