Changeset 10568 in genesis


Ignore:
Timestamp:
Apr 24, 2012, 7:39:21 PM (13 years ago)
Author:
rick
Message:

Put service which are used in the motd listing.

Related-To: nodefactory#125

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10567 r10568  
    709709def generate_motd(datadump):
    710710  """ Generate configuration file '/etc/motd' """
    711   output = """\
     711  output = Template("""\
    712712FreeBSD 9.0-RELEASE (kernel.wleiden) #0 r230587: Sun Jan 29 17:09:57 CET 2012
    713713
    714   WWW: %(autogen_fqdn)s - http://www.wirelessleiden.nl
    715   Loc: %(location)s
    716 
     714  WWW: {{ autogen_fqdn }} - http://www.wirelessleiden.nl
     715  Loc: {{ location }}
     716
     717Services:
     718{% if board == "ALIX2" -%}
     719 - Core Node
     720{% else -%}
     721 - Hulp Node
     722{% endif -%}
     723{% if service_proxy -%}
     724 - Normal Proxy
     725{% endif -%}
     726{% if service_ileiden -%}
     727 - iLeiden Proxy
     728{% endif %}
    717729Interlinks:
    718 """ % datadump
     730""").render(datadump)
    719731
    720732  # XXX: This is a hacky way to get the required data
Note: See TracChangeset for help on using the changeset viewer.