�
�Udac @` s� d Z d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d
Z d Z
d d l Z d d l j
j Z d d
l m Z d d l m Z d d l m Z e j � Z d e f d � � YZ d � Z e d k r� e � n d S( ss
(c) 2019, Red Hat, Inc
GNU General Public License v3.0+
(see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust certifiedt supported_bys`
module: na_ontap_kerberos_realm
short_description: NetApp ONTAP vserver nfs kerberos realm
extends_documentation_fragment:
- netapp.na_ontap
version_added: '2.9'
author: Milan Zink (@zeten30) <[email protected]>,<[email protected]>
description:
- Create, modify or delete vserver kerberos realm configuration
options:
state:
description:
- Whether the Kerberos realm is present or absent.
choices: ['present', 'absent']
default: 'present'
type: str
vserver:
description:
- vserver/svm with kerberos realm configured
required: true
type: str
realm:
description:
- Kerberos realm name
required: true
type: str
kdc_vendor:
description:
- The vendor of the Key Distribution Centre (KDC) server
- Required if I(state=present)
choices: ['Other', 'Microsoft']
type: str
kdc_ip:
description:
- IP address of the Key Distribution Centre (KDC) server
- Required if I(state=present)
type: str
kdc_port:
description:
- TCP port on the KDC to be used for Kerberos communication.
- The default for this parameter is '88'.
type: str
clock_skew:
description:
- The clock skew in minutes is the tolerance for accepting tickets with time stamps that do not exactly match the host's system clock.
- The default for this parameter is '5' minutes.
type: str
comment:
description:
- Optional comment
type: str
admin_server_ip:
description:
- IP address of the host where the Kerberos administration daemon is running. This is usually the master KDC.
- If this parameter is omitted, the address specified in kdc_ip is used.
type: str
admin_server_port:
description:
- The TCP port on the Kerberos administration server where the Kerberos administration service is running.
- The default for this parameter is '749'
type: str
pw_server_ip:
description:
- IP address of the host where the Kerberos password-changing server is running.
- Typically, this is the same as the host indicated in the adminserver-ip.
- If this parameter is omitted, the IP address in kdc-ip is used.
type: str
pw_server_port:
description:
- The TCP port on the Kerberos password-changing server where the Kerberos password-changing service is running.
- The default for this parameter is '464'.
type: str
sw
- name: Create kerberos realm
na_ontap_kerberos_realm:
state: present
realm: 'EXAMPLE.COM'
vserver: 'vserver1'
kdc_ip: '1.2.3.4'
kdc_vendor: 'Other'
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
t
N( t NetAppModule( t to_native( t
AnsibleModulet NetAppOntapKerberosRealmc B` sJ e Z d Z d � Z d d d � Z d � Z d � Z d � Z d � Z RS( s)
Kerberos Realm definition class
c C` s> t j � | _ | j j t d t d t d d d d � d t d t d d d d � d t d t d d d d � d t d t d d d d � d t d
d d g g d d d d � d
t d t d d d d � d t d
d d g g d d d d d d d g � d t d t d d d d � d t d t d d d d � d t d t d d � d t d t d d d g d d � d t d t d d � � � t d | j d t d
d d d d g f g � | _ t
� | _ | j j | j j
� | _ t t k r�| j j d d � n% t j d | j d | j d � | _ d d d d d
d g | _ d S( Nt admin_server_ipt requiredt defaultt typet strt admin_server_portt
clock_skewt commentt kdc_ipt required_ift statet presentt kdc_portt
kdc_vendort choicest Microsoftt Othert pw_server_ipt pw_server_portt realmt absentt vservert
argument_spect supports_check_modet msgs( the python NetApp-Lib module is requiredt module( t netapp_utilst na_ontap_host_argument_specR# t updatet dictt Falset Nonet TrueR R&