{"action":"created","issue":{"url":"https://api.github.com/repos/adamsb6/s3_file/issues/81","repository_url":"https://api.github.com/repos/adamsb6/s3_file","labels_url":"https://api.github.com/repos/adamsb6/s3_file/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/adamsb6/s3_file/issues/81/comments","events_url":"https://api.github.com/repos/adamsb6/s3_file/issues/81/events","html_url":"https://github.com/adamsb6/s3_file/issues/81","id":157732251,"number":81,"title":"Vendor chef_gem(s)","user":{"login":"Jakauppila","id":4100127,"avatar_url":"https://avatars.githubusercontent.com/u/4100127?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakauppila","html_url":"https://github.com/Jakauppila","followers_url":"https://api.github.com/users/Jakauppila/followers","following_url":"https://api.github.com/users/Jakauppila/following{/other_user}","gists_url":"https://api.github.com/users/Jakauppila/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakauppila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakauppila/subscriptions","organizations_url":"https://api.github.com/users/Jakauppila/orgs","repos_url":"https://api.github.com/users/Jakauppila/repos","events_url":"https://api.github.com/users/Jakauppila/events{/privacy}","received_events_url":"https://api.github.com/users/Jakauppila/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-31T17:56:40Z","updated_at":"2016-05-31T21:46:00Z","closed_at":null,"body":"I'm currently using s3_file 2.7.0 with OpsWorks on a Windows stack (Chef v12.2). Our instances do not have direct internet access which means they fail with the chef_gem dependencies. (The error below is simply our proxy intercepting to display an error).\r\n\r\nIs there a way to vendor the dependency with the cookbook so we do not require external internet access to pull them down?\r\n\r\n\r\n```\r\n[2016-05-31T12:31:09-05:00] WARN:  failed to find gem mime-types (= 2.6.2) from [https://rubygems.org/]\r\n\r\n      ================================================================================\r\n      Error executing action `install` on resource 'chef_gem[mime-types]'\r\n      ================================================================================\r\n\r\n      Mixlib::ShellOut::ShellCommandFailed\r\n      ------------------------------------\r\n      Expected process to exit with [0], but received '2'\r\n      ---- Begin output of C:/opscode/chef/embedded/bin/gem install mime-types -q --no-rdoc --no-ri -v \"2.6.2\" ----\r\n      STDOUT:\r\n      STDERR: ERROR:  Could not find a valid gem 'mime-types' (= 2.6.2), here is why:\r\n                Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)\r\n      ---- End output of C:/opscode/chef/embedded/bin/gem install mime-types -q --no-rdoc --no-ri -v \"2.6.2\" ----\r\n      Ran C:/opscode/chef/embedded/bin/gem install mime-types -q --no-rdoc --no-ri -v \"2.6.2\" returned 2\r\n\r\n      Resource Declaration:\r\n      ---------------------\r\n      # In C:/local-mode-cache/cache/cookbooks/s3_file/recipes/dependencies.rb\r\n\r\n        1: chef_gem 'mime-types' do\r\n        2:   version node['s3_file']['mime-types']['version']\r\n        3:   action :install\r\n        4:   compile_time true if Chef::Resource::ChefGem.method_defined?(:compile_time)\r\n        5: end\r\n        6:\r\n\r\n      Compiled Resource:\r\n      ------------------\r\n      # Declared in C:/local-mode-cache/cache/cookbooks/s3_file/recipes/dependencies.rb:1:in `from_file'\r\n\r\n      chef_gem(\"mime-types\") do\r\n        action [:install]\r\n        retries 0\r\n        retry_delay 2\r\n        default_guard_interpreter :default\r\n        package_name \"mime-types\"\r\n        version \"2.6.2\"\r\n        timeout 900\r\n        compile_time true\r\n        gem_binary \"C:/opscode/chef/embedded/bin/gem\"\r\n        declared_type :chef_gem\r\n        cookbook_name \"s3_file\"\r\n        recipe_name \"dependencies\"\r\n      end\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/adamsb6/s3_file/issues/comments/222831187","html_url":"https://github.com/adamsb6/s3_file/issues/81#issuecomment-222831187","issue_url":"https://api.github.com/repos/adamsb6/s3_file/issues/81","id":222831187,"user":{"login":"Jakauppila","id":4100127,"avatar_url":"https://avatars.githubusercontent.com/u/4100127?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakauppila","html_url":"https://github.com/Jakauppila","followers_url":"https://api.github.com/users/Jakauppila/followers","following_url":"https://api.github.com/users/Jakauppila/following{/other_user}","gists_url":"https://api.github.com/users/Jakauppila/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakauppila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakauppila/subscriptions","organizations_url":"https://api.github.com/users/Jakauppila/orgs","repos_url":"https://api.github.com/users/Jakauppila/repos","events_url":"https://api.github.com/users/Jakauppila/events{/privacy}","received_events_url":"https://api.github.com/users/Jakauppila/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T21:46:00Z","updated_at":"2016-05-31T21:46:00Z","body":"Is that an option on Windows? I'll have to check, but I believe I am getting the same error on fresh instances."}}
{"actor":{"display_login":"Jakauppila"}}