diff --git a/lorax.spec b/lorax.spec index 2ed4529a..7fae71c4 100644 --- a/lorax.spec +++ b/lorax.spec @@ -48,7 +48,7 @@ Requires: kpartx # Python modules Requires: libselinux-python3 Requires: python3-mako -Requires: python3-kickstart +Requires: python3-kickstart >= 3.16.4 Requires: python3-dnf >= 3.2.0 Requires: python3-librepo diff --git a/src/pylorax/api/compose.py b/src/pylorax/api/compose.py index d5ce3994..e021bf2e 100644 --- a/src/pylorax/api/compose.py +++ b/src/pylorax/api/compose.py @@ -115,6 +115,13 @@ def repo_to_ks(r, url="url"): if not r.sslverify: cmd += '--noverifyssl' + if r.sslcacert: + cmd += ' --sslcacert="%s"' % r.sslcacert + if r.sslclientcert: + cmd += ' --sslclientcert="%s"' % r.sslclientcert + if r.sslclientkey: + cmd += ' --sslclientkey="%s"' % r.sslclientkey + return cmd