%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/ |
| Current File : //proc/self/root/proc/thread-self/root/lib/python2.7/site-packages/salt/states/drac.pyo |
�
���^c @@ sb d Z d d l m Z m Z m Z d d l Z d d l Z d � Z d � Z d � Z
d � Z d S( ug
Management of Dell DRAC
The DRAC module is used to create and manage DRAC cards on Dell servers
Ensure the user damian is present
.. code-block:: yaml
damian:
drac.present:
- name: damian
- password: secret
- permission: login,test_alerts,clear_logs
Ensure the user damian does not exist
.. code-block:: yaml
damian:
drac.absent:
- name: damian
Ensure DRAC network is in a consistent state
.. code-block:: yaml
my_network:
drac.network:
- ip: 10.225.108.29
- netmask: 255.255.255.224
- gateway: 10.225.108.1
i ( t absolute_importt print_functiont unicode_literalsNc C@ s t j j j d � r t St S( u0
Ensure the racadm command is installed
u racadm( t saltt utilst patht whicht Truet False( ( ( s4 /usr/lib/python2.7/site-packages/salt/states/drac.pyt __virtual__- s c C@ s� i | d 6t d 6i d 6d d 6} t d � } t d r� | | k r[ d j | � | d <n$ d j | � | d <i d
| 6| d <| S| | k r� d j | � | d <nT t d | | | | � r� d j | � | d <i d
| 6| d <n d | d <t | d <| S( u�
Ensure the user exists on the Dell DRAC
name:
The users username
password
The password used to authenticate
permission
The permissions that should be assigned to a user
u nameu resultu changesu u commentu drac.list_usersu testu `{0}` already existsu `{0}` will be createdu will be createdu drac.create_useru `{0}` user createdu new user createdu Unable to create user( R t __salt__t __opts__t formatR ( t namet passwordt
permissiont rett users( ( s4 /usr/lib/python2.7/site-packages/salt/states/drac.pyt present7 s&