You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:Server: Difference between revisions
imported>Peachey88 m (Update doc) |
imported>Krinkle (cluster -> data center) |
||
Line 89: | Line 89: | ||
-->{{#ifeq: {{lcfirst:{{PAGENAME}}}} | {{Server/name|{{{name|}}}}} | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{Server/name|{{{name|}}}}}}} }}<!-- | -->{{#ifeq: {{lcfirst:{{PAGENAME}}}} | {{Server/name|{{{name|}}}}} | {{DISPLAYTITLE:{{#if:{{NAMESPACE}}|{{NAMESPACE}}:|}}{{Server/name|{{{name|}}}}}}} }}<!-- | ||
Categories: | Categories: | ||
-->[[Category:{{Server/location|{{{location}}}}} | -->[[Category:{{Server/location|{{{location}}}}} data center]]<!-- | ||
-->[[Category:Servers]]<!-- | -->[[Category:Servers]]<!-- | ||
--></includeonly><noinclude><div style="clear: both;"></div> | --></includeonly><noinclude><div style="clear: both;"></div> | ||
Line 96: | Line 96: | ||
This template categorizes the host page into: | This template categorizes the host page into: | ||
* [[:Category:Servers]] | * [[:Category:Servers]] | ||
* a subcategory of [[:Category: | * a subcategory of [[:Category:Data centers]] (based on the <tt>{{{location}}}</tt> parameter) | ||
* a subcategory of [[:Category:Servers by usage]] (based on the <tt>{{{usage}}}</tt>) | * a subcategory of [[:Category:Servers by usage]] (based on the <tt>{{{usage}}}</tt>) | ||
* a subcategory of [[:Category:Servers by status]] (based on the <tt>{{{status}}}</tt>) | * a subcategory of [[:Category:Servers by status]] (based on the <tt>{{{status}}}</tt>) | ||
==Parameters== | ==Parameters== | ||
;location: (required) Which [[:Category: | ;location: (required) Which [[:Category:Data centers|data center]] this server is located in. | ||
;name: (optional: defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt> | ;name: (optional: defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt> | ||
;serial: (optional) | ;serial: (optional) | ||
Line 129: | Line 129: | ||
"location": { | "location": { | ||
"label": "Location", | "label": "Location", | ||
"description": "Which | "description": "Which data center this server is located in.", | ||
"example": "eqiad", | "example": "eqiad", | ||
"type": "string", | "type": "string", |
Revision as of 14:27, 25 March 2022
server | |
Location: | sandbox |
Server group: | Example services |
Node name: | foo.examplenet (fingerprint) |
Status | |
---|---|
Overall: | ![]() |
Icinga?: | host status services status |
Hardware | |
Software |
This template categorizes the host page into:
- Category:Servers
- a subcategory of Category:Data centers (based on the {{{location}}} parameter)
- a subcategory of Category:Servers by usage (based on the {{{usage}}})
- a subcategory of Category:Servers by status (based on the {{{status}}})
Parameters
- location
- (required) Which data center this server is located in.
- name
- (optional: defaults to {{PAGENAME}}
- serial
- (optional)
- usage
- (optional) ID of usage (see Category:Servers by usage for possible values)
- usage-multi
- (optional) Overwrites
usage
for embedding multiple templates directly. - status
- (optional) Use
online
,offline
,unknown
ordecommissioned
(see Template:Server/status) - memory
- (optional)
- cpu
- (optional)
- hdd
- (optional)
- os
- (optional)
- kernel
- (optional)
- usage_version
- (optional)
- server_group
- (optional) Name of organizational server group (not physical per se).
- server_nodename
- (optional) "Node" hostname.
- racktables_id
- (optional) The "object_id" of the server in Racktables
- netbox
- (optional) The "object_id" of the server in Netbox
<templatedata> { "params": { "name": { "label": "Name", "description": "Name of the server", "type": "string", "default": "Server" }, "location": { "label": "Location", "description": "Which data center this server is located in.", "example": "eqiad", "type": "string", "required": true, "suggested": true }, "usage": { "label": "Usage", "description": "Main purpose of the server. See \"Category:Servers by usage\" for expected values.", "type": "string", "suggested": true }, "status": { "label": "Status", "description": "Use one of \"online\", \"offline\", \"unknown\" or \"decom\"", "type": "string", "default": "unknown" } }, "paramOrder": [ "name", "location", "status", "usage" ], "format": "block" } </templatedata>
Usage
{{Server | location = | name = | netbox = | usage = | status = online | server_group = | server_nodename = }}