Update fuel plugin installation scripts changes/15/17115/1
authorGuo Ruijing <ruijing.guo@intel.com>
Mon, 18 Jul 2016 18:38:24 +0000 (02:38 +0800)
committerGuo Ruijing <ruijing.guo@intel.com>
Tue, 19 Jul 2016 00:08:13 +0000 (08:08 +0800)
Change-Id: I2b2fa3b80e34cc07bac5d47b47c3681074794538
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
src/fuel-plugin/deployment_scripts/install.sh
src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_install.pp [deleted file]
src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_restart.pp [deleted file]
src/fuel-plugin/deployment_tasks.yaml
src/fuel-plugin/metadata.yaml

index 8f4edef..bc430be 100755 (executable)
@@ -11,6 +11,8 @@ OS_PASSWORD=$4
 CEILOMETER_URL_TYPE=${CEILOMETER_URL_TYPE:-internalURL}
 CEILOMETER_TIMEOUT=${CEILOMETER_TIMEOUT:-1000}
 
+apt-get install -y collectd
+
 rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME
 cd $INSTALL_HOME
 curl http://$HOST:8080/plugins/fuel-plugin-collectd-ceilometer-0.9/repositories/ubuntu/collectd-ceilometer.tgz | tar xzvf -
@@ -52,3 +54,5 @@ cat << EOF > /etc/collectd/collectd.conf.d/collectd-ceilometer-plugin.conf
     </Module>
 </Plugin>
 EOF
+
+service collectd restart
diff --git a/src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_install.pp b/src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_install.pp
deleted file mode 100644 (file)
index ffe3d6d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-if $operatingsystem == 'Ubuntu' {
-    package { 'collectd':
-        ensure => installed,
-    }
-}
diff --git a/src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_restart.pp b/src/fuel-plugin/deployment_scripts/puppet/manifests/collectd_restart.pp
deleted file mode 100644 (file)
index 59f5151..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-exec { "restart collectd":
-    command => "service collectd restart",
-    path   => "/usr/bin:/usr/sbin:/bin:/sbin";
-}
index 7412ccf..e73783e 100644 (file)
@@ -1,32 +1,10 @@
-- id: collectd_install
-  type: puppet
-  version: 2.0.0
-  groups: [compute]
-  required_for: [deployment_end]
-  requires: [setup_repositories]
-  parameters:
-    puppet_manifest: puppet/manifests/collectd_install.pp
-    puppet_modules: puppet/modules:/etc/puppet/modules
-    timeout: 720
-
 - id: collectd-ceilometer_install
-  type: puppet
-  version: 2.0.0
-  groups: [compute]
-  required_for: [deployment_end]
-  requires: [collectd_install]
-  parameters:
-    puppet_manifest: puppet/manifests/collectd-ceilometer_install.pp
-    puppet_modules: puppet/modules:/etc/puppet/modules
-    timeout: 720
-
-- id: collectd_restart
   type: puppet
   version: 2.0.0
   groups: [compute]
   required_for: [post_deployment_end]
   requires: [post_deployment_start]
   parameters:
-    puppet_manifest: puppet/manifests/collectd_restart.pp
+    puppet_manifest: puppet/manifests/collectd-ceilometer_install.pp
     puppet_modules: puppet/modules:/etc/puppet/modules
     timeout: 720
index 382eec5..ce92022 100644 (file)
@@ -18,7 +18,7 @@ homepage: 'https://gerrit.opnfv.org/gerrit/fastpathmetrics'
 # network, storage, storage::cinder, storage::glance, hypervisor
 groups: ['network']
 
-is_hotpluggable: false
+is_hotpluggable: true
 
 # The plugin is compatible with releases in the list
 releases: