{"action":"created","issue":{"url":"https://api.github.com/repos/abrader/abrader-gms/issues/33","repository_url":"https://api.github.com/repos/abrader/abrader-gms","labels_url":"https://api.github.com/repos/abrader/abrader-gms/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/abrader/abrader-gms/issues/33/comments","events_url":"https://api.github.com/repos/abrader/abrader-gms/issues/33/events","html_url":"https://github.com/abrader/abrader-gms/issues/33","id":164376515,"number":33,"title":"Compile error - no such file to load puppet_x/gms/type","user":{"login":"rjhornsby","id":5077610,"avatar_url":"https://avatars.githubusercontent.com/u/5077610?v=3","gravatar_id":"","url":"https://api.github.com/users/rjhornsby","html_url":"https://github.com/rjhornsby","followers_url":"https://api.github.com/users/rjhornsby/followers","following_url":"https://api.github.com/users/rjhornsby/following{/other_user}","gists_url":"https://api.github.com/users/rjhornsby/gists{/gist_id}","starred_url":"https://api.github.com/users/rjhornsby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjhornsby/subscriptions","organizations_url":"https://api.github.com/users/rjhornsby/orgs","repos_url":"https://api.github.com/users/rjhornsby/repos","events_url":"https://api.github.com/users/rjhornsby/events{/privacy}","received_events_url":"https://api.github.com/users/rjhornsby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-07T18:28:39Z","updated_at":"2016-10-25T16:59:18Z","closed_at":null,"body":"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.\r\n\r\nA puppet run throws an error compiling the catalog containing gms:\r\n```\r\nError: 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>\r\n```\r\n\r\nThe reference to line 29 is this block in the puppetmaster profile:\r\n```\r\n    git_deploy_key { 'add_deploy_key_to_puppet_control':\r\n      provider      => 'gitlab',\r\n      ensure        => present,\r\n      name          => \"r10k-$::fqdn\",\r\n      path          => '/etc/puppetlabs/puppet/r10k-id_rsa.pub',\r\n      token         => hiera('gitlab_api_token'),\r\n      project_name  => 'puppet/control-repo',\r\n      server_url    => 'http://gitlab.mycorp.com',\r\n    }\r\n```\r\nFrom looking at the puppetserver logs, it looks like the issue is the [require line](https://github.com/abrader/abrader-gms/blob/master/lib/puppet/type/git_deploy_key.rb#L1) in `gms/lib/puppet/type/git_deploy_key.rb`\r\n\r\nThe top of the stacktrace points here\r\n```\r\n2016-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\r\norg/jruby/RubyKernel.java:1072:in `require'\r\n/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'\r\n/etc/puppetlabs/code/environments/lab/modules/gms/lib/puppet/type/git_deploy_key.rb:1:in `(root)'\r\n...\r\n```\r\n\r\nJust 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.\r\n\r\nIt 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."},"comment":{"url":"https://api.github.com/repos/abrader/abrader-gms/issues/comments/256095456","html_url":"https://github.com/abrader/abrader-gms/issues/33#issuecomment-256095456","issue_url":"https://api.github.com/repos/abrader/abrader-gms/issues/33","id":256095456,"user":{"login":"abrader","id":9038,"avatar_url":"https://avatars.githubusercontent.com/u/9038?v=3","gravatar_id":"","url":"https://api.github.com/users/abrader","html_url":"https://github.com/abrader","followers_url":"https://api.github.com/users/abrader/followers","following_url":"https://api.github.com/users/abrader/following{/other_user}","gists_url":"https://api.github.com/users/abrader/gists{/gist_id}","starred_url":"https://api.github.com/users/abrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrader/subscriptions","organizations_url":"https://api.github.com/users/abrader/orgs","repos_url":"https://api.github.com/users/abrader/repos","events_url":"https://api.github.com/users/abrader/events{/privacy}","received_events_url":"https://api.github.com/users/abrader/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T16:59:17Z","updated_at":"2016-10-25T16:59:17Z","body":"@seefood @simmerz @rjhornsby All FOSS?  What version of Ruby?  Back from Puppetconf so I can take a look."}}
{"actor":{"display_login":"abrader"}}