Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Parameter source failed on File[yum.dir]: Cannot use relative URLs #88

Open
asstron0me opened this issue Dec 8, 2014 · 7 comments
Open

Comments

@asstron0me
Copy link

Prerequisites: two servers (master.example.com and agent.example.com) both Centos 6.5 x86_64 .

Master config:
/etc/puppet/modules
└─┬ example42-yum (v2.1.17)
└── example42-puppi (v2.1.10)
[root@master site.pp]# rpm -a -q|grep puppet
puppetlabs-release-6-11.noarch
puppet-3.7.1-1.el6.noarch
puppet-server-3.7.1-1.el6.noarch

site.pp:

node 'agent.example.com' {
class { 'yum': }
}

agent.example.com config:
[root@agent ~]# rpm -a -q|grep puppet
puppetlabs-release-6-11.noarch
puppet-3.7.3-1.el6.noarch

when I try to apply configuration at node 'agent.example.com', I recieve the following error:

Error: Failed to apply catalog: Parameter source failed on File[yum.dir]: Cannot use relative URLs '' at /etc/puppet/modules/yum/manifests/init.pp:290
Wrapped exception:
Cannot use relative URLs ''

listing of puppet agent -t -v --debug --trace is below

Debug: Using settings: adding file resource 'statedir': 'File[/var/lib/puppet/state]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"1755", :links=>:follow, :path=>"/var/lib/puppet/state"}'
Debug: Puppet::Type::User::ProviderPw: file pw does not exist
Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dsimport does not exist
Debug: Puppet::Type::User::ProviderUser_role_add: file roledel does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
Debug: Puppet::Type::Group::ProviderPw: file pw does not exist
Debug: Puppet::Type::Group::ProviderDirectoryservice: file /usr/bin/dscl does not exist
Debug: Failed to load library 'ldap' for feature 'ldap'
Debug: Puppet::Type::Group::ProviderLdap: feature ldap is missing
Debug: Using settings: adding file resource 'privatedir': 'File[/var/lib/puppet/ssl/private]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/ssl/private"}'
Debug: Using settings: adding file resource 'rundir': 'File[/var/run/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/run/puppet"}'
Debug: Using settings: adding file resource 'hostcrl': 'File[/var/lib/puppet/ssl/crl.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/crl.pem"}'
Debug: Using settings: adding file resource 'certdir': 'File[/var/lib/puppet/ssl/certs]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs"}'
Debug: Using settings: adding file resource 'clientyamldir': 'File[/var/lib/puppet/client_yaml]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/client_yaml"}'
Debug: Using settings: adding file resource 'logdir': 'File[/var/log/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/log/puppet"}'
Debug: Using settings: adding file resource 'hostprivkey': 'File[/var/lib/puppet/ssl/private_keys/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/ssl/private_keys/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'publickeydir': 'File[/var/lib/puppet/ssl/public_keys]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/public_keys"}'
Debug: Using settings: adding file resource 'plugindest': 'File[/var/lib/puppet/lib]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/lib"}'
Debug: Using settings: adding file resource 'classfile': 'File[/var/lib/puppet/classes.txt]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :owner=>"root", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/classes.txt"}'
Debug: Using settings: adding file resource 'lastrunreport': 'File[/var/lib/puppet/state/last_run_report.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/state/last_run_report.yaml"}'
Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :links=>:follow, :path=>"/var/lib/puppet"}'
Debug: Using settings: adding file resource 'clientbucketdir': 'File[/var/lib/puppet/clientbucket]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/clientbucket"}'
Debug: Using settings: adding file resource 'localcacert': 'File[/var/lib/puppet/ssl/certs/ca.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs/ca.pem"}'
Debug: Using settings: adding file resource 'privatekeydir': 'File[/var/lib/puppet/ssl/private_keys]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/ssl/private_keys"}'
Debug: Using settings: adding file resource 'pluginfactdest': 'File[/var/lib/puppet/facts.d]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/facts.d"}'
Debug: Using settings: adding file resource 'graphdir': 'File[/var/lib/puppet/state/graphs]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/state/graphs"}'
Debug: Using settings: adding file resource 'statefile': 'File[/var/lib/puppet/state/state.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"660", :links=>:follow, :path=>"/var/lib/puppet/state/state.yaml"}'
Debug: Using settings: adding file resource 'hostcert': 'File[/var/lib/puppet/ssl/certs/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'ssldir': 'File[/var/lib/puppet/ssl]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"771", :links=>:follow, :path=>"/var/lib/puppet/ssl"}'
Debug: Using settings: adding file resource 'client_datadir': 'File[/var/lib/puppet/client_data]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/client_data"}'
Debug: Using settings: adding file resource 'lastrunfile': 'File[/var/lib/puppet/state/last_run_summary.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/state/last_run_summary.yaml"}'
Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/etc/puppet"}'
Debug: Using settings: adding file resource 'hostpubkey': 'File[/var/lib/puppet/ssl/public_keys/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/public_keys/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'requestdir': 'File[/var/lib/puppet/ssl/certificate_requests]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/certificate_requests"}'
Debug: Using settings: adding file resource 'resourcefile': 'File[/var/lib/puppet/state/resources.txt]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :owner=>"root", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/state/resources.txt"}'
Debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring File[/var/lib/puppet/state]
Debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring File[/var/lib/puppet/state]
Debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring File[/var/lib/puppet/state]
Debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state]
Debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/client_data]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/private_keys/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys]
Debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
Debug: /File[/var/lib/puppet/classes.txt]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/public_keys/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys]
Debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl/certs/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
Debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state]
Debug: /File[/var/lib/puppet/facts.d]: Autorequiring File[/var/lib/puppet]
Debug: Finishing transaction 70263140934660
Debug: Runtime environment: run_mode=agent, ruby_version=1.8.7, puppet_version=3.7.3
Debug: Using settings: adding file resource 'statedir': 'File[/var/lib/puppet/state]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"1755", :links=>:follow, :path=>"/var/lib/puppet/state"}'
Debug: Using settings: adding file resource 'privatedir': 'File[/var/lib/puppet/ssl/private]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/ssl/private"}'
Debug: Using settings: adding file resource 'rundir': 'File[/var/run/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/run/puppet"}'
Debug: Using settings: adding file resource 'hostcrl': 'File[/var/lib/puppet/ssl/crl.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/crl.pem"}'
Debug: Using settings: adding file resource 'certdir': 'File[/var/lib/puppet/ssl/certs]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs"}'
Debug: Using settings: adding file resource 'logdir': 'File[/var/log/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/log/puppet"}'
Debug: Using settings: adding file resource 'hostprivkey': 'File[/var/lib/puppet/ssl/private_keys/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/ssl/private_keys/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'publickeydir': 'File[/var/lib/puppet/ssl/public_keys]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/public_keys"}'
Debug: Using settings: adding file resource 'plugindest': 'File[/var/lib/puppet/lib]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/lib"}'
Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :links=>:follow, :path=>"/var/lib/puppet"}'
Debug: Using settings: adding file resource 'localcacert': 'File[/var/lib/puppet/ssl/certs/ca.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs/ca.pem"}'
Debug: Using settings: adding file resource 'privatekeydir': 'File[/var/lib/puppet/ssl/private_keys]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/ssl/private_keys"}'
Debug: Using settings: adding file resource 'pluginfactdest': 'File[/var/lib/puppet/facts.d]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/facts.d"}'
Debug: Using settings: adding file resource 'hostcert': 'File[/var/lib/puppet/ssl/certs/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/certs/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'ssldir': 'File[/var/lib/puppet/ssl]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"771", :links=>:follow, :path=>"/var/lib/puppet/ssl"}'
Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/etc/puppet"}'
Debug: Using settings: adding file resource 'hostpubkey': 'File[/var/lib/puppet/ssl/public_keys/agent.example.com.pem]{:backup=>false, :group=>"puppet", :ensure=>:file, :loglevel=>:debug, :owner=>"puppet", :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/ssl/public_keys/agent.example.com.pem"}'
Debug: Using settings: adding file resource 'requestdir': 'File[/var/lib/puppet/ssl/certificate_requests]{:backup=>false, :group=>"puppet", :ensure=>:directory, :loglevel=>:debug, :owner=>"puppet", :mode=>"755", :links=>:follow, :path=>"/var/lib/puppet/ssl/certificate_requests"}'
Debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
Debug: /File[/var/lib/puppet/ssl/private_keys/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys]
Debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/certs/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
Debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl/public_keys/agent.example.com.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys]
Debug: /File[/var/lib/puppet/facts.d]: Autorequiring File[/var/lib/puppet]
Debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl]
Debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
Debug: Finishing transaction 70263141073420
Debug: Using cached certificate for ca
Debug: Using cached certificate for agent.example.com
Debug: Using settings: adding file resource 'clientyamldir': 'File[/var/lib/puppet/client_yaml]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/client_yaml"}'
Debug: Using settings: adding file resource 'classfile': 'File[/var/lib/puppet/classes.txt]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :owner=>"root", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/classes.txt"}'
Debug: Using settings: adding file resource 'lastrunreport': 'File[/var/lib/puppet/state/last_run_report.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/state/last_run_report.yaml"}'
Debug: Using settings: adding file resource 'clientbucketdir': 'File[/var/lib/puppet/clientbucket]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/clientbucket"}'
Debug: Using settings: adding file resource 'graphdir': 'File[/var/lib/puppet/state/graphs]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :path=>"/var/lib/puppet/state/graphs"}'
Debug: Using settings: adding file resource 'statefile': 'File[/var/lib/puppet/state/state.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"660", :links=>:follow, :path=>"/var/lib/puppet/state/state.yaml"}'
Debug: Using settings: adding file resource 'client_datadir': 'File[/var/lib/puppet/client_data]{:backup=>false, :ensure=>:directory, :loglevel=>:debug, :mode=>"750", :links=>:follow, :path=>"/var/lib/puppet/client_data"}'
Debug: Using settings: adding file resource 'lastrunfile': 'File[/var/lib/puppet/state/last_run_summary.yaml]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :mode=>"644", :links=>:follow, :path=>"/var/lib/puppet/state/last_run_summary.yaml"}'
Debug: Using settings: adding file resource 'resourcefile': 'File[/var/lib/puppet/state/resources.txt]{:backup=>false, :ensure=>:file, :loglevel=>:debug, :owner=>"root", :mode=>"640", :links=>:follow, :path=>"/var/lib/puppet/state/resources.txt"}'
Debug: Finishing transaction 70263140521380
Debug: Loaded state in 0.00 seconds
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson yaml b64_zlib_yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for agent.example.com
Debug: Creating new connection for https://master.example.com:8140
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for https://master.example.com:8140
Debug: Caching connection for https://master.example.com:8140
Info: Retrieving pluginfacts
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 b64_zlib_yaml raw
Debug: Using cached connection for https://master.example.com:8140
Debug: Caching connection for https://master.example.com:8140
Debug: Finishing transaction 70263153281860
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 b64_zlib_yaml raw
Debug: Using cached connection for https://master.example.com:8140
Debug: Caching connection for https://master.example.com:8140
Debug: Finishing transaction 70263152793860
Debug: Loading external facts from /var/lib/puppet/facts.d
Info: Loading facts
Debug: Loading facts from /var/lib/puppet/lib/facter/windows_common_appdata.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/iptables_version.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/concat_basedir.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/puppet_vardir.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/facter_dot_d.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/puppi_projects.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/pe_version.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/last_run.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/ip6tables_version.rb
Debug: Loading facts from /var/lib/puppet/lib/facter/root_home.rb
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: catalog supports formats: pson dot yaml b64_zlib_yaml raw
Debug: Using cached connection for https://master.example.com:8140
Debug: Caching connection for https://master.example.com:8140
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm --version'
Debug: Executing '/bin/rpm -ql rpm'
Info: Caching catalog for agent.example.com
Debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does not exist
Debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist
Debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does not exist
Debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not exist
Debug: Puppet::Type::Package::ProviderAix: file /usr/sbin/installp does not exist
Debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist
Debug: Puppet::Type::Package::ProviderPorts: file /usr/local/sbin/portupgrade does not exist
Debug: Puppet::Type::Package::ProviderPortupgrade: file /usr/local/sbin/portinstall does not exist
Debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist
Debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist
Debug: Puppet::Type::Package::ProviderAptrpm: file apt-get does not exist
Debug: Puppet::Type::Package::ProviderAptitude: file /usr/bin/aptitude does not exist
Debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_add does not exist
Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist
Debug: Puppet::Type::Package::ProviderApt: file /usr/bin/apt-get does not exist
Debug: Puppet::Type::Package::ProviderSun: file /usr/sbin/pkgadd does not exist
Debug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist
Debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does not exist
Debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox does not exist
Debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist
Debug: Puppet::Type::Package::ProviderOpkg: file opkg does not exist
Debug: Puppet::Type::Package::ProviderDpkg: file /usr/bin/dpkg does not exist
Debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_add does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svstat 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::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Error: Failed to apply catalog: Parameter source failed on File[yum.dir]: Cannot use relative URLs '' at /etc/puppet/modules/yum/manifests/init.pp:290
/usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:104:in fail' /usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:64:inunsafe_validate'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:55:in each' /usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:55:inunsafe_validate'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:465:in validate' /usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:500:invalue='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:654:in []=' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2272:inset_parameters'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2266:in each' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2266:inset_parameters'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2222:in initialize' /usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:481:ininitialize'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:in new' /usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:into_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:512:in to_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:ineach'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:in to_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:407:into_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:76:in convert_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:71:inretrieve_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:104:in prepare_and_retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:203:inrun_internal'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in run' /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:inlock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:inwith_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:inrun_in_fork'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in controlled_run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in onetime' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:inrun_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:inplugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:inexit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8 Wrapped exception: Cannot use relative URLs '' /usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:104:infail'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:64:in unsafe_validate' /usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:55:ineach'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file/source.rb:55:in unsafe_validate' /usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:465:invalidate'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:500:in value=' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:654:in[]='
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2272:in set_parameters' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2266:ineach'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2266:in set_parameters' /usr/lib/ruby/site_ruby/1.8/puppet/type.rb:2222:ininitialize'
/usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:481:in initialize' /usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:innew'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:348:in to_ral' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:512:into_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:in each' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:504:into_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:407:in to_ral' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:76:inconvert_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:71:in retrieve_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:104:inprepare_and_retrieve_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:203:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute'
/usr/bin/puppet:8
Debug: Using cached connection for https://master.example.com:8140
Debug: Caching connection for https://master.example.com:8140
Debug: Closing connection for https://master.example.com:8140

@asstron0me
Copy link
Author

when I use following config, it works ok:
class { 'yum':
source_repo_dir => 'puppet:///files/yum/',
source_dir => 'puppet:///files/yum/',
}

alvagante added a commit that referenced this issue Dec 9, 2014
@alvagante
Copy link
Member

Are you using the future parser?
Anyway the linked commit should fix it, let me know.

@asstron0me
Copy link
Author

yes, I use future parser.

Applied fix, the same result.

I removed module completely and uploaded master branch from here. The same(except for the line number, because master differs from stable) result:

Error: Failed to apply catalog: Parameter source failed on File[yum.repo_dir]: Cannot use relative URLs '' at /etc/puppet/modules/yum/manifests/init.pp:264

/etc/puppet/modules/yum/manifests/init.pp:264
264 file { 'yum.repo_dir':
265 ensure => directory,
266 path => $yum::repo_dir,
267 source => $yum::source_repo_dir,
268 recurse => true,
269 purge => $yum::bool_clean_repos,
270 replace => $yum::manage_file_replace,
271 audit => $yum::manage_audit,
272 }

/etc/puppet/modules/yum/manifests/params.pp:63
63 $cron_email_host = 'localhost'
64
65 $source = ''
66 $source_dir = undef
67 $source_dir_purge = false

@alvagante
Copy link
Member

Have to verify this better, then. Just out of curiosity, does the module work correctly with the "old" parser?

@shellfu
Copy link

shellfu commented Jan 7, 2015

Ill test old, and future parser this weekend, and post the result. Im not quite to this module yet, but im getting there as time allows.

@asstron0me
Copy link
Author

tested on same env with old parser, works correctly

@sustacek
Copy link

I've also hit similar issue like this one, with future parser enabled. I was for file { 'yum.repo_dir': and file { 'yum.dir':. It was complaining that source parameter of these classes cannot be ''.

Since I want to stick to future parser, what helped me get around the issue was settings the source_repo_dir and source_dir to point to empty dir inside the module files. By default, these variables are undef:

class { 'yum':
        source_repo_dir => 'puppet:///modules/yum/empty',
        clean_repos => false,
        source_dir => 'puppet:///modules/yum/empty',
        source_dir_purge => false,
    }

I believe clean_repos and source_dir_purge are false by default, but I wanted to state that explicitly, so that no existing repo files won't be removed from /etc/yum.repos.d.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants