def install(self, env): import params self.install_packages(env) env.set_params(params) self.configure(env) functions.turn_off_autostart(params.gmond_service_name) functions.turn_off_autostart("gmetad") # since the package is installed as well
def install(self, env): import params self.install_packages(env) env.set_params(params) self.configure(env) functions.turn_off_autostart(params.gmond_service_name) # since the package is installed as well functions.turn_off_autostart("gmetad")
def install(self, env): import params self.install_packages(env,params.exclude_packages) env.set_params(params) self.configure(env) functions.turn_off_autostart(params.gmond_service_name) # since the package is installed as well File("/etc/httpd/conf.d/ganglia.conf", content=StaticFile("ganglia.conf"), owner="apache", group="apache" ) functions.turn_off_autostart("gmetad")
def generate_daemon(ganglia_service, name=None, role=None, owner=None, group=None): import params import functions for gmond_server in params.ganglia_clusters: if gmond_server[0] == name: gmond_port = gmond_server[1] break params.gmond_server=gmond_server[0] params.gmond_port=gmond_server[1] cmd = "" if ganglia_service == "gmond": # When multi daemon gmond where packaged, should be changeb by only a synbolic link with service name File("/etc/init.d/gmond." + name, content=StaticFile("gmond.init"), mode=0755 ) functions.turn_off_autostart("gmond."+name) File("/etc/ganglia/gmond."+name+".conf", content=Template("gmond.conf.j2", clusterName=name, gmond_server=params.ganglia_server_host, gmond_port=gmond_port, is_master_server=role=="server"), mode=0644) Directory("/var/run/gmond", owner="root", group="root", recursive=True ) elif ganglia_service == "gmetad": File("/etc/ganglia/gmetad.conf", content=Template("gmetad.conf.j2",gridName="KEEDIO"), mode=0644 ) functions.turn_off_autostart("gmetad") else: raise Fail("Unexpected ganglia service") Execute(format(cmd), path=[params.ganglia_shell_cmds_dir, "/usr/sbin", "/sbin:/usr/local/bin", "/bin", "/usr/bin"] )