pyinfra 3.2__py2.py3-none-any.whl → 3.3.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyinfra/api/arguments_typed.py +4 -5
- pyinfra/api/command.py +22 -3
- pyinfra/api/config.py +5 -2
- pyinfra/api/facts.py +3 -0
- pyinfra/api/host.py +10 -4
- pyinfra/api/operation.py +2 -1
- pyinfra/api/state.py +1 -1
- pyinfra/connectors/base.py +34 -8
- pyinfra/connectors/chroot.py +7 -2
- pyinfra/connectors/docker.py +7 -2
- pyinfra/connectors/dockerssh.py +7 -2
- pyinfra/connectors/local.py +7 -2
- pyinfra/connectors/ssh.py +9 -2
- pyinfra/connectors/sshuserclient/client.py +18 -2
- pyinfra/connectors/sshuserclient/config.py +2 -0
- pyinfra/connectors/terraform.py +1 -1
- pyinfra/connectors/util.py +13 -9
- pyinfra/context.py +9 -2
- pyinfra/facts/apk.py +5 -0
- pyinfra/facts/apt.py +9 -1
- pyinfra/facts/brew.py +13 -0
- pyinfra/facts/bsdinit.py +3 -0
- pyinfra/facts/cargo.py +5 -0
- pyinfra/facts/choco.py +6 -0
- pyinfra/facts/crontab.py +6 -1
- pyinfra/facts/deb.py +10 -0
- pyinfra/facts/dnf.py +5 -0
- pyinfra/facts/docker.py +10 -0
- pyinfra/facts/efibootmgr.py +5 -0
- pyinfra/facts/files.py +19 -1
- pyinfra/facts/flatpak.py +7 -0
- pyinfra/facts/freebsd.py +75 -0
- pyinfra/facts/gem.py +5 -0
- pyinfra/facts/git.py +9 -0
- pyinfra/facts/gpg.py +7 -0
- pyinfra/facts/hardware.py +13 -0
- pyinfra/facts/iptables.py +9 -1
- pyinfra/facts/launchd.py +5 -0
- pyinfra/facts/lxd.py +5 -0
- pyinfra/facts/mysql.py +8 -0
- pyinfra/facts/npm.py +5 -0
- pyinfra/facts/openrc.py +8 -0
- pyinfra/facts/opkg.py +12 -0
- pyinfra/facts/pacman.py +9 -1
- pyinfra/facts/pip.py +5 -0
- pyinfra/facts/pipx.py +8 -0
- pyinfra/facts/pkg.py +4 -0
- pyinfra/facts/pkgin.py +5 -0
- pyinfra/facts/podman.py +7 -0
- pyinfra/facts/postgres.py +8 -2
- pyinfra/facts/rpm.py +11 -0
- pyinfra/facts/runit.py +7 -0
- pyinfra/facts/selinux.py +16 -0
- pyinfra/facts/server.py +49 -3
- pyinfra/facts/snap.py +7 -0
- pyinfra/facts/systemd.py +5 -0
- pyinfra/facts/sysvinit.py +4 -0
- pyinfra/facts/upstart.py +5 -0
- pyinfra/facts/util/__init__.py +4 -1
- pyinfra/facts/vzctl.py +5 -0
- pyinfra/facts/xbps.py +6 -1
- pyinfra/facts/yum.py +5 -0
- pyinfra/facts/zfs.py +19 -2
- pyinfra/facts/zypper.py +5 -0
- pyinfra/operations/apt.py +10 -3
- pyinfra/operations/docker.py +48 -44
- pyinfra/operations/files.py +47 -1
- pyinfra/operations/freebsd/__init__.py +12 -0
- pyinfra/operations/freebsd/freebsd_update.py +70 -0
- pyinfra/operations/freebsd/pkg.py +219 -0
- pyinfra/operations/freebsd/service.py +116 -0
- pyinfra/operations/freebsd/sysrc.py +92 -0
- pyinfra/operations/opkg.py +5 -5
- pyinfra/operations/postgres.py +99 -16
- pyinfra/operations/server.py +6 -4
- pyinfra/operations/util/docker.py +44 -22
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/LICENSE.md +1 -1
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/METADATA +25 -24
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/RECORD +89 -83
- pyinfra_cli/exceptions.py +5 -0
- pyinfra_cli/log.py +3 -0
- pyinfra_cli/main.py +9 -8
- pyinfra_cli/prints.py +1 -1
- pyinfra_cli/virtualenv.py +1 -1
- tests/test_connectors/test_ssh.py +302 -182
- tests/test_connectors/test_sshuserclient.py +10 -5
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/WHEEL +0 -0
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/entry_points.txt +0 -0
- {pyinfra-3.2.dist-info → pyinfra-3.3.1.dist-info}/top_level.txt +0 -0
|
@@ -78,8 +78,10 @@ class TestSSHUserConfigMissing(TestCase):
|
|
|
78
78
|
def test_load_ssh_config_no_exist(self):
|
|
79
79
|
client = SSHClient()
|
|
80
80
|
|
|
81
|
-
_, config, forward_agent, missing_host_key_policy, host_keys_file =
|
|
82
|
-
|
|
81
|
+
_, config, forward_agent, missing_host_key_policy, host_keys_file, keep_alive = (
|
|
82
|
+
client.parse_config(
|
|
83
|
+
"127.0.0.1",
|
|
84
|
+
)
|
|
83
85
|
)
|
|
84
86
|
|
|
85
87
|
assert config.get("port") == 22
|
|
@@ -126,8 +128,10 @@ class TestSSHUserConfig(TestCase):
|
|
|
126
128
|
def test_load_ssh_config(self):
|
|
127
129
|
client = SSHClient()
|
|
128
130
|
|
|
129
|
-
_, config, forward_agent, missing_host_key_policy, host_keys_file =
|
|
130
|
-
|
|
131
|
+
_, config, forward_agent, missing_host_key_policy, host_keys_file, keep_alive = (
|
|
132
|
+
client.parse_config(
|
|
133
|
+
"127.0.0.1",
|
|
134
|
+
)
|
|
131
135
|
)
|
|
132
136
|
|
|
133
137
|
assert config.get("key_filename") == ["/id_rsa", "/id_rsa2"]
|
|
@@ -144,6 +148,7 @@ class TestSSHUserConfig(TestCase):
|
|
|
144
148
|
forward_agent,
|
|
145
149
|
missing_host_key_policy,
|
|
146
150
|
host_keys_file,
|
|
151
|
+
keep_alive,
|
|
147
152
|
) = client.parse_config("192.168.1.1")
|
|
148
153
|
|
|
149
154
|
assert other_config.get("username") == "otheruser"
|
|
@@ -198,7 +203,7 @@ class TestSSHUserConfig(TestCase):
|
|
|
198
203
|
client = SSHClient()
|
|
199
204
|
|
|
200
205
|
# Load the SSH config with ProxyJump configured
|
|
201
|
-
_, config, forward_agent, _, _ = client.parse_config(
|
|
206
|
+
_, config, forward_agent, _, _, _ = client.parse_config(
|
|
202
207
|
"192.168.1.2",
|
|
203
208
|
{"port": 1022},
|
|
204
209
|
ssh_config_file="other_file",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|