def configure(self, env, upgrade_type=None, config_dir=None):
    from params import params
    env.set_params(params)
    File(format('/etc/default/metron'), content=Template('metron.j2'))
    metron_service.refresh_configs(params)
    commands = RestCommands(params)
    if (not commands.is_kafka_configured()):
        commands.init_kafka_topics()
    if (not commands.is_hbase_configured()):
        commands.create_hbase_tables()
    if (not commands.is_pcap_configured()):
        commands.init_pcap()
    if (not commands.is_metron_user_hdfs_dir_configured()):
        commands.create_metron_user_hdfs_dir()
    if (params.security_enabled and (not commands.is_hbase_acl_configured())):
        commands.set_hbase_acls()
    if (params.security_enabled and (not commands.is_kafka_acl_configured())):
        commands.init_kafka_acls()
        commands.set_kafka_acl_configured()
    if (params.security_enabled and (not commands.is_pcap_perm_configured())):
        commands.init_pcap()
        commands.set_pcap_perm_configured()
def configure(self, env, upgrade_type=None, config_dir=None):
    from params import params
    env.set_params(params)
    File(format('/etc/default/metron'), content=Template('metron.j2'))
    metron_service.refresh_configs(params)
    commands = RestCommands(params)
    if (not commands.is_kafka_configured()):
        commands.init_kafka_topics()
    if (not commands.is_hbase_configured()):
        commands.create_hbase_tables()
    if (not commands.is_pcap_configured()):
        commands.init_pcap()
    if (not commands.is_metron_user_hdfs_dir_configured()):
        commands.create_metron_user_hdfs_dir()
    if (params.security_enabled and (not commands.is_hbase_acl_configured())):
        commands.set_hbase_acls()
    if (params.security_enabled and (not commands.is_kafka_acl_configured())):
        commands.init_kafka_acls()
        commands.set_kafka_acl_configured()
    if (params.security_enabled and (not commands.is_pcap_perm_configured())):
        commands.init_pcap()
        commands.set_pcap_perm_configured()