1 #############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 class rubbos_monitor::rubbos_monitor_off {
13 include params::rubbos_params
15 # Declare some variables
16 $rubbos_app = $params::rubbos_params::rubbos_app
17 $rubbos_home = $params::rubbos_params::rubbos_home
19 # Make uninstall sysstat
20 exec {'make uninstall sysstat':
21 cwd => "${rubbos_app}/sysstat-9.0.6",
22 command => "make uninstall",
23 path => ["/bin","/sbin","/usr/bin","/usr/sbin","/usr/local/bin","/usr/local/sbin"],
24 onlyif => "test -d ${rubbos_app}/sysstat-9.0.6",
27 # Remove sysstat-9.0.6 folder
28 file {'${rubbos_app}/sysstat-9.0.6':
30 path => "${rubbos_app}/sysstat-9.0.6",
34 require => Exec['make uninstall sysstat'],
38 file {'${rubbos_home}/bench.tar.gz':
40 path => "${rubbos_home}/bench.tar.gz",
44 file {'${rubbos_home}/bench':
46 path => "${rubbos_home}/bench",