insalata.builder.config package

Submodules

insalata.builder.config.firewall module

insalata.builder.config.firewall.configureIpTables(logger, host)

Set iptables firewall rules on this host.

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • host (Host) – The target host that references firewall rules to set
insalata.builder.config.firewall.configureIpTablesFromSimple(logger, hostId, target, simplerules)

Set iptables firewall rules from a list of simplified rules.

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • hostId (str) – The identifier of the host that references firewall rules to set
  • target (str) – The target name to use for the Ansible playbook.
  • simplerules (list(insalata.model.FirewallRule.FirewallRule)) – A list of simplified rules to apply as iptable rules.
insalata.builder.config.firewall.configureIpTablesRaw(logger, hostId, target, raw)

Set iptables firewall rules from a raw dump.

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • hostId (str) – The identifier of the host that references firewall rules to set
  • target (str) – The target name to use for the Ansible playbook.
  • raw (insalata.model.FirewallRule.FirewallRaw) – A raw firewall data dump to apply directly.

insalata.builder.config.host module

insalata.builder.config.host.configureHostname(logger, host)

Configure the hostname of a host

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • host (Host) – Host to set the hostname of

insalata.builder.config.interface module

insalata.builder.config.interface.configureInterfaceAnsibleDebian(logger, interface)

Configure a single interface on the host

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • interface (Interface) – The interface to configure
insalata.builder.config.interface.unconfigureInterfaceAnsibleDebian(logger, interface)

Remove/unconfigure a single interface on the host

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • interface (Interface) – The interface to unconfigure

insalata.builder.config.routing module

insalata.builder.config.routing.configureRouting(logger, host)

Set routing table on this host.

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • host (Host) – The target host that references routing table entries

insalata.builder.config.service module

insalata.builder.config.service.configureDnsmasq(logger, service, config)

Configure DNS and DHCP using dnsmasq on a Debian-based machine.

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • service (Service) – A reference to the service (the complete host will be used)
  • config (Graph) – The configuration holding all other elements
insalata.builder.config.service.configureDnsmasqDhcp(logger, service, config)
insalata.builder.config.service.configureDnsmasqDns(logger, service, config)
insalata.builder.config.service.stopServiceAnsible(logger, hostName, serviceName)

Stop a service with the given name

Parameters:
  • logger (seealso:: logging:Logger) – A logger used for logging possible errors.
  • hostName (str) – The name of the host to stop the service on.
  • serviceName (str) – The name of the service to stop.
insalata.builder.config.service.unconfigureDnsmasqDhcp(logger, service, config)
insalata.builder.config.service.unconfigureDnsmasqDns(logger, service, config)

Module contents