003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/salt/config/schemas
usr
/
local
/
lib
/
python3.8
/
site-packages
/
salt
/
config
/
schemas
/
📁
..
📄
__init__.py
(171 B)
📁
__pycache__
📄
common.py
(1.58 KB)
📄
esxcluster.py
(6.19 KB)
📄
esxdatacenter.py
(1.01 KB)
📄
esxi.py
(6.02 KB)
📄
esxvm.py
(15.49 KB)
📄
minion.py
(704 B)
📄
ssh.py
(2.65 KB)
📄
vcenter.py
(1.52 KB)
Editing: vcenter.py
""" :codeauthor: :email:`Rod McKenzie (roderick.mckenzie@morganstanley.com)` :codeauthor: :email:`Alexandru Bleotu (alexandru.bleotu@morganstanley.com)` salt.config.schemas.vcenter ~~~~~~~~~~~~~~~~~~~~~~~~~~~ VCenter configuration schemas """ from salt.utils.schema import ArrayItem, BooleanItem, IntegerItem, Schema, StringItem class VCenterEntitySchema(Schema): """ Entity Schema for a VCenter. """ title = "VCenter Entity Schema" description = "VCenter entity schema" type = StringItem( title="Type", description="Specifies the entity type", required=True, enum=["vcenter"], ) vcenter = StringItem( title="vCenter", description="Specifies the vcenter hostname", required=True ) class VCenterProxySchema(Schema): """ Schema for the configuration for the proxy to connect to a VCenter. """ title = "VCenter Proxy Connection Schema" description = "Schema that describes the connection to a VCenter" additional_properties = False proxytype = StringItem(required=True, enum=["vcenter"]) vcenter = StringItem(required=True, pattern=r"[^\s]+") mechanism = StringItem(required=True, enum=["userpass", "sspi"]) username = StringItem() passwords = ArrayItem(min_items=1, items=StringItem(), unique_items=True) verify_ssl = BooleanItem() ca_bundle = StringItem() domain = StringItem() principal = StringItem(default="host") protocol = StringItem(default="https") port = IntegerItem(minimum=1)
Upload File
Create Folder