You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Template:Server: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
imported>Krinkle
No edit summary
Line 9: Line 9:
{{#if: {{{server_group|<noinclude>demo</noinclude>}}}|
{{#if: {{{server_group|<noinclude>demo</noinclude>}}}|
{{!}} bgcolor=#efefef {{!}} Server group:
{{!}} bgcolor=#efefef {{!}} Server group:
{{!}} bgcolor=#f8f8ff {{!}} {{Server/server group|{{{server_group|Example services}}}}}
{{!}} bgcolor=#f8f8ff {{!}} {{{server_group|Example services}}}
{{!}}-
{{!}}-
}}
}}
Line 33: Line 33:
  | {{#ifeq: {{lc:{{{status|unknown}}}}} | decommissioned
  | {{#ifeq: {{lc:{{{status|unknown}}}}} | decommissioned
   | {{{usage|unknown}}}
   | {{{usage|unknown}}}
   | {{Server/usage|{{#if:{{{usage|}}}|{{{usage|}}}|unknown}}}}
   | {{Server/usage|{{#if:{{{usage|}}}|{{{usage|}}}|{{#if:{{{server_group|}}}|{{{server_group}}}|unknown}}}}}}
   }}
   }}
}}
}}
Line 48: Line 48:
{{!}} bgcolor=#efefef {{!}} Ganglia<sup>[[Ganglia|?]]</sup>:
{{!}} bgcolor=#efefef {{!}} Ganglia<sup>[[Ganglia|?]]</sup>:
{{!}} bgcolor=#f8f8ff {{!}} {{Ganglia
{{!}} bgcolor=#f8f8ff {{!}} {{Ganglia
   | cluster = {{Server/server group|{{{server_group|Example services}}}}}
   | cluster = {{{server_group|Example services}}}
   | node = {{{server_nodename|foo.examplenet}}}
   | node = {{{server_nodename|foo.examplenet}}}
   }} <includeonly>[[Category:Server group:{{Server/server group|{{{server_group}}}}}|{{{server_nodename}}}]]</includeonly>
   }} <includeonly>[[Category:Server group:{{{server_group}}}|{{{server_nodename}}}]]</includeonly>
{{!}}-
{{!}}-
}}
}}
Line 132: Line 132:
| racktables_id =  
| racktables_id =  
| usage =  
| usage =  
| status =  
| status = online
| server_group =  
| server_group =  
| server_nodename =  
| server_nodename =  

Revision as of 16:31, 11 March 2016

server
Location: sandbox
Server group: Example services
Node name: foo.examplenet
Status
Overall: Symbol support vote.png Active
Ganglia?: Ganglia status
Icinga?: host status services status
Hardware
Software

This template categorizes the host page into:

Parameters

location
(required) Which cluster this server is located in.
name
(optional: defaults to {{PAGENAME}}
serial
(optional)
usage
(optional) ID of usage (see for possible values)
usage-multi
(optional) Overwrites usage for embedding multiple templates directly.
status
(optional) Use online, offline, unknown or decommissioned (see Template:Server/status)
memory
(optional)
cpu
(optional)
hdd
(optional)
os
(optional)
kernal
(optional)
usage_version
(optional)
server_group
(optional) Name of organizational server group (not physical per se). Should match the "Source" group of the node in Ganglia (passed to {{Ganglia}})
server_nodename
(optional) "Node" hostname. Should match the "Node name" in Ganglia (passed to {{Ganglia}})
racktables_id
(optional) The "object_id" of the server in Racktables

Usage

{{Server
| location = 
| name = 
| racktables_id = 
| usage = 
| status = online
| server_group = 
| server_nodename = 
}}

Example