mirror of
https://github.com/saltstack/salt.git
synced 2025-04-10 23:01:39 +00:00
32 lines
1 KiB
Python
32 lines
1 KiB
Python
"""
|
|
:codeauthor: :email:`Alexandru Bleotu (alexandru.bleotu@morganstanley.com)`
|
|
|
|
|
|
salt.config.schemas.esxdatacenter
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
ESX Datacenter configuration schemas
|
|
"""
|
|
|
|
from salt.utils.schema import ArrayItem, IntegerItem, Schema, StringItem
|
|
|
|
|
|
class EsxdatacenterProxySchema(Schema):
|
|
"""
|
|
Schema of the esxdatacenter proxy input
|
|
"""
|
|
|
|
title = "Esxdatacenter Proxy Schema"
|
|
description = "Esxdatacenter proxy schema"
|
|
additional_properties = False
|
|
proxytype = StringItem(required=True, enum=["esxdatacenter"])
|
|
vcenter = StringItem(required=True, pattern=r"[^\s]+")
|
|
datacenter = StringItem(required=True)
|
|
mechanism = StringItem(required=True, enum=["userpass", "sspi"])
|
|
username = StringItem()
|
|
passwords = ArrayItem(min_items=1, items=StringItem(), unique_items=True)
|
|
# TODO Should be changed when anyOf is supported for schemas
|
|
domain = StringItem()
|
|
principal = StringItem()
|
|
protocol = StringItem()
|
|
port = IntegerItem(minimum=1)
|