]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
generate-fog-csv: Ignore missing mac hostvar wip-ignore-mac
authorDavid Galloway <dgallowa@redhat.com>
Wed, 11 Mar 2020 19:17:28 +0000 (15:17 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 11 Mar 2020 19:18:06 +0000 (15:18 -0400)
commit6f1be85f8e99c7bb6293bdfd982064fe78829c6e
tree3fe5e6ff1f4f37250b371df3fc609e54076039f0
parent6dd8b5ee618503894b4e02ff210b2c761766a9d4
generate-fog-csv: Ignore missing mac hostvar

If this is missing in the CSV, FOG will still let you import the host; the MAC field is just blank.  This is fine because we're just using the `[cobbler_managed]` inventory group to define hosts that FOG should manage.  However, some systems (like the refarch switches) are in the `[refarch]` group but don't have MAC addresses.  On top of that, we're not using FOG to reimage the refarch machines so it doesn't matter if the MAC is missing in FOG.

Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/roles/generate-fog-csv/templates/csv.j2