I am trying to salt librenms. When replacing the original librenms config file, I want the ServerName to be FQDN instead of Ip address. network.get_fqdn returns IP address as well.
{%- from "librenms/map.jinja" import librenms with context -%}
<VirtualHost *:80>
DocumentRoot /opt/librenms/html/
ServerName {{ network.get_fqdn }}
# ServerName {{ grains['ipv4'][0] }}
AllowEncodedSlashes NoDecode
<Directory "/opt/librenms/html/">
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
</VirtualHost>
Help would be appreciated.