Changeset 10391 in genesis for tools/yaml2nag.py


Ignore:
Timestamp:
Apr 8, 2012, 10:52:22 AM (13 years ago)
Author:
rick
Message:

Fix typo in hostgroup.

While here, fix the wrong key autogen_fqdn and introduce autogen_realname which does this the proper way.

Related-To: beheer#176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/yaml2nag.py

    r10388 r10391  
    3636
    3737    if datadump['ileiden']:
    38       hostgroups.append('node-ileiden')
     38      hostgroups.append('nodes-ileiden')
    3939
    4040    datadump['hostgroups'] = ','.join(hostgroups)
     
    4242define host{
    4343  use        host-pnp
    44   host_name  %(nodename)s
    45   alias      %(nodename)s
     44  host_name  %(autogen_realname)s
     45  alias      %(autogen_realname)s
    4646  address    %(masterip)s
    4747  hostgroups %(hostgroups)s
Note: See TracChangeset for help on using the changeset viewer.