{"action":"created","issue":{"url":"https://api.github.com/repos/saz/puppet-ssh/issues/167","repository_url":"https://api.github.com/repos/saz/puppet-ssh","labels_url":"https://api.github.com/repos/saz/puppet-ssh/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/saz/puppet-ssh/issues/167/comments","events_url":"https://api.github.com/repos/saz/puppet-ssh/issues/167/events","html_url":"https://github.com/saz/puppet-ssh/issues/167","id":132513347,"number":167,"title":"Server configuration is suffixed with `[]`","user":{"login":"joshuaspence","id":234676,"avatar_url":"https://avatars.githubusercontent.com/u/234676?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaspence","html_url":"https://github.com/joshuaspence","followers_url":"https://api.github.com/users/joshuaspence/followers","following_url":"https://api.github.com/users/joshuaspence/following{/other_user}","gists_url":"https://api.github.com/users/joshuaspence/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaspence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaspence/subscriptions","organizations_url":"https://api.github.com/users/joshuaspence/orgs","repos_url":"https://api.github.com/users/joshuaspence/repos","events_url":"https://api.github.com/users/joshuaspence/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaspence/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-02-09T19:43:12Z","updated_at":"2016-08-26T13:19:58Z","closed_at":"2016-08-26T13:19:58Z","body":"I am using puppet 4.3.2 with Ruby 2.1.8 and the latest version (2.8.1) of the SSH module.With the following puppet manifest, I end up with an invalid `/etc/ssh/sshd_config` file:\r\n\r\n```\r\nclass { 'ssh':\r\n  server_options      => {\r\n    PasswordAuthentication => 'no',\r\n    PermitEmptyPasswords   => 'no',\r\n    PermitRootLogin        => 'no',\r\n    PubkeyAuthentication   => 'yes',\r\n  },\r\n  client_options       => {},\r\n  version              => 'latest',\r\n  storeconfigs_enabled => false,\r\n}\r\n```\r\n\r\nThe resulting `sshd` configuration is:\r\n\r\n```\r\n# File is managed by Puppet\r\n\r\nAcceptEnv LANG LC_*\r\nChallengeResponseAuthentication no\r\nPasswordauthentication[] no\r\nPermitemptypasswords[] no\r\nPermitrootlogin[] no\r\nPrintMotd no\r\nPubkeyauthentication[] yes\r\nSubsystem sftp /usr/lib/openssh/sftp-server\r\nUsePAM yes\r\nX11Forwarding yes\r\n```\r\n\r\nThis configuration is valid (notice the trailing `[]`) and, as such, the `sshd` service fails to start."},"comment":{"url":"https://api.github.com/repos/saz/puppet-ssh/issues/comments/242733100","html_url":"https://github.com/saz/puppet-ssh/issues/167#issuecomment-242733100","issue_url":"https://api.github.com/repos/saz/puppet-ssh/issues/167","id":242733100,"user":{"login":"saz","id":402629,"avatar_url":"https://avatars.githubusercontent.com/u/402629?v=3","gravatar_id":"","url":"https://api.github.com/users/saz","html_url":"https://github.com/saz","followers_url":"https://api.github.com/users/saz/followers","following_url":"https://api.github.com/users/saz/following{/other_user}","gists_url":"https://api.github.com/users/saz/gists{/gist_id}","starred_url":"https://api.github.com/users/saz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saz/subscriptions","organizations_url":"https://api.github.com/users/saz/orgs","repos_url":"https://api.github.com/users/saz/repos","events_url":"https://api.github.com/users/saz/events{/privacy}","received_events_url":"https://api.github.com/users/saz/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T13:19:57Z","updated_at":"2016-08-26T13:19:57Z","body":"This should be fixed in the current master"}}
{"actor":{"display_login":"saz"}}