ed8dabbf10843c6c804dc345760c941003fb77bf
[bottlenecks.git] / testsuites / rubbos / puppet_manifests / modules / rubbos_monitor / manifests / rubbos_monitor_off.pp
1 #############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
3 #
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 ##############################################################################
9
10
11 class rubbos_monitor::rubbos_monitor_off {
12
13   include params::rubbos_params
14
15   # Declare some variables
16   $rubbos_app           = $params::rubbos_params::rubbos_app
17
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",
24   }
25
26   # Remove folder
27   file {'${rubbos_app}/sysstat-9.0.6':
28         ensure  => absent,
29         path    => "${rubbos_app}/sysstat-9.0.6",
30         force   => true,
31         recurse => true,
32         backup  => false,
33         require => Exec['make uninstall sysstat'],
34   }
35
36 }