### Navigation

- index
- modules |
- next |
- previous |
- Reconfigure docs »

# reconfigure.configs

Configs are ready-to-use objects that link together Parsers, Includers and Builders to provide direct conversion between config files and Data tree.

class `reconfigure.configs.``Reconfig`(parser=None, includer=None, builder=None, path=None, content=None)

  Basic config class. Derivatives normally only need to override the constructor.

  Config data is loaded either from `path` or from `content`

  Parameters:

  - parser – overrides the Parser instance
  - includer – overrides the Includer instance
  - builder – overrides the Builder instance
  - path – config file path. Not compatible with `content`
  - content – config file content. Not compatible with `path`

  `load`()

    Loads the config data, parses and builds it. Sets `tree` attribute to point to Data tree.

  `save`()

    Unbuilds, stringifies and saves the config. If the config was loaded from string, returns `{ origin: data }` dict

class `reconfigure.configs.``AjentiConfig`(**kwargs)

class `reconfigure.configs.``BIND9Config`(**kwargs)

  `named.conf`

class `reconfigure.configs.``CrontabConfig`(**kwargs)

class `reconfigure.configs.``CTDBConfig`(**kwargs)

  `CTDB main config`

class `reconfigure.configs.``CTDBNodesConfig`(**kwargs)

  `CTDB node list file`

class `reconfigure.configs.``CTDBPublicAddressesConfig`(**kwargs)

  `CTDB public address list file`

class `reconfigure.configs.``DHCPDConfig`(**kwargs)

  `DHCPD`

class `reconfigure.configs.``ExportsConfig`(**kwargs)

  `/etc/fstab`

class `reconfigure.configs.``FSTabConfig`(**kwargs)

  `/etc/fstab`

class `reconfigure.configs.``GroupConfig`(**kwargs)

  `/etc/group`

class `reconfigure.configs.``HostsConfig`(**kwargs)

  `/etc/hosts`

class `reconfigure.configs.``IPTablesConfig`(**kwargs)

  `iptables-save` and `iptables-restore`

class `reconfigure.configs.``NetatalkConfig`(**kwargs)

  Netatalk afp.conf

class `reconfigure.configs.``NSDConfig`(**kwargs)

  `NSD DNS server nsd.conf`

class `reconfigure.configs.``PasswdConfig`(**kwargs)

  `/etc/passwd`

class `reconfigure.configs.``ResolvConfig`(**kwargs)

  `/etc/resolv.conf`

class `reconfigure.configs.``SambaConfig`(**kwargs)

class `reconfigure.configs.``SquidConfig`(**kwargs)

class `reconfigure.configs.``SupervisorConfig`(**kwargs)

  `/etc/supervisor/supervisord.conf`

### Navigation

- index
- modules |
- next |
- previous |
- Reconfigure docs »