<commit_before># Salt (online) master configuration file.

{% if grains['id'] in pillar['system_host_roles']['controller_role']['assigned_hosts'] %}

###############################################################################
# <<< Any RedHat-originated OS
{% if grains['os_platform_type'].startswith('rhel') or grains['os_platform_type'].startswith('fc') %}

{% set resources_macro_lib = 'common/resource_symlinks/resources_macro_lib.sls' %}
{% from resources_macro_lib import get_URI_scheme_abs_links_base_dir_path_from_pillar with context %}

{% set project_name = salt['config.get']('this_system_keys:project_name') %}
{% set profile_name = salt['config.get']('this_system_keys:profile_name') %}
{% set master_minion_id = salt['config.get']('this_system_keys:master_minion_id') %}
{% set default_username = salt['config.get']('this_system_keys:default_username') %}
{% set load_bootstrap_target_envs = salt['config.get']('this_system_keys:load_bootstrap_target_envs') %}

/etc/salt/master:
    file.managed:
        - source: salt://common/salt/master/master.conf
        - template: jinja
        - context:
            auto_accept: {{ pillar['system_features']['target_bootstrap_configuration']['target_minion_auto_accept'] }}
            project_name: {{ project_name }}
            profile_name: {{ profile_name }}
            master_minion_id: {{ master_minion_id }}
            default_username: {{ default_username }}
            resources_links_dir: '{{ get_URI_scheme_abs_links_base_dir_path_from_pillar('salt://', pillar) }}'
            load_bootstrap_target_envs: {{ load_bootstrap_target_envs }}
        - user: root
        - group: root
        - mode: 644

{% endif %}
# >>>
###############################################################################

{% endif %}
<commit_msg>Fix: use `is_generic_profile` in Salt conf updates<commit_after># Salt (online) master configuration file.

{% if grains['id'] in pillar['system_host_roles']['controller_role']['assigned_hosts'] %}

###############################################################################
# <<< Any RedHat-originated OS
{% if grains['os_platform_type'].startswith('rhel') or grains['os_platform_type'].startswith('fc') %}

{% set resources_macro_lib = 'common/resource_symlinks/resources_macro_lib.sls' %}
{% from resources_macro_lib import get_URI_scheme_abs_links_base_dir_path_from_pillar with context %}

{% set is_generic_profile = salt['config.get']('this_system_keys:is_generic_profile') %}
{% set project_name = salt['config.get']('this_system_keys:project_name') %}
{% set profile_name = salt['config.get']('this_system_keys:profile_name') %}
{% set master_minion_id = salt['config.get']('this_system_keys:master_minion_id') %}
{% set default_username = salt['config.get']('this_system_keys:default_username') %}
{% set load_bootstrap_target_envs = salt['config.get']('this_system_keys:load_bootstrap_target_envs') %}

/etc/salt/master:
    file.managed:
        - source: salt://common/salt/master/master.conf
        - template: jinja
        - context:
            auto_accept: {{ pillar['system_features']['target_bootstrap_configuration']['target_minion_auto_accept'] }}
            is_generic_profile: {{ is_generic_profile }}
            project_name: {{ project_name }}
            profile_name: {{ profile_name }}
            master_minion_id: {{ master_minion_id }}
            default_username: {{ default_username }}
            resources_links_dir: '{{ get_URI_scheme_abs_links_base_dir_path_from_pillar('salt://', pillar) }}'
            load_bootstrap_target_envs: {{ load_bootstrap_target_envs }}
        - user: root
        - group: root
        - mode: 644

{% endif %}
# >>>
###############################################################################

{% endif %}

{'fraction_non_alphanumeric': 0.2144552888419942, 'fraction_numerical': 0.0015826958586125032, 'mean_word_length': 5.057507987220447, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6429070', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1108, 'n_words': 153}