{"action":"closed","issue":{"url":"https://api.github.com/repos/cargomedia/puppet-packages/issues/884","labels_url":"https://api.github.com/repos/cargomedia/puppet-packages/issues/884/labels{/name}","comments_url":"https://api.github.com/repos/cargomedia/puppet-packages/issues/884/comments","events_url":"https://api.github.com/repos/cargomedia/puppet-packages/issues/884/events","html_url":"https://github.com/cargomedia/puppet-packages/issues/884","id":68944626,"number":884,"title":"Bug in nginx vhost_autogen.conf file generation","user":{"login":"ppp0","id":1888714,"avatar_url":"https://avatars.githubusercontent.com/u/1888714?v=3","gravatar_id":"","url":"https://api.github.com/users/ppp0","html_url":"https://github.com/ppp0","followers_url":"https://api.github.com/users/ppp0/followers","following_url":"https://api.github.com/users/ppp0/following{/other_user}","gists_url":"https://api.github.com/users/ppp0/gists{/gist_id}","starred_url":"https://api.github.com/users/ppp0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppp0/subscriptions","organizations_url":"https://api.github.com/users/ppp0/orgs","repos_url":"https://api.github.com/users/ppp0/repos","events_url":"https://api.github.com/users/ppp0/events{/privacy}","received_events_url":"https://api.github.com/users/ppp0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cargomedia/puppet-packages/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T15:10:09Z","updated_at":"2015-11-01T15:21:40Z","closed_at":"2015-11-01T15:21:40Z","body":"Either in module `cm` or `nginx` there is a bug which does not allow for inclusion of SSL certificates for more than one vhost\r\n\r\nTo reproduce:\r\n\r\nThis works:\r\n```pp\r\n  Cm::Vhost {\r\n    path       => '/home/vagrant/foo',\r\n    debug      => true,\r\n  }\r\n\r\n  cm::vhost { 'www.foo.dev':\r\n    aliases    => ['foo.dev', 'admin.foo.dev'],\r\n    cdn_origin => 'origin-www.foo.dev',\r\n  }\r\n\r\n  cm::vhost { 'www.bar.dev':\r\n    aliases => ['bar.dev'],\r\n  }\r\n```\r\n\r\nThis does not:\r\n\r\n```pp\r\n  Cm::Vhost {\r\n    path       => '/home/vagrant/foo',\r\n    ssl_key => file('/home/vagrant/foo/puppet/templates/ssl/server.key'),\r\n    ssl_cert => file('/home/vagrant/foo/puppet/templates/ssl/server.pem')\r\n    debug      => true,\r\n  }\r\n\r\n  cm::vhost { 'www.foo.dev':\r\n    aliases    => ['foo.dev', 'admin.foo.dev'],\r\n    cdn_origin => 'origin-www.foo.dev',\r\n  }\r\n\r\n  cm::vhost { 'www.bar.dev':\r\n    aliases => ['bar.dev'],\r\n  }\r\n```"}}