def init(self, core): ConfigServiceComponent.init(self, core) self.addConfFile("/etc/snort_inline/edenwall-home-net.conf", "root:root", "0644") try: self.handle_transition() except Exception, err: self.critical( "Could not handle configuration transition to new IDS-IPS backend (%s)." % exceptionAsUnicode(err))
def init(self, core): ConfigServiceComponent.init(self, core) self.core = core try: self.sharedir = self.core.config.get('CORE', 'sharedir') except: self.sharedir = DEFAULT_SHAREDIR self.script_dir = os.path.join(self.sharedir, 'scripts') self.addConfFile(_ULOGD_CONF, 'root:root', '0644') self.addConfFile(_RSYSLOG_CONF, 'root:root', '0644')
def init(self, core): ConfigServiceComponent.init(self, core) self.core = core depend_key = ("contact", "admin_mail") depend_name = "contact_snmpd" for (event, method) in ( ("modify", self.read_config), ("apply", self.apply_config), ("rollback", self.apply_config), ): self.core.config_manager.subscribe(method, depend_name, (), event, *depend_key) self.addConfFile("/etc/default/snmpd", "root:root", "0644") self.addConfFile("/etc/snmp/snmpd.conf", "root:root", "0644") self.snmp_users_filename = "/var/lib/snmp/snmpd.conf"
def init(self, core): ConfigServiceComponent.init(self, core) UseCertificateComponent.init(self, core) self.core = core try: self.sharedir = self.core.config.get('CORE', 'sharedir') except: self.sharedir = DEFAULT_SHAREDIR self.script_dir = os.path.join(self.sharedir, 'scripts') self.addConfFile(_NUAUTH_CONF, 'root:root', '0644') self.addConfFile('/etc/nufw/nuauth.d/nuauth_tls.conf', 'root:root', '0644') self.addConfFile('/etc/nufw/user-down.sh', 'root:root', '0755') self.addConfFile('/etc/nufw/user-up.sh', 'root:root', '0755')
def init(self, core): ConfigServiceComponent.init(self, core) depend_key = ('nuauth_bind', 'nuauth_bind_dependency') depend_name = 'nuauth_bind' for (event, method) in ( ('modify', self.read_config), ('apply', self.apply_config), ('rollback', self.apply_config) ): self.core.config_manager.subscribe(method, depend_name, (), event, *depend_key) self.addConfFile('/etc/bind/named.conf', 'root:bind', '0644') self.addConfFile('/etc/bind/named.conf.local', 'root:bind', '0644') self.addConfFile('/etc/bind/named.conf.options', 'root:bind', '0644')
def init(self, core): ConfigServiceComponent.init(self, core)
def init(self, core): ConfigServiceComponent.init(self, core) if not self.key_exists: self.useDefaultConf()
def init(self, core): ConfigServiceComponent.init(self, core) self.addConfFile('/etc/dhcp3/dhcpd.conf', 'root:root', '0644') self.addConfFile('/etc/ha.d/resource.d/omshell_dhcpd', 'root:root', '0755')
def init(self, core): ConfigServiceComponent.init(self, core) for genfile in GEN_FILES: self.addConfFile(genfile, 'root:root', '0644')
def init(self, core): UseCertificateComponent.init(self, core) self.context = Context.fromComponent(self) for filename in self.CONF_FILES: self.addConfFile(filename, 'root:root', '0644') ConfigServiceComponent.init(self, core)
def init(self, core): ConfigServiceComponent.init(self, core) self.addConfFile('/etc/hostname', 'root:root', '0644')