{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-puppet/issues/727","repository_url":"https://api.github.com/repos/sensu/sensu-puppet","labels_url":"https://api.github.com/repos/sensu/sensu-puppet/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-puppet/issues/727/comments","events_url":"https://api.github.com/repos/sensu/sensu-puppet/issues/727/events","html_url":"https://github.com/sensu/sensu-puppet/issues/727","id":241622489,"number":727,"title":"support for setting spawn limit via puppet","user":{"login":"cabecada","id":20220560,"avatar_url":"https://avatars1.githubusercontent.com/u/20220560?v=3","gravatar_id":"","url":"https://api.github.com/users/cabecada","html_url":"https://github.com/cabecada","followers_url":"https://api.github.com/users/cabecada/followers","following_url":"https://api.github.com/users/cabecada/following{/other_user}","gists_url":"https://api.github.com/users/cabecada/gists{/gist_id}","starred_url":"https://api.github.com/users/cabecada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cabecada/subscriptions","organizations_url":"https://api.github.com/users/cabecada/orgs","repos_url":"https://api.github.com/users/cabecada/repos","events_url":"https://api.github.com/users/cabecada/events{/privacy}","received_events_url":"https://api.github.com/users/cabecada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-10T07:27:03Z","updated_at":"2017-07-10T18:35:06Z","closed_at":null,"body":"we have hit the bottleneck of too many checks (JIT) from a single server leading to issues addressed by https://github.com/sensu/sensu/pull/1265. i know there are other workarounds to deal with this, but since this is public(?) config, i guess it should be configurable via  puppet.\r\n\r\nbut it seems this is not yet configurable via puppet.\r\nany plans to include this configurable option ?"},"comment":{"url":"https://api.github.com/repos/sensu/sensu-puppet/issues/comments/314195696","html_url":"https://github.com/sensu/sensu-puppet/issues/727#issuecomment-314195696","issue_url":"https://api.github.com/repos/sensu/sensu-puppet/issues/727","id":314195696,"user":{"login":"cabecada","id":20220560,"avatar_url":"https://avatars1.githubusercontent.com/u/20220560?v=3","gravatar_id":"","url":"https://api.github.com/users/cabecada","html_url":"https://github.com/cabecada","followers_url":"https://api.github.com/users/cabecada/followers","following_url":"https://api.github.com/users/cabecada/following{/other_user}","gists_url":"https://api.github.com/users/cabecada/gists{/gist_id}","starred_url":"https://api.github.com/users/cabecada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cabecada/subscriptions","organizations_url":"https://api.github.com/users/cabecada/orgs","repos_url":"https://api.github.com/users/cabecada/repos","events_url":"https://api.github.com/users/cabecada/events{/privacy}","received_events_url":"https://api.github.com/users/cabecada/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T18:35:06Z","updated_at":"2017-07-10T18:35:06Z","body":"This is what i tried but i guess this has to go via providers and types?\r\nthough hardcoded, but it can be parameterized.\r\n\r\n```\r\nclass profiles::sensu::spawn {\r\n\r\n  $config = {\r\n    \"sensu\" => {\r\n      \"spawn\" => {\r\n        \"limit\" => 20\r\n      }\r\n    }\r\n  }\r\n\r\n  file { \"/etc/sensu/conf.d/spawn.json\":\r\n    mode    => '0644',\r\n    owner   => 'sensu',\r\n    group   => 'sensu',\r\n    require => Package['sensu'],\r\n    content => inline_template(\r\n      '<%= require \"json\"; (JSON.pretty_generate @config) + $/ %>'\r\n    ),\r\n    notify  => Class['sensu::client::service']\r\n  }\r\n}\r\n\r\nNotice: /Stage[main]/Profiles::Sensu::Spawn/File[/etc/sensu/conf.d/spawn.json]/ensure: defined content as '{md5}8ee91eababa124edfe36cc58e637ed32'\r\nDebug: /Stage[main]/Profiles::Sensu::Spawn/File[/etc/sensu/conf.d/spawn.json]: The container Class[Profiles::Sensu::Spawn] will propagate my refresh event\r\nInfo: /Stage[main]/Profiles::Sensu::Spawn/File[/etc/sensu/conf.d/spawn.json]: Scheduling refresh of Class[Sensu::Client::Service]\r\n\r\nand the sensu-client.log\r\n{\"timestamp\":\"2017-07-10T10:11:57.986676+0000\",\"level\":\"warn\",\"message\":\"loading config file\",\"file\":\"/etc/sensu/conf.d/spawn.json\"}\r\n{\"timestamp\":\"2017-07-10T10:11:57.986712+0000\",\"level\":\"warn\",\"message\":\"config file applied changes\",\"file\":\"/etc/sensu/conf.d/spawn.json\",\"changes\":{\"sensu\":{\"spawn\":{\"limit\":[12,20]}}}}\r\n\r\n\r\n```"}}
{"actor":{"display_login":"cabecada"}}