<commit_before># -*- coding: utf-8 -*-
# vim: ft=jinja

{## Start with  defaults from defaults.sls ##}
{% import_yaml 'hosts/defaults.yaml' as default_settings %}

{##
Setup variable using grains['os_family'] based logic, only add key:values here
that differ from whats in defaults.yaml
##}
{% set os_family_map = salt['grains.filter_by']({
	'Debian': {},
	'Suse': {},
	'Arch': {},
	'RedHat': {},
	'FreeBSD': {
      'file_group': 'wheel',
	},
  },
  grain="os_family",
  merge=salt['pillar.get']('hosts:lookup'))
%}

{## Merge the flavor_map to the default settings ##}
{% do default_settings.hosts.update(os_family_map) %}

{## Merge in hosts:lookup pillar ##}
{% set hosts_settings = salt['pillar.get'](
        'hosts',
        default=default_settings.hosts,
        merge=True
    )
%}<commit_msg>Updated some formatting in the map.jinja file<commit_after># -*- coding: utf-8 -*-
# vim: ft=jinja

{## Start with  defaults from defaults.sls ##}
{% import_yaml 'hosts/defaults.yaml' as default_settings %}

{##
Setup variable using grains['os_family'] based logic, only add key:values here
that differ from whats in defaults.yaml
##}
{% set flavor_map = salt['grains.filter_by'](
  {
    'Debian': {},
    'Suse': {},
    'Arch': {},
    'RedHat': {},
  	'FreeBSD': {
      'file_group': 'wheel',
    },
  },
  grain="os_family",
  merge=salt['pillar.get']('hosts:lookup'))
%}

{## Merge the flavor_map to the default settings ##}
{% do default_settings.hosts.update(flavor_map) %}

{## Merge in hosts:lookup pillar ##}
{% set hosts_settings = salt['pillar.get'](
  'hosts',
  default=default_settings.hosts,
    merge=True
  )
%}
{'fraction_non_alphanumeric': 0.18298653610771115, 'fraction_numerical': 0.0012239902080783353, 'mean_word_length': 4.109375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4365710', 'n_tokens_mistral': 607, 'n_tokens_neox': 568, 'n_words': 128}