{"action":"opened","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/156","labels_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/156/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/delivery-cluster/issues/156/events","html_url":"https://github.com/opscode-cookbooks/delivery-cluster/issues/156","id":104502007,"number":156,"title":"Wrong uploading certs process for Chef-Server component","user":{"login":"afiune","id":5712253,"avatar_url":"https://avatars.githubusercontent.com/u/5712253?v=3","gravatar_id":"","url":"https://api.github.com/users/afiune","html_url":"https://github.com/afiune","followers_url":"https://api.github.com/users/afiune/followers","following_url":"https://api.github.com/users/afiune/following{/other_user}","gists_url":"https://api.github.com/users/afiune/gists{/gist_id}","starred_url":"https://api.github.com/users/afiune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afiune/subscriptions","organizations_url":"https://api.github.com/users/afiune/orgs","repos_url":"https://api.github.com/users/afiune/repos","events_url":"https://api.github.com/users/afiune/events{/privacy}","received_events_url":"https://api.github.com/users/afiune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T15:06:45Z","updated_at":"2015-09-02T15:06:45Z","closed_at":null,"body":"As a user I expect to upload the right certs to the right location to the `chef-server` component so I don't have to manually upload them.\r\n\r\n**Actual Status**\r\n\r\nCurrently we are uploading the files in the wrong location:\r\n```\r\nRecipe: delivery-cluster::setup_chef_server\r\n  * machine[chef-server-vagrant] action converge\r\n    - run vagrant up chef-server-vagrant (status was 'aborted')\r\n    - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt on chef-server-vagrant\r\n    - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.12.crt to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.12.crt on chef-server-vagrant\r\n```\r\n\r\n**Proposal Solution**\r\nUse the following snippet of code inside the chef-server `machine` resource:\r\n```\r\n      Dir.glob(\"#{Chef::Config[:trusted_certs_dir]}/*.{crt,pem}\").each do |cert_path|\r\n        file ::File.join('/etc/chef/trusted_certs', ::File.basename(cert_path)), cert_path\r\n      end\r\n```\r\n"}}