Beispiel #1
0
 def configure(self, env):
   import params
   env.set_params(params)
   Directory(params.local_dir,
             owner=params.storm_user,
             group=params.storm_group,
             mode=0755,
             recursive=True
             )
   configinit().update_nimbus_config()
Beispiel #2
0
  def install(self, env):
    import params
    env.set_params(params)

    excludePackage = ['plclient*','postgresql93*']

    self.install_packages(env,excludePackage)
    
    self.configure(env)

    configinit().init_checkstatus_script()
Beispiel #3
0
  def install(self, env):
    import params
    print 'install goldeneye'
    excludePackage = ['goldeneye-web']
    self.install_packages(env,excludePackage)
	
    print 'init scripts'
    configinit().init_mysql_scripts()
	
    print 'update configs'
    self.configure(env)

    Links(params.new_goldeneye_conf_path_metadb, params.goldeneye_conf_path_metadb)
    Links(params.new_goldeneye_log_path_metadb, params.goldeneye_log_path_metadb)
Beispiel #4
0
  def initLhotseDB(self, env):
    import params
    env.set_params(params)
    
    File(params.start_mysql_script,
         mode=0755,
         encoding='UTF-8',
         content=StaticFile('startMySql.sh')
    )
    configinit().update_db_config()
    cmd = format("bash -x {start_mysql_script} {lhotse_database_hosts} {lhotse_database_data_dir} {lhotse_schema_path} {lhotse_database_username} {lhotse_database_password}")

    val= os.system(cmd)
    print val
Beispiel #5
0
  def configure(self, env):
    import params
    env.set_params(params)

    File(params.config_service_script,
         mode=0755,
         content=StaticFile('configService.sh')
    )

    cmd = format("bash -x {config_service_script} {service_java_home} {service_listen_port}")
    print cmd

    val = os.system(cmd)
    print val

    configinit().update_service_config()
Beispiel #6
0
  def configure(self, env):
    import params
    env.set_params(params)

    File(params.config_web_script,
         mode=0755,
         content=StaticFile('configWeb.sh')
    )

    configinit().update_web_config()
    
    cmd = format("bash -x {config_web_script} {lhotse_web_hosts} {lhotse_web_listen_port}")

    (ret, output) = commands.getstatusoutput(cmd)
    print "update web httpd------output-------"
    print output
    print ret

    if ret != 0:
        print 'update httpd config fail'
        sys.exit(1)
Beispiel #7
0
  def install(self, env):
    import params
    env.set_params(env)

    excludePackage = ['plclient*','thive']
    self.install_packages(env,excludePackage)
  

    configinit().init_pg_scripts()
    configinit().init_checkstatus_script()

    print "--------initdb"
    (ret, output) = commands.getstatusoutput("/etc/init.d/postgresql-9.3 initdb")
    print ret
    print output
    if ret != 0:
      sys.exit(1)
    
    self.configure(env)
    print "--------start db"
    (ret, output) = commands.getstatusoutput("/etc/init.d/postgresql-9.3 start")
    print ret
    print output
    
    if ret != 0 :
      sys.exit(1)
    
    print '----------init pg'
    init_pg().init(env)
#    cmd = format("bash -x {tmp_dir}/initpg.sh {pg_server_hosts} {pg_server_port} {params.pg_server_user} {params.pg_server_password} {params.hive_plc_user} {params.hive_plc_password}")
#    (ret, output) = commands.getstatusoutput(cmd)
#    print ret
#    print output
#    
#    if ret != 0 :
#       sys.exit(1)

    Links(params.new_thive_conf_path_pgsql, params.thive_conf_path_pgsql)
    Links(params.new_thive_log_path_pgsql, params.thive_log_path_pgsql)
    Links(params.new_thive_data_path_pgsql, params.thive_data_path_pgsql)
Beispiel #8
0
 def configure(self, env):
   configinit().update_rmhaproxy_configs(env) 
Beispiel #9
0
    def configure(self, env):
        import params

        env.set_params(params)
        Logger.info("update pg configs")
        configinit().update_pg(env)
Beispiel #10
0
 def configure(self, env):
   import params
   env.set_params(params)
   print "update thive configs"
   configinit().update_pg_config(env)
Beispiel #11
0
 def configure(self, env):
   print 'create config';
   import params
   env.set_params(params)
   
   configinit().update_runner_config(env)
Beispiel #12
0
 def configure(self, env):
   print "update thive configs"
   configinit().update_thive_config()
Beispiel #13
0
 def configure(self, env):
     print 'configured ResourceManager'
     configinit().update_rm_configs(env)
Beispiel #14
0
 def configure(self, env):
     import params
     env.set_params(params)
     Logger.info("update pg configs")
     configinit().update_pg(env)
Beispiel #15
0
 def configure(self, env):
   print 'configure NodeManager'
   configinit().update_nm_configs(env)
Beispiel #16
0
 def configure(self, env):
   print 'create the config file call configinit()';
   import params
   env.set_params(params)
   configinit().update_base_config()
Beispiel #17
0
 def configure(self, env):
     configinit().update_apiserver_configs(env)