forked from bruce/puppet-vcsrepo
-
Notifications
You must be signed in to change notification settings - Fork 286
Closed
Description
Describe the Bug
vcsrepo has begun to fail for me with Could not autoload puppet/type/vcsrepo: Could not autoload puppet/provider/vcsrepo/cvs. For example:
Failed on pe-server-205802-0.us-west1-a.c.customer-support-scratchpad.internal:
The task failed with exit code 1 and no stdout, but stderr contained:
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:78:in `load': Could not autoload puppet/type/vcsrepo: Could not autoload puppet/provider/vcsrepo/cvs: /tmp/d20230525-31962-bugb9w/modules/vcsrepo/lib/puppet/provider/vcsrepo/cvs.rb:77: syntax error, unexpected ']' (Puppet::Error)
@rev = contents[1..]
^
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:78:in `load_file'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:93:in `block in loadall'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:91:in `each'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:91:in `loadall'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:196:in `loadall'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:126:in `block in newtype'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/concurrent/lock.rb:10:in `synchronize'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:73:in `newtype'
from /tmp/d20230525-31962-bugb9w/modules/vcsrepo/lib/puppet/type/vcsrepo.rb:6:in `<top (required)>'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:78:in `load'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:78:in `load_file'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/autoload.rb:182:in `load'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:171:in `block in type'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/concurrent/lock.rb:10:in `synchronize'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/metatype/manager.rb:154:in `type'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:401:in `resource_type'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:389:in `resource_type'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:273:in `initialize'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:584:in `new'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource.rb:584:in `copy_as_resource'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:619:in `block in to_catalog'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:615:in `each'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:615:in `to_catalog'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:508:in `to_ral'
from /tmp/dd4de6a2-a836-4b10-98c0-6515b5b69c73/apply_catalog.rb:101:in `block in <main>'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:62:in `override'
from /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:297:in `override'
from /tmp/dd4de6a2-a836-4b10-98c0-6515b5b69c73/apply_catalog.rb:93:in `<main>'Expected Behavior
It should successfully clone my repo. Code snippet is as follows:
vcsrepo { "${userhome}/${repo}":
ensure => latest,
provider => git,
source => $repository_url,
revision => $branch,
require => Class['bigbird::profile::utilities::github::private_key'],
}Where
$userhomeis/rooton linux$repository_urlis the full URL, e.g.,git@github.com.../myrepo.git$repois just the name, e.g.,myrepoClass['bigbird::profile::utilities::github::private_key']is some code that sets up my github ssh config
Steps to Reproduce
Steps to reproduce the behavior: See above
Environment
- RHEL 8
mod 'puppetlabs/vcsrepo', '6.0.1'
Additional Context
- I'm running the above code as a plan on my Mac setting my
--targetsequal to the remote RHEL8 server
Metadata
Metadata
Assignees
Labels
No labels