diff options
author | FrantiĊĦek Zatloukal <Zatloukal.Frantisek@gmail.com> | 2023-03-22 19:44:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 12:44:26 -0600 |
commit | 055395d38a4ec0cc87b005e93110e6d06419f43d (patch) | |
tree | 95dd5a6e4220f2198cd4a009e83e15c180775d57 | |
parent | 74ed9ef2ea649c54521a3d64bdc9524d5010e70b (diff) | |
download | cloud-init-git-055395d38a4ec0cc87b005e93110e6d06419f43d.tar.gz |
Fedora: Enable CA handling (#2086)
Fedora wasn't previously supported for CA handling. Enabling this
allows the testsuite to pass when ran on a Fedora system. The conf
override is the same as for rhel.
-rw-r--r-- | cloudinit/config/cc_ca_certs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cloudinit/config/cc_ca_certs.py b/cloudinit/config/cc_ca_certs.py index 54153638..1c0ec0b1 100644 --- a/cloudinit/config/cc_ca_certs.py +++ b/cloudinit/config/cc_ca_certs.py @@ -25,6 +25,13 @@ DEFAULT_CONFIG = { "ca_cert_update_cmd": ["update-ca-certificates"], } DISTRO_OVERRIDES = { + "fedora": { + "ca_cert_path": "/etc/pki/ca-trust/", + "ca_cert_local_path": "/usr/share/pki/ca-trust-source/", + "ca_cert_filename": "anchors/cloud-init-ca-cert-{cert_index}.crt", + "ca_cert_config": None, + "ca_cert_update_cmd": ["update-ca-trust"], + }, "rhel": { "ca_cert_path": "/etc/pki/ca-trust/", "ca_cert_local_path": "/usr/share/pki/ca-trust-source/", @@ -68,6 +75,7 @@ configuration option ``remove_defaults``. distros = [ "alpine", "debian", + "fedora", "rhel", "opensuse", "opensuse-microos", |