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
18 # Make uninstall sysstat
19 exec {'make uninstall sysstat':
20 cwd => "${rubbos_app}/sysstat-9.0.6",
21 command => "make uninstall",
22 path => ["/bin","/sbin","/usr/bin","/usr/sbin","/usr/local/bin","/usr/local/sbin"],
23 onlyif => "test -d ${rubbos_app}/sysstat-9.0.6",
27 file {'${rubbos_app}/sysstat-9.0.6':
29 path => "${rubbos_app}/sysstat-9.0.6",
33 require => Exec['make uninstall sysstat'],