#!/usr/bin/env python """Configuration parameters for client builder and server packaging.""" from __future__ import absolute_import from __future__ import unicode_literals import os import time from grr_response_core.lib import config_lib from grr_response_core.lib import rdfvalue from grr_response_core.lib import type_info config_lib.DEFINE_option( type_info.RDFValueType( rdfclass=rdfvalue.RDFURN, name="Config.aff4_root", default="aff4:/config/", description=("The path where the configs are stored in the aff4 " "namespace."))) config_lib.DEFINE_option( type_info.RDFValueType( rdfclass=rdfvalue.RDFURN, name="Config.python_hack_root", default="%(Config.aff4_root)/python_hacks", description=("The path where python hacks are stored in the aff4 " "namespace."))) # Executables must be signed and uploaded to their dedicated AFF4 namespace. config_lib.DEFINE_option( type_info.RDFValueType( rdfclass=rdfvalue.RDFURN,
False, help="If true log more verbosely.") config_lib.DEFINE_string("Logging.path", "%(Config.prefix)/var/log/", help="Path to log file directory.") config_lib.DEFINE_string("Logging.syslog_path", "/dev/log", help="Path to syslog socket. This can be a unix " "domain socket or in a UDP host:port notation.") config_lib.DEFINE_string("Logging.filename", "%(Logging.path)/GRRlog.txt", help="Filename of the grr log file.") config_lib.DEFINE_option( type_info.RDFValueType(rdfclass=rdf_standard.DomainEmailAddress, name="Monitoring.alert_email", help="The email address to send events to.", default="grr-monitoring@localhost")) config_lib.DEFINE_option( type_info.RDFValueType(rdfclass=rdf_standard.DomainEmailAddress, name="Monitoring.emergency_access_email", help="The email address to notify in an emergency.", default="grr-emergency@localhost")) config_lib.DEFINE_integer("Monitoring.http_port", 0, "Port for stats monitoring server.")