ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmitriu...@apache.org
Subject git commit: AMBARI-3962. Ambari starting SNMPD during the installation, but not set it to autostart on boot. (Dmytro Shkvyra via dlysnichenko)
Date Thu, 05 Dec 2013 18:37:08 GMT
Updated Branches:
  refs/heads/trunk 3f2d61e17 -> 629cf39a7


AMBARI-3962. Ambari starting SNMPD during the installation, but not set it to autostart on
boot. (Dmytro Shkvyra via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/629cf39a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/629cf39a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/629cf39a

Branch: refs/heads/trunk
Commit: 629cf39a75ecd93103ebed05cd1c60adae0ff95d
Parents: 3f2d61e
Author: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Authored: Thu Dec 5 20:36:09 2013 +0200
Committer: Lisnichenko Dmitro <dlysnichenko@hortonworks.com>
Committed: Thu Dec 5 20:36:09 2013 +0200

----------------------------------------------------------------------
 ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/629cf39a/ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp b/ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp
index 24613d8..00be1b7 100644
--- a/ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp/manifests/snmp.pp
@@ -33,8 +33,13 @@ class hdp::snmp(
   service { 'snmpd' :
     ensure => $service_state
   }
-  
-  anchor{'hdp::snmp::begin':} -> Hdp::Package['snmp'] -> Hdp::Snmp-configfile<||>
-> Service['snmpd'] -> anchor{'hdp::snmp::end':}
+
+  exec { "snmpd_autostart" :
+    command => "chkconfig snmpd on",
+    path => '/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin',
+  }
+ 
+  anchor{'hdp::snmp::begin':} -> Hdp::Package['snmp'] -> Hdp::Snmp-configfile<||>
-> Service['snmpd'] -> Exec['snmpd_autostart'] -> anchor{'hdp::snmp::end':}
 }
 
 define hdp::snmp-configfile()


Mime
View raw message