Changed mon to monasca everywhere
Changed mon-thresh to monasca-thresh Changed mon_thresh to monasca_thresh in databags Put config file in /etc/monasca Change to use the monasca-thresh deb This will not work without corresponding changes to monasca-vagrant Change-Id: I3ea41c982f9fa522c777f3832198deac8cba9655
This commit is contained in:
parent
921642edb8
commit
4adbd6cd57
2
.gitignore
vendored
Executable file
2
.gitignore
vendored
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
.bundle
|
||||||
|
.cookbooks
|
10
README.md
10
README.md
@ -1,6 +1,6 @@
|
|||||||
mon_thresh Cookbook
|
monasca_thresh Cookbook
|
||||||
===================
|
===================
|
||||||
This cookbook sets up a mon-thresh which runs under storm. It is assumed this cookbook is installed on the storm nimbus node.
|
This cookbook sets up a monasca-thresh which runs under storm. It is assumed this cookbook is installed on the storm nimbus node.
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
@ -16,16 +16,16 @@ Attributes
|
|||||||
<th>Default</th>
|
<th>Default</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><tt>[:mon_thresh][:data_bag]</tt></td>
|
<td><tt>[:monasca_thresh][:data_bag]</tt></td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td>Data bag to use</td>
|
<td>Data bag to use</td>
|
||||||
<td><tt>mon_thresh</tt></td>
|
<td><tt>monasca_thresh</tt></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
Data Bags
|
Data Bags
|
||||||
---------
|
---------
|
||||||
The node[:mon_thresh][:data_bag] data bag is used for all items.
|
The node[:monasca_thresh][:data_bag] data bag is used for all items.
|
||||||
|
|
||||||
The following data bag items are used:
|
The following data bag items are used:
|
||||||
- thresh - Holds basic configuration details of the threshold engine
|
- thresh - Holds basic configuration details of the threshold engine
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
#
|
#
|
||||||
default[:mon_thresh][:data_bag] = 'mon_thresh'
|
default[:monasca_thresh][:data_bag] = 'monasca_thresh'
|
||||||
|
10
metadata.rb
10
metadata.rb
@ -1,9 +1,9 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
#
|
#
|
||||||
name 'mon_thresh'
|
name 'monasca_thresh'
|
||||||
maintainer 'Monitoring Team'
|
maintainer 'Monasca Team'
|
||||||
maintainer_email 'hpcs-mon@hp.com'
|
maintainer_email 'monasca@lists.launchpad.net'
|
||||||
license 'All rights reserved'
|
license 'All rights reserved'
|
||||||
description 'Installs/Configures mon_thresh'
|
description 'Installs/Configures monasca_thresh'
|
||||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||||
version '0.2.0'
|
version '0.2.1'
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
#
|
#
|
||||||
# The user/group thresh are created by the package, as well as /etc/mon/
|
# The user/group thresh are created by the package, as well as /etc/monasca/
|
||||||
package 'mon-thresh' do # The package depends on openjdk-7-jre-headless
|
package 'monasca-thresh' do # The package depends on openjdk-7-jre-headless
|
||||||
action :upgrade
|
action :upgrade
|
||||||
end
|
end
|
||||||
|
|
||||||
service 'mon-thresh' do
|
service 'monasca-thresh' do
|
||||||
action :enable
|
action :enable
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: an encrypted credentials data bag
|
# TODO: an encrypted credentials data bag
|
||||||
credentials = { 'mysql' => { 'user' => 'thresh', 'password' => 'password' } }
|
credentials = { 'mysql' => { 'user' => 'thresh', 'password' => 'password' } }
|
||||||
settings = data_bag_item(node[:mon_thresh][:data_bag], 'mon_thresh')
|
settings = data_bag_item(node[:monasca_thresh][:data_bag], 'monasca_thresh')
|
||||||
|
|
||||||
template '/etc/mon/mon-thresh-config.yml' do
|
template '/etc/monasca/thresh-config.yml' do
|
||||||
action :create
|
action :create
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'thresh'
|
group 'thresh'
|
||||||
mode '640'
|
mode '640'
|
||||||
source 'mon-thresh-config.yml.erb'
|
source 'thresh-config.yml.erb'
|
||||||
variables(
|
variables(
|
||||||
credentials: credentials,
|
credentials: credentials,
|
||||||
settings: settings
|
settings: settings
|
||||||
)
|
)
|
||||||
notifies :restart, 'service[mon-thresh]'
|
notifies :restart, 'service[monasca-thresh]'
|
||||||
end
|
end
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
metricSpoutThreads: 2
|
metricSpoutThreads: 2
|
||||||
metricSpoutTasks: 2
|
metricSpoutTasks: 2
|
||||||
|
|
||||||
# log location? node['mon_thresh']['log_dir']
|
# log location? node['monasca_thresh']['log_dir']
|
||||||
|
|
||||||
metricSpoutConfig:
|
metricSpoutConfig:
|
||||||
kafkaConsumerConfiguration:
|
kafkaConsumerConfiguration:
|
Loading…
Reference in New Issue
Block a user