{"action":"created","issue":{"url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/71","labels_url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/71/comments","events_url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/71/events","html_url":"https://github.com/xaque208/puppet-pkgng/pull/71","id":124186703,"number":71,"title":"Added signature_type support","user":{"login":"YusDyr","id":6391416,"avatar_url":"https://avatars.githubusercontent.com/u/6391416?v=3","gravatar_id":"","url":"https://api.github.com/users/YusDyr","html_url":"https://github.com/YusDyr","followers_url":"https://api.github.com/users/YusDyr/followers","following_url":"https://api.github.com/users/YusDyr/following{/other_user}","gists_url":"https://api.github.com/users/YusDyr/gists{/gist_id}","starred_url":"https://api.github.com/users/YusDyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusDyr/subscriptions","organizations_url":"https://api.github.com/users/YusDyr/orgs","repos_url":"https://api.github.com/users/YusDyr/repos","events_url":"https://api.github.com/users/YusDyr/events{/privacy}","received_events_url":"https://api.github.com/users/YusDyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T09:33:06Z","updated_at":"2016-01-12T21:03:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xaque208/puppet-pkgng/pulls/71","html_url":"https://github.com/xaque208/puppet-pkgng/pull/71","diff_url":"https://github.com/xaque208/puppet-pkgng/pull/71.diff","patch_url":"https://github.com/xaque208/puppet-pkgng/pull/71.patch"},"body":"I added initial support of signature repository.\r\nI'm a newbie in ruby, so my code are far for ideal, I'm afraid, so check it before.\r\n\r\nUsage example:\r\n```\r\nclass repository {\r\n    if ($operatingsystem == \"FreeBSD\") {\r\n        if ($operatingsystemmajrelease * 1) == 10 {\r\n        pkgng::repo { 'smart':\r\n            packagehost => 'pkg.smartspb.net',\r\n            repopath => '/packages/101amd64',\r\n            protocol => \"http\",\r\n            mirror_type => \"http\",\r\n            pubkey => \"/usr/local/etc/pkg/repos/smart.cert\",\r\n            priority => 100 }\r\n        }\r\n        file {'smart.cert':\r\n                ensure  => file,\r\n                path    => '/usr/local/etc/pkg/repos/smart.cert',\r\n                owner   => root,\r\n                group   => wheel,\r\n                mode    => \"0644\",\r\n                source  => \"puppet:///files/others/pkg/smart.cert\",\r\n                purge   => true,\r\n        }\r\n    }\r\n}\r\n```\r\nResult:\r\n\r\n*cat /usr/local/etc/pkg/repos/smart.conf*\r\n```\r\n# File managed by Puppet\r\n\r\nsmart: {\r\n    url:                \"http://pkg.smartspb.net/packages/101amd64\",\r\n    mirror_type:        \"http\",\r\n    enabled:            \"yes\",\r\n    priority:           \"100\"\r\n    pubkey:             \"/usr/local/etc/pkg/repos/smart.cert\"\r\n    signature_type:     \"pubkey\"\r\n\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/comments/171053734","html_url":"https://github.com/xaque208/puppet-pkgng/pull/71#issuecomment-171053734","issue_url":"https://api.github.com/repos/xaque208/puppet-pkgng/issues/71","id":171053734,"user":{"login":"YusDyr","id":6391416,"avatar_url":"https://avatars.githubusercontent.com/u/6391416?v=3","gravatar_id":"","url":"https://api.github.com/users/YusDyr","html_url":"https://github.com/YusDyr","followers_url":"https://api.github.com/users/YusDyr/followers","following_url":"https://api.github.com/users/YusDyr/following{/other_user}","gists_url":"https://api.github.com/users/YusDyr/gists{/gist_id}","starred_url":"https://api.github.com/users/YusDyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YusDyr/subscriptions","organizations_url":"https://api.github.com/users/YusDyr/orgs","repos_url":"https://api.github.com/users/YusDyr/repos","events_url":"https://api.github.com/users/YusDyr/events{/privacy}","received_events_url":"https://api.github.com/users/YusDyr/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T21:03:43Z","updated_at":"2016-01-12T21:03:43Z","body":"OK, I've done it and even slightly more )\n\n12.01.2016 17:51, Zach Leslie пишет:\n>\n> Hi. Great, this looks fun. The tests are failing for ruby 1.9, but\n> I'll remove support later. Would you mind squashing those commits into\n> the first, and if its not too much trouble, changing the style on\n> those conditionals to be on their own line. The new line they add can\n> be removed with a |-%>| using the minus at the end of the closing\n> brace like that.\n>\n\n\n-- \nBest regards,\nDennis Yusupoff\n\n"}}