Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attributes:
- file node['metricbeat']['config_file'] do
- content YAML::dump(node['metricbeat']['config_options'].to_hash)
- end
- recipe:
- default['metricbeat']['config_file'] = "/tmp/test.yml"
- default['metricbeat']['config_options']['name'] = node.name
- default['metricbeat']['config_options']['tags'] = node['roles']
- default['metricbeat']['config_options']['metricbeat.config.modules']['path'] = '${path.config}/modules.d/*.yml'
- default['metricbeat']['config_options']['metricbeat.config.modules']['reload.enabled'] = false
- default['metricbeat']['config_options']['output.elasticsearch']['hosts'] = ["metricsbeat:443"]
- default['metricbeat']['config_options']['output.elasticsearch']['protocol'] = 'https'
- default['metricbeat']['config_options']['output.elasticsearch']['username'] = 'username'
- default['metricbeat']['config_options']['output.elasticsearch']['password'] = 'password'
Advertisement
Add Comment
Please, Sign In to add comment