def main(): shutil.copy(os.path.join(paths.config_directory(), 'core.py.template'), os.path.join(paths.config_directory(), 'core.py')) irods_config = IrodsConfig() irods_config.server_config['plugin_configuration']['rule_engines'] = [ { 'instance_name': 'irods_rule_engine_plugin-python-instance', 'plugin_name': 'irods_rule_engine_plugin-python', 'plugin_specific_configuration': {} } ] irods_config.commit(irods_config.server_config, irods_config.server_config_path, make_backup=True)
def main(): irods_config = IrodsConfig() irods_config.server_config['plugin_configuration']['rule_engines'].insert( 1, { "instance_name": "irods_rule_engine_plugin-audit_amqp-instance", "plugin_name": "irods_rule_engine_plugin-audit_amqp", "plugin_specific_configuration": { "amqp_location": "ANONYMOUS@localhost:5672", "amqp_options": "", "amqp_topic": "audit_messages", "log_path_prefix": "/tmp/irods", "pep_regex_to_match": "audit_.*", "test_mode": "true" } }) irods_config.server_config["rule_engine_namespaces"].append("audit_") irods_config.commit(irods_config.server_config, irods_config.server_config_path, make_backup=True)