浏览代码

add virt-cluster for wiki

rajven 4 年之前
父节点
当前提交
304333dd82

+ 34 - 0
docs/wiki/foswiki/data/DefaultVirtCluster.txt

@@ -0,0 +1,34 @@
+%META:TOPICINFO{author="roman" comment="reprev" date="1627890919" format="1.1" reprev="10" version="10"}%
+---+!! Кластер виртуализации
+
+%TOC%
+
+---++ Список Host-серверов в кластере %BASETOPIC%
+
+%SEARCH{
+"lc(DeviceType)='kvmhost' and VirtualCluster='%BASETOPIC%'"
+topic="Server*"
+type="query"
+nosearch="on"
+header="|*Name*|*CPU*|*Memory*|*IP*|*Description*|*Rack*|"
+format="| [[$topic][$formfield(DnsName)]] | $formfield(DeviceCPU) | $formfield(DeviceMemory) | $formfield(DeviceIP) | $formfield(Description) | $formfield(Rack) |"
+}%
+
+---++ Виртуальные сервера в облаке
+
+%SEARCH{
+"lc(DeviceType)~'virtual*' and VirtualCluster='%BASETOPIC%'"
+topic="Server*"
+type="query"
+nosearch="on"
+header="|*ID*|*Name*|*Virtualization*|*CPU Count*|*Memory*|*OS*|*IP*|*Description*|"
+format="| $formfield(VmID) | [[$web.$topic][$formfield(DnsName)]] | $formfield(Device Type) | $formfield(Device CPU) | $formfield(Device Memory) | $formfield(Device OS) | $formfield(Device IP) | $formfield(Description) |"
+}%
+
+---++ Добавить
+
+%INCLUDE{IncludeAddVServerCluster}%
+
+---++ Работа
+
+%COMMENT{type="workflow"}%

+ 9 - 0
docs/wiki/foswiki/data/FormVirtCluster.txt

@@ -0,0 +1,9 @@
+%META:TOPICINFO{author="roman" comment="reprev" date="1603006547" format="1.1" reprev="6" version="3"}%
+---++ Data form
+
+| *Name*  | *Type* | *Size* | *Values* |
+| Name | text  | 80 | %BASETOPIC% |
+| Description | text | 80 | |
+| Cluster Type | select | 1 | %INCLUDE{IncludeSelectVirtualCluster}% |
+
+-- Main.RomanDmitriev - 2020/10/05

+ 2 - 0
docs/wiki/foswiki/data/IncludeAddVServer.txt

@@ -4,6 +4,8 @@
      <input type="hidden" name="templatetopic" value="DefaultVirtualHostTemplate" />
      <input type="hidden" name="templatetopic" value="DefaultVirtualHostTemplate" />
      <input type="hidden" name="onlywikiname" value="off" />
      <input type="hidden" name="onlywikiname" value="off" />
      <input type="hidden" name="topicparent" value="%BASETOPIC%" />
      <input type="hidden" name="topicparent" value="%BASETOPIC%" />
+     <input type="hidden" name="VirtualCluster" value="%BASETOPIC%" />
+     <input type="hidden" name="ParentHost" value="%BASETOPIC%" />
      <input type="hidden" name="formtemplate" value="FormVirtual" />
      <input type="hidden" name="formtemplate" value="FormVirtual" />
      <input type="submit" value="Create" />
      <input type="submit" value="Create" />
 </form>
 </form>

+ 9 - 0
docs/wiki/foswiki/data/IncludeAddVirtCluster.txt

@@ -0,0 +1,9 @@
+<form name="newVirtCluster" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%/">
+   * Добавить кластер виртуальных машин:
+     <input type="text" name="topic" value="Cluster" size="40" />
+     <input type="hidden" name="templatetopic" value="DefaultVirtCluster" />
+     <input type="hidden" name="onlywikiname" value="off" />
+     <input type="hidden" name="topicparent" value="%BASETOPIC%" />
+     <input type="hidden" name="formtemplate" value="FormVirtCluster" />
+     <input type="submit" value="Create" />
+</form>

+ 6 - 0
docs/wiki/foswiki/data/IncludeSelectVirtualCluster.txt

@@ -0,0 +1,6 @@
+,
+Ovirt,
+OpenStack,
+OpenNebula,
+Proxmox,
+VmWare