pyinfra.api.config module¶
-
class
pyinfra.api.config.
Config
(**kwargs)¶ Bases:
ConfigDefaults
The default/base configuration options for a pyinfra deploy.
-
get_current_state
()¶
-
lock_current_state
()¶
-
reset_locked_state
()¶
-
set_current_state
(config_state)¶
-
-
class
pyinfra.api.config.
ConfigDefaults
¶ Bases:
object
-
CONNECT_TIMEOUT
= 10¶
-
DOAS
= False¶
-
DOAS_USER
= None¶
-
FAIL_PERCENT
= None¶
-
IGNORE_ERRORS
= False¶
-
PARALLEL
= 0¶
-
PRESERVE_SUDO_ENV
= False¶
-
PRESERVE_SU_ENV
= False¶
-
REQUIRE_PACKAGES
= None¶
-
REQUIRE_PYINFRA_VERSION
= None¶
-
SHELL
= 'sh'¶
-
SUDO
= False¶
-
SUDO_USER
= None¶
-
SU_SHELL
= None¶
-
SU_USER
= None¶
-
TEMP_DIR
= '/tmp'¶
-
USE_SUDO_LOGIN
= False¶
-
USE_SUDO_PASSWORD
= False¶
-
USE_SU_LOGIN
= False¶
-
-
pyinfra.api.config.
check_pyinfra_version
(version: str)¶
-
pyinfra.api.config.
check_require_packages
(requirements_config)¶