{"action":"created","issue":{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/183","repository_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix","labels_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/183/comments","events_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/183/events","html_url":"https://github.com/dj-wasabi/puppet-zabbix/issues/183","id":137550761,"number":183,"title":"Issues with RHEL7 repos configuration","user":{"login":"kuduka","id":3741533,"avatar_url":"https://avatars.githubusercontent.com/u/3741533?v=3","gravatar_id":"","url":"https://api.github.com/users/kuduka","html_url":"https://github.com/kuduka","followers_url":"https://api.github.com/users/kuduka/followers","following_url":"https://api.github.com/users/kuduka/following{/other_user}","gists_url":"https://api.github.com/users/kuduka/gists{/gist_id}","starred_url":"https://api.github.com/users/kuduka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuduka/subscriptions","organizations_url":"https://api.github.com/users/kuduka/orgs","repos_url":"https://api.github.com/users/kuduka/repos","events_url":"https://api.github.com/users/kuduka/events{/privacy}","received_events_url":"https://api.github.com/users/kuduka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-01T11:41:22Z","updated_at":"2016-03-05T07:20:10Z","closed_at":null,"body":"Hello,\r\n\r\nOn my RHEL7 releasever is set to 7Server:\r\n\r\n```\r\n# python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'\r\nLoaded plugins: langpacks, rhnplugin\r\nThis system is receiving updates from RHN Classic or Red Hat Satellite.\r\nRepository 'local' is missing name in configuration, using id\r\n{'arch': 'ia32e',\r\n 'basearch': 'x86_64',\r\n 'releasever': '7Server',\r\n 'uuid': '20a2ac23-07d1-4d8a-9ae9-7fd280a712e6'}\r\n```\r\n\r\nAnd Zabbix repo is configured as:\r\n```\r\n# grep base /etc/yum.repos.d/Zabbix_7_x86_64.repo\r\nbaseurl=http://repo.zabbix.com/zabbix/2.4/rhel/$releasever/$basearch/\r\n\r\n```\r\n\r\nBut that URL doesn't exist, just http://repo.zabbix.com/zabbix/2.4/rhel/7/ and yum is looking for http://repo.zabbix.com/zabbix/2.4/rhel/7Server/\r\n\r\nWorkaround that worked for me, but no idea if it will break something else:\r\n\r\n```\r\ndiff --git a/manifests/repo.pp b/manifests/repo.pp\r\nindex 4ae59f0..1f69f8d 100644\r\n--- a/manifests/repo.pp\r\n+++ b/manifests/repo.pp\r\n@@ -40,7 +40,7 @@ class zabbix::repo (\r\n         $reponame     = $majorrelease\r\n       }\r\n       default       : {\r\n-        $majorrelease = '$releasever'\r\n+        $majorrelease = $::operatingsystemmajrelease\r\n         $reponame     = $::operatingsystemmajrelease\r\n       }\r\n     }\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/comments/192601374","html_url":"https://github.com/dj-wasabi/puppet-zabbix/issues/183#issuecomment-192601374","issue_url":"https://api.github.com/repos/dj-wasabi/puppet-zabbix/issues/183","id":192601374,"user":{"login":"dj-wasabi","id":1171720,"avatar_url":"https://avatars.githubusercontent.com/u/1171720?v=3","gravatar_id":"","url":"https://api.github.com/users/dj-wasabi","html_url":"https://github.com/dj-wasabi","followers_url":"https://api.github.com/users/dj-wasabi/followers","following_url":"https://api.github.com/users/dj-wasabi/following{/other_user}","gists_url":"https://api.github.com/users/dj-wasabi/gists{/gist_id}","starred_url":"https://api.github.com/users/dj-wasabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj-wasabi/subscriptions","organizations_url":"https://api.github.com/users/dj-wasabi/orgs","repos_url":"https://api.github.com/users/dj-wasabi/repos","events_url":"https://api.github.com/users/dj-wasabi/events{/privacy}","received_events_url":"https://api.github.com/users/dj-wasabi/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T07:20:10Z","updated_at":"2016-03-05T07:20:10Z","body":"@ericsysmin Me too.\r\nThis weekend I try to release 2.2.0, so this fix will be in it."}}