class Vpsb::Resources::MonitRoleJson
Public Instance Methods
call(data)
click to toggle source
# File lib/vpsb/resources/monit_role_json.rb, line 6 def call(data) template(data) end
Private Instance Methods
template(data)
click to toggle source
# File lib/vpsb/resources/monit_role_json.rb, line 12 def template(data) { name: "monit", description: "Monit Server Role", chef_type: "role", json_class: "Chef::Role", default_attributes: { new_relic:{ license_key: data.get(:newrelic_lic), hostname: data.get(:hostname), keyserver:"keyserver.ubuntu.com" } }, run_list: [ "recipe[apt]", "recipe[newrelic-sysmond]" ] } end