
###############################################################################
#

# This role is for "Windows Server Update Service".
# See: https://technet.microsoft.com/en-us/library/hh852340(v=ws.11).aspx

# Import properties.
{% set properties_path = profile_root.replace('.', '/') + '/properties.yaml' %}
{% import_yaml properties_path as props %}

{% set master_minion_id = props['master_minion_id'] %}

{% set pillars_macro_lib = 'lib/pillars_macro_lib.sls' %}
{% from pillars_macro_lib import filter_assigned_hosts_by_minion_hosts_enabled_in_properties with context %}

system_host_roles:

    local_yum_mirrors_role:
        hostname: local-yum-mirrors-role-host
        assigned_hosts:
            {{ filter_assigned_hosts_by_minion_hosts_enabled_in_properties([
                    # NOTE: Salt master minion cannot be assigned
                    #       to `local_wsus_server_role` because
                    #       Salt master is always Linux and
                    #       WSUS is always Windows.
                    'winserv2012_minion',
                ], props)
            }}

###############################################################################
# EOF
###############################################################################


Add Windows Server Update Service - WSUS role
Add Windows Server Update Service - WSUS role

uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states,uvsmtid/common-salt-states