Having a difficult time compiling a catalog on puppetserver 2.4.0 (FOSS). I'm sure that gms 1.0.3 worked previously, because I upgraded to fix the minor permissions issue in 1.0.2.
A puppet run throws an error compiling the catalog containing gms:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/git_deploy_key: no such file to load -- puppet_x/gms/type at /etc/puppetlabs/code/environments/qa/site/profile/manifests/puppetmaster.pp:29:5 on node <puppetmaster>
The reference to line 29 is this block in the puppetmaster profile:
git_deploy_key { 'add_deploy_key_to_puppet_control':
provider => 'gitlab',
ensure => present,
name => "r10k-$::fqdn",
path => '/etc/puppetlabs/puppet/r10k-id_rsa.pub',
token => hiera('gitlab_api_token'),
project_name => 'puppet/control-repo',
server_url => 'http://gitlab.mycorp.com',
}
From looking at the puppetserver logs, it looks like the issue is the require line in gms/lib/puppet/type/git_deploy_key.rb
The top of the stacktrace points here
2016-07-07 10:27:26,907 ERROR [qtp803704776-67] [puppetserver] Puppet Could not autoload puppet/type/git_deploy_key: no such file to load -- puppet_x/gms/type
org/jruby/RubyKernel.java:1072:in `require'
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54:in `require'
/etc/puppetlabs/code/environments/lab/modules/gms/lib/puppet/type/git_deploy_key.rb:1:in `(root)'
...
Just in case I messed something up, I wiped gms from the modules directory and wiped r10k's cache (and redeploying the env), and also tried unpacking the module from a github-downloaded zip file into the modules directory. Same result.
It seems as if maybe there's a ruby search path issue here, but I'm not advanced enough yet to understand how to fix it.
Having a difficult time compiling a catalog on puppetserver 2.4.0 (FOSS). I'm sure that gms 1.0.3 worked previously, because I upgraded to fix the minor permissions issue in 1.0.2.
A puppet run throws an error compiling the catalog containing gms:
The reference to line 29 is this block in the puppetmaster profile:
From looking at the puppetserver logs, it looks like the issue is the require line in
gms/lib/puppet/type/git_deploy_key.rbThe top of the stacktrace points here
Just in case I messed something up, I wiped gms from the modules directory and wiped r10k's cache (and redeploying the env), and also tried unpacking the module from a github-downloaded zip file into the modules directory. Same result.
It seems as if maybe there's a ruby search path issue here, but I'm not advanced enough yet to understand how to fix it.