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>Krinkle m (Fix errors from Category:Pages with ignored display titles) |
imported>Peachey88 m (Update doc) |
||
Line 25: | Line 25: | ||
{{!}} bgcolor=#efefef {{!}} [[Racktables]] ID: | {{!}} bgcolor=#efefef {{!}} [[Racktables]] ID: | ||
{{!}} bgcolor=#f8f8ff {{!}} #[https://racktables.wikimedia.org/index.php?page=object&object_id={{urlencode:{{{racktables_id}}}}} {{{racktables_id}}}] | {{!}} bgcolor=#f8f8ff {{!}} #[https://racktables.wikimedia.org/index.php?page=object&object_id={{urlencode:{{{racktables_id}}}}} {{{racktables_id}}}] | ||
{{!}}- | |||
}} | |||
{{#if: {{{netbox|}}}| | |||
{{!}} bgcolor=#efefef {{!}} [[Netbox]] ID: | |||
{{!}} bgcolor=#f8f8ff {{!}} #[https://netbox.wikimedia.org/dcim/devices/{{urlencode:{{{netbox}}}}}/ {{{netbox}}}] | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
Line 111: | Line 116: | ||
;server_nodename: (optional) "Node" hostname. | ;server_nodename: (optional) "Node" hostname. | ||
;racktables_id: (optional) The "object_id" of the server in [[Racktables]] | ;racktables_id: (optional) The "object_id" of the server in [[Racktables]] | ||
;netbox: (optional) The "object_id" of the server in [[Netbox]] | |||
<templatedata> | <templatedata> | ||
Line 156: | Line 162: | ||
| location = | | location = | ||
| name = | | name = | ||
| | | netbox = | ||
| usage = | | usage = | ||
| status = online | | status = online |
Revision as of 11:50, 5 December 2019
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:Clusters (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 cluster 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 cluster 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 = }}