Example #1
0
 def install(self, env):
     import params
     env.set_params(params)
     self.install_packages(env)
     for exporter in params.exporter_lists:
         if exporter != '':
             params.install_from_file(file_name=exporter)
Example #2
0
 def install(self, env):
     import params
     env.set_params(params)
     self.install_packages(env)
     install_from_file(self.binary_file_name)
     Directory([params.conf_dir], mode=0775, create_parents=True)
     Execute('yum install -y fuse')
     Execute('modprobe fuse')
Example #3
0
def install_tidb(file_name):
    import params
    Directory([
        params.conf_dir, params.log_dir, params.data_dir, params.raftdb_dir,
        params.wal_dir
    ],
              owner=params.tidb_user,
              group=params.user_group,
              mode=0775,
              create_parents=True)
    params.install_from_file(file_name)
Example #4
0
 def install(self, env):
     import params
     env.set_params(params)
     self.install_packages(env)
     Directory([
         params.conf_dir, params.alertmanager_data_dir,
         params.prometheus_data_dir
     ],
               owner=params.prometheus_user,
               group=params.user_group,
               mode=0775,
               create_parents=True)
     params.install_from_file('prometheus')