| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ |
Upload File : |
o
;j� � @ sF d Z ddlZe�e�Zdd� Zdd� Zd
dd�Zd
d d
�Zdd� Z dS )a
Manage kernel packages and active kernel version
=========================================================================
Example state to install the latest kernel from package repositories:
.. code-block:: yaml
install-latest-kernel:
kernelpkg.latest_installed: []
Example state to boot the system if a new kernel has been installed:
.. code-block:: yaml
boot-latest-kernel:
kernelpkg.latest_active:
- at_time: 1
Example state chaining the install and reboot operations:
.. code-block:: yaml
install-latest-kernel:
kernelpkg.latest_installed: []
boot-latest-kernel:
kernelpkg.latest_active:
- at_time: 1
- onchanges:
- kernelpkg: install-latest-kernel
Chaining can also be achieved using wait/listen requisites:
.. code-block:: yaml
install-latest-kernel:
kernelpkg.latest_installed: []
boot-latest-kernel:
kernelpkg.latest_wait:
- at_time: 1
- listen:
- kernelpkg: install-latest-kernel
� Nc C s dt v rdS dS )zt
Only make these states available if a kernelpkg provider has been detected or
assigned for this minion
�kernelpkg.upgradeT)Fz$kernelpkg module could not be loaded)�__salt__� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/kernelpkg.py�__virtual__4 s r c K s� t d � }t d � }d| i}||v r#d|d<