-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(packages): the python library is a dedicated component
It's actually only useful for generating the servec TLS certificates from SaltStack. * libvirt/python/init.sls: include “libvirt.python.install” SLS. * libvirt/python/install.sls: use “tplroot” to resolve import. Install the libvirt python package if any.
- Loading branch information
Showing
3 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
include: | ||
- .install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{#- Get the `tplroot` from `tpldir` #} | ||
{%- set tplroot = tpldir.split('/')[0] %} | ||
{%- from tplroot ~ "/map.jinja" import libvirt_settings with context %} | ||
{%- from tplroot ~ "/python.jinja" import switch_python32 with context %} | ||
{%- set package = switch_python32(libvirt_settings.python3_pkg, libvirt_settings.python2_pkg) %} | ||
{#- Some OS do not have the python3 library #} | ||
{%- if package %} | ||
libvirt-python: | ||
pkg.installed: | ||
- name: {{ package }} | ||
{%- endif %} |