m (+Admin-Toolkit) |
(document NetBox fields) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
|ram= | |ram= | ||
|swap= | |swap= | ||
|admin_toolkit=Yes/No | |||
|ssh_root_keys= | |ssh_root_keys= | ||
|ssh_pam= | |ssh_pam= | ||
Line 17: | Line 18: | ||
|ownership= | |ownership= | ||
|mac= | |mac= | ||
|static_ip= | |||
|netbox_id= | |||
|netbox_url= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 24: | Line 28: | ||
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}<!-- | -->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}<!-- | ||
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1 }} | en | [[Duplicate::Yes| ]] | [[Duplicate::No| ]] }}<!-- | -->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1 }} | en | [[Duplicate::Yes| ]] | [[Duplicate::No| ]] }}<!-- | ||
-->[[Resource category:: | -->[[Resource category::Host| ]]<!-- | ||
-->{{infobox start | -->{{infobox start | ||
|headercolor=#ccccff | |headercolor=#ccccff | ||
Line 32: | Line 36: | ||
}}<!-- | }}<!-- | ||
-->{{infobox row |name=Ort |value=[[Has location::{{{location|}}}]] }}<!-- | -->{{ifnotempty|{{{location|}}} |{{infobox row |name=Ort |value=[[Has location::{{{location|}}}]] }}}}<!-- | ||
-->{{infobox row |name=Zweck |value=[[Has purpose::{{{purpose|}}}]] }}<!-- | -->{{ifnotempty|{{{purpose|}}} |{{infobox row |name=Zweck |value=[[Has purpose::{{{purpose|}}}]] }}}}<!-- | ||
-->{{infobox row |name=OS |value=[[Operating System::{{{os|}}}]] }}<!-- | -->{{ifnotempty|{{{os|}}} |{{infobox row |name=OS |value=[[Operating System::{{{os|}}}]] }}}}<!-- | ||
-->{{infobox row |name=Disks |value={{{disk|}}} }}<!-- | -->{{ifnotempty|{{{disk|}}} |{{infobox row |name=Disks |value=[[Disk size::{{{disk|}}}]] }}}}<!-- | ||
-->{{infobox row |name=RAM |value={{{ram|}}} }}<!-- | -->{{ifnotempty|{{{ram|}}} |{{infobox row |name=RAM |value=[[RAM size::{{{ram|}}}]] }}}}<!-- | ||
-->{{ifnotempty|{{{swap|}}} |{{infobox row |name=Swap | -->{{ifnotempty|{{{swap|}}} |{{infobox row |name=Swap |value=[[Swap size::{{{swap|}}}]] }}}}<!-- | ||
-->{{infobox row |name=Admin-Toolkit |value={{{ | -->{{ifnotempty|{{{admin_toolkit|}}} |{{infobox row |name=Admin-Toolkit |value={{{admin_toolkit|No}}} }}}}<!-- | ||
-->{{infobox row |name=ssh key path |value={{{ssh_root_keys|}}} }}<!-- | -->{{ifnotempty|{{{ssh_root_keys|}}} |{{infobox row |name=ssh key path |value={{{ssh_root_keys|}}} }}}}<!-- | ||
-->{{ifnotempty|{{{ssh_pam|}}} |{{infobox row |name=PAM? |value={{{ssh_pam|}}} }}}}<!-- | -->{{ifnotempty|{{{ssh_pam|}}} |{{infobox row |name=PAM? |value={{{ssh_pam|}}} }}}}<!-- | ||
-->{{ifnotempty|{{{ssh_userlogin|}}} |{{infobox row |name=SSH user login? |value={{{ssh_userlogin}}} }}}}<!-- | -->{{ifnotempty|{{{ssh_userlogin|}}} |{{infobox row |name=SSH user login? |value={{{ssh_userlogin}}} }}}}<!-- | ||
Line 52: | Line 56: | ||
-->{{infobox row |name=Admins |value={{#if:{{{admins|}}}|{{#arraymap:{{{admins|}}}|,|x|[[Has admins::x| ]]{{U|x}}}} |'''FIXME'''}} }}<!-- | -->{{infobox row |name=Admins |value={{#if:{{{admins|}}}|{{#arraymap:{{{admins|}}}|,|x|[[Has admins::x| ]]{{U|x}}}} |'''FIXME'''}} }}<!-- | ||
-->{{ifnotempty|{{{mac|}}} |{{infobox row |name=MAC address |value=[[Has MAC address::{{{mac|}}}]] }}}}<!-- | -->{{ifnotempty|{{{mac|}}} |{{infobox row |name=MAC address |value=[[Has MAC address::{{{mac|}}}]] }}}}<!-- | ||
-->{{ifnotempty|{{{static_ip|}}} |{{infobox row |name=Static IP |value=[[Has IP address::{{{static_ip|}}}]] }}}}<!-- | |||
-->{{ifnotempty|{{{netbox_id|}}} |{{infobox row |name=NetBox ID |value=[https://netbox.chaosdorf.space/dcim/devices/{{{netbox_id}}}/ {{{netbox_id}}}] }}}}<!-- | |||
-->{{ifnotempty|{{{netbox_url|}}} |{{infobox row |name=NetBox URL |value=[{{{netbox_url}}}] }}}}<!-- | |||
--> | --> | ||
|} | |} | ||
[[Category:Administration]] | [[Category:Administration]] | ||
[[Category:Host]] | [[Category:Host]] | ||
</includeonly> | </includeonly> |
Latest revision as of 19:49, 13 December 2018
This is the 'Host' template. It should be called in the following format:
{{Host |name= |location= |purpose= |os= |disk= |ram= |swap= |admin_toolkit=Yes/No |ssh_root_keys= |ssh_pam= |ssh_userlogin= |admins= |ownership= |mac= |static_ip= |netbox_id= |netbox_url= }}
Edit the page to see the template text.