pyflexebs package

Submodules

pyflexebs.configs module

All configurations

class pyflexebs.configs.ConfigAlgo[source]

Bases: Config

Parameters for interval monitors

disregard = ['/']
dryrun = False
file_systems = ['ext4', 'xfs']
increase_max_gb = 100
increase_percent = 50
interval = 60
volume_max_size = 2000
watermark_max = 70
class pyflexebs.configs.ConfigControl[source]

Bases: Config

Configure control of the daemon

check_root = True
check_tools = True
configure_logging_syslog = True
configure_proxy = True
daemonize = False
install_does_run = False
loglevel = 'INFO'
uninstall_does_kill = True
class pyflexebs.configs.ConfigProxy[source]

Bases: Config

Configure proxy settings for the daemon

http_proxy = None
https_proxy = None
no_proxy = 'localhost,169.254.169.254'

pyflexebs.main module

main.py

pyflexebs.main.create_pylogconf() → None[source]
pyflexebs.main.daemon_run() → None[source]
pyflexebs.main.enlarge_volume(p, device_to_volume, ec2)[source]
pyflexebs.main.main()[source]
pyflexebs.main.normalize_device(dev: str) → str[source]

turns /dev/sdb to /dev/xvdb (if needed)

pyflexebs.main.rm_config_json_system() → None[source]
pyflexebs.main.rm_config_json_user() → None[source]
pyflexebs.main.run()[source]
pyflexebs.main.service_install() → None[source]
pyflexebs.main.service_start() → None[source]

Start the service

pyflexebs.main.service_stop() → None[source]
pyflexebs.main.service_uninstall() → None[source]
pyflexebs.main.show_policies() → None[source]
pyflexebs.main.show_volumes() → None[source]
pyflexebs.main.write_config_json_system() → None[source]
pyflexebs.main.write_config_json_user() → None[source]

pyflexebs.static module

version which can be consumed from within the module

pyflexebs.utils module

utils.py

pyflexebs.utils.check_root()[source]
pyflexebs.utils.check_tools()[source]

Check that the command line tools we need are available

pyflexebs.utils.configure_proxy()[source]
pyflexebs.utils.dump(obj)[source]

debugging function to dump objects

pyflexebs.utils.get_logger()[source]
pyflexebs.utils.run_with_logger(args, logger)[source]

Execute the external command and get its exitcode, stdout and stderr.

Module contents

Initialize the module