%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/thread-self/root/proc/3522530/root/lib/python2.7/site-packages/salt/states/win_wusa.pyc |
�
���^c @@ s� d Z d d l m Z m Z d d l Z d d l Z d d l Z d d l m Z e j
e � Z d Z
d � Z d � Z d � Z d S( u�
Microsoft Updates (KB) Management
This module provides the ability to enforce KB installations from files (.msu),
without WSUS or Windows Update
.. versionadded:: 2018.3.4
i ( t absolute_importt unicode_literalsN( t SaltInvocationErroru wusac C@ s t j j j � s t d f St S( u
Load only on Windows
u! Only available on Windows systems( t saltt utilst platformt
is_windowst Falset __virtualname__( ( ( s8 /usr/lib/python2.7/site-packages/salt/states/win_wusa.pyt __virtual__ s
c C@ ss i | d 6i d 6t d 6d d 6} | s7 t d � � n | sL t d � � n t d | � r} t | d <d j | � | d <| St d
t k r� d | d <d j | � | d <d | d <| St d d
| d t � } | sd j t j j
j | � t � } | | d <| St d | � t d | � r\d j | � | d <i t d 6t d 6| d <t | d <n d j | � | d <| S( uR
Ensure an update is installed on the minion
Args:
name(str):
Name of the Windows KB ("KB123456")
source (str):
Source of .msu file corresponding to the KB
Example:
.. code-block:: yaml
KB123456:
wusa.installed:
- source: salt://kb123456.msu
u nameu changesu resultu u commentu Must specify a KB "name"u'