From 2ad2356fbeea945eead1b9190988db952d01e645 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Sat, 9 Jul 2016 10:58:06 +0200 Subject: [PATCH] add owner to repsond-collector --- models/ansible.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/ansible.go b/models/ansible.go index 0833abf..4984813 100644 --- a/models/ansible.go +++ b/models/ansible.go @@ -9,6 +9,7 @@ type Ansible struct { type AnsibleHostVars struct { Address string `json:"ansible_ssh_host"` Hostname string `json:"node_name,omitempty"` + Owner string `json:"owner,omitempty"` Channel24 uint32 `json:"radio24_channel,omitempty"` TxPower24 uint32 `json:"radio24_txpower,omitempty"` Channel5 uint32 `json:"radio5_channel,omitempty"` @@ -28,6 +29,7 @@ func GenerateAnsible(nodes *Nodes, aliases map[string]*Alias) *Ansible { vars := &AnsibleHostVars{ Address: node.Nodeinfo.Network.Addresses[0], Hostname: alias.Hostname, + Owner: alias.Owner, } if alias.Wireless != nil { vars.Channel24 = alias.Wireless.Channel24