Skip to content

Instantly share code, notes, and snippets.

Created August 8, 2017 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1afdf704960a4c19976ed81ce352fb5b to your computer and use it in GitHub Desktop.
Save anonymous/1afdf704960a4c19976ed81ce352fb5b to your computer and use it in GitHub Desktop.
{% set listIP = grains['ip4_interfaces']['eth0'].split('.') %}
{% testIP = listIP[0] + '.' + listIP[1] %}
{% if testIP == '192.168' %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment