Template:Host: Difference between revisions

Template page
(+ownership)
(document NetBox fields)
 
(27 intermediate revisions by 3 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 16: Line 17:
|admins=
|admins=
|ownership=
|ownership=
|mac=
|static_ip=
|netbox_id=
|netbox_url=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly><!--
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #eee; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
-->{{#if:{{{image|}}}|[[Has image::{{{image|}}}| ]]|[[Has no image::true| ]]}}<!--
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>[[Hostname::{{{name}}}]]</big>
-->{{#ifeq: {{{has label|}}} | Yes | [[Has label::Yes| ]] | [[Has label::No| ]] }}<!--
|-
-->{{#ifeq: {{#titleparts: {{PAGENAME}} | |-1 }} | en | [[Duplicate::Yes| ]] | [[Duplicate::No| ]] }}<!--
| Location
-->[[Resource category::Host| ]]<!--
| [[Has location::{{{location|}}}]]
-->{{infobox start
|-
|headercolor=#ccccff
| Zweck
|name=[[Hostname::{{{name}}}]]
| [[Has purpose::{{{purpose|}}}]]
|image={{{image|}}}
|-
|description={{{description|}}}
| OS
}}<!--
| [[Operating System::{{{os|}}}]]
 
|-
-->{{ifnotempty|{{{location|}}}        |{{infobox row |name=Ort      |value=[[Has location::{{{location|}}}]] }}}}<!--
| Disks
-->{{ifnotempty|{{{purpose|}}}        |{{infobox row |name=Zweck     |value=[[Has purpose::{{{purpose|}}}]] }}}}<!--
| {{{disk|}}}
 
|-
-->{{ifnotempty|{{{os|}}}              |{{infobox row |name=OS       |value=[[Operating System::{{{os|}}}]] }}}}<!--
| RAM
-->{{ifnotempty|{{{disk|}}}            |{{infobox row |name=Disks     |value=[[Disk size::{{{disk|}}}]] }}}}<!--
| {{{ram|}}}
-->{{ifnotempty|{{{ram|}}}            |{{infobox row |name=RAM       |value=[[RAM size::{{{ram|}}}]]  }}}}<!--
|-
-->{{ifnotempty|{{{swap|}}}           |{{infobox row |name=Swap      |value=[[Swap size::{{{swap|}}}]] }}}}<!--
{{#if:{{{swap|}}}|{{!}}Swap}}
 
{{#if:{{{swap|}}}|{{!}}{{{swap|}}}}}
-->{{ifnotempty|{{{admin_toolkit|}}}   |{{infobox row |name=Admin-Toolkit |value={{{admin_toolkit|No}}} }}}}<!--
|-
-->{{ifnotempty|{{{ssh_root_keys|}}}  |{{infobox row |name=ssh key path |value={{{ssh_root_keys|}}} }}}}<!--
| ssh key path
-->{{ifnotempty|{{{ssh_pam|}}}         |{{infobox row |name=PAM?            |value={{{ssh_pam|}}}      }}}}<!--
| {{{ssh_root_keys|}}}
-->{{ifnotempty|{{{ssh_userlogin|}}}   |{{infobox row |name=SSH user login? |value={{{ssh_userlogin}}} }}}}<!--
|-
 
{{#if:{{{ssh_pam|}}}|{{!}}PAM?}}
-->{{ifnotempty|{{{ownership|}}}      |{{infobox row |name=Besitzstatus    |value=[[Has ownership::{{{ownership|}}}| ]]{{Ownership|{{{ownership|}}}}} }}}}<!--
{{#if:{{{ssh_pam|}}}|{{!}}{{{ssh_pam|}}}}}
-->{{ifnotempty|{{{contact|}}}        | {{infobox row | name=Kontakt      | value={{{contact|}}}            }}}}<!--
|-
-->{{ifnotempty|{{{contactnick|}}}    | {{infobox row | name=Kontakt      | value={{#arraymap:{{{contactnick|}}}|,|x|{{U|x}}}} }}}}<!--
{{#if:{{{ssh_userlogin|}}}|{{!}}SSH user login?}}
-->{{ifnotempty|{{{use|}}}             | {{infobox row | name=Benutzung    | value=[[Usage condition::{{{use|}}}| ]]{{Usage condition|{{{use|}}}}} }}}}<!--
{{#if:{{{ssh_userlogin|}}}|{{!}}{{{ssh_userlogin|}}}}}
 
|-
-->{{infobox row |name=Admins    |value={{#if:{{{admins|}}}|{{#arraymap:{{{admins|}}}|,|x|[[Has admins::x| ]]{{U|x}}}} |'''FIXME'''}} }}<!--
{{#if:{{{ownership|}}}|{{!}}Besitzstatus[[Has ownership::{{{ownership|}}}| ]]}}
-->{{ifnotempty|{{{mac|}}}             |{{infobox row |name=MAC address    |value=[[Has MAC address::{{{mac|}}}]]      }}}}<!--
{{#switch: {{{ownership|}}}
-->{{ifnotempty|{{{static_ip|}}}       |{{infobox row |name=Static IP      |value=[[Has IP address::{{{static_ip|}}}]] }}}}<!--
| private = {{!}}<span style="color: red">privat</span>
-->{{ifnotempty|{{{netbox_id|}}}       |{{infobox row |name=NetBox ID      |value=[https://netbox.chaosdorf.space/dcim/devices/{{{netbox_id}}}/ {{{netbox_id}}}] }}}}<!--
| lent = {{!}}<span style="color: orange">Leihgabe</span>
-->{{ifnotempty|{{{netbox_url|}}}       |{{infobox row |name=NetBox URL      |value=[{{{netbox_url}}}] }}}}<!--
| club = {{!}}<span style="color: green">Club-Eigentum</span>
 
}}
 
|-
-->
| Admins
| {{#if:{{{admins|}}}|[[Has admins::{{{admins|}}}]]|'''FIXME'''}}
|}
|}
[[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.