summaryrefslogtreecommitdiffstats
path: root/testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2017-05-08 09:04:32 +0000
committerliyin <liyin11@huawei.com>2017-05-10 11:16:02 +0000
commit6a8257127b3dce1f18a650afe6921a34b6c6f5b8 (patch)
treebfb2d60c1ce3f6688b92e5787818f222d620f52e /testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp
parent2d9642a33a6a58f53aceba4ff3d6242f191f25f0 (diff)
Delete testcase of rubbos and vstf.
JIRA:BOTTLENECK-167 This patch will delete vstf and rubbos testcase code. Include some testcase config file, if there will be someone who want to use this testcase maybe B or C version code will contain those testcase. if you use the D version code to run this two testcase we will info you that: Rubbos testsuite is not updating anymore. This entrance for running Rubbos within Bottlenecks is no longer supported. Change-Id: I04e4042ff3998b3696df2ed47a9ffab6f1620ec3 Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp')
-rw-r--r--testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp85
1 files changed, 0 insertions, 85 deletions
diff --git a/testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp b/testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp
deleted file mode 100644
index 5d5f3839..00000000
--- a/testsuites/rubbos/puppet_manifests/modules/rubbos_httpd/manifests/rubbos_httpd_off.pp
+++ /dev/null
@@ -1,85 +0,0 @@
-#############################################################################
-# Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-
-class rubbos_httpd::rubbos_httpd_off {
-
- include params::rubbos_params
-
- # Declare some variables
- $rubbos_app_tools = $params::rubbos_params::rubbos_app_tools
-
- # Ensure apache2 service is stopped
- service {'stop apache http server':
- ensure => stopped,
- hasstatus => false,
- status => "ps aux | grep 'bin/httpd.*start$'",
- start => "${rubbos_app_tools}/apache2/bin/apachectl -f ${rubbos_app_tools}/apache2/conf/httpd.conf -k start",
- stop => "${rubbos_app_tools}/apache2/bin/apachectl -f ${rubbos_app_tools}/apache2/conf/httpd.conf -k stop",
- }
-
- # delete directory
- file {'${rubbos_app_tools}/httpd-2.0.64.tar.gz':
- ensure => absent,
- path => "${rubbos_app_tools}/httpd-2.0.64.tar.gz",
- force => true,
- backup => false,
- }
-
- file {'${rubbos_app_tools}/httpd-2.0.64':
- ensure => absent,
- path => "${rubbos_app_tools}/httpd-2.0.64",
- force => true,
- recurse => true,
- backup => false,
- require => Service['stop apache http server'],
- }
-
- file {'${rubbos_app_tools}/tomcat-connectors-1.2.32-src.tar.gz':
- ensure => absent,
- path => "${rubbos_app_tools}/tomcat-connectors-1.2.32-src.tar.gz",
- force => true,
- backup => false,
- }
-
- file {'${rubbos_app_tools}/tomcat-connectors-1.2.32-src':
- ensure => absent,
- path => "${rubbos_app_tools}/tomcat-connectors-1.2.32-src",
- force => true,
- recurse => true,
- backup => false,
- require => Service['stop apache http server'],
- }
-
- # Delete apache2 directory
- exec {'rm -rf ${rubbos_app_tools}/apache2':
- cwd => "${rubbos_app_tools}/",
- command => "rm -rf ${rubbos_app_tools}/apache2",
- path => ["/bin","/sbin","/usr/bin","/usr/sbin","/usr/local/bin","/usr/local/sbin"],
- onlyif => "test -d ${rubbos_app_tools}/apache2",
- }
-
- # delete user and group
- user {'apache':
- name => "apache",
- ensure => absent,
- groups => "apache",
- password => "apache",
- require => [
- File['${rubbos_app_tools}/httpd-2.0.64'],
- File['${rubbos_app_tools}/tomcat-connectors-1.2.32-src'],
- Exec['rm -rf ${rubbos_app_tools}/apache2']],
- }
- group {'apache':
- name => "apache",
- ensure => absent,
- require => User['apache'],
- }
-
-}