Skip to content

Conversation

@baby-gnu
Copy link
Contributor

@baby-gnu baby-gnu commented Jun 7, 2019

  • libvirt/python.sls: mangle the package name when the minion is using Python3

@baby-gnu baby-gnu requested review from aboe76 and myii June 7, 2019 09:15
@baby-gnu
Copy link
Contributor Author

baby-gnu commented Jun 7, 2019

I need to rework this since it does not work for some distributions.

We need a mechanism to select which python library to install
depending on the environment of the minion.

We do not generated keys when the python library is not available for
the current OS (like python3 libvirt on CentOS).

BREAKING CHANGE: use “osfinger” instead of “codename” to override
configuration per distribution version.

BREAKING CHANGE: the Python2 package is now “python2_pkg”.

* libvirt/python.sls: do nothing when the python package is not
  available.

* libvirt/keys.sls: do nothing when the python package is not
  available.

* libvirt/python.jinja: new macro “switch_python32” to select one of
  the two arguments based on the environment of the SaltStack minion.

* libvirt/map.jinja: update to “template-formula” standards.  Import
  settings from “defaults”, “osfamily”, “os” and “osfinger”.

* libvirt/defaults.yaml: distinguish python2 and python3 packages.
  Use the most common python package name.

* libvirt/osfamilymap.yaml: provide setting per OS family.

* libvirt/osmap.yaml: CentOS does not have python3 libvirt
  library. Include Suse specificities.

* libvirt/osfingermap.yaml: Suse Leap 42 does not have python3 libvirt library.
@baby-gnu baby-gnu force-pushed the bugfix/handle-python-3-salt-minion branch from 238c061 to 1a36e5b Compare June 11, 2019 12:12
@baby-gnu
Copy link
Contributor Author

Instead of mangling the python3 package, I use explicit python2 and python3 package names.

@baby-gnu
Copy link
Contributor Author

This one is needed before merging #35.

@baby-gnu
Copy link
Contributor Author

I'll redo this PR on top of #35

@baby-gnu baby-gnu closed this Jun 12, 2019
@baby-gnu baby-gnu deleted the bugfix/handle-python-3-salt-minion branch July 18, 2019 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant