{# Copyright (C) 2013-2019 Maciej Delmanowski <drybjed@gmail.com>
 # Copyright (C) 2014-2019 <https://debops.org/>
 # SPDX-License-Identifier: GPL-3.0-only
 #}
{% set users__tpl_shells = [] %}
{% for shell in ((users__combined_accounts | parse_kv_items
                  | selectattr("state", "equalto", "present")
                  | selectattr("shell", "defined")
                  | map(attribute="shell")|list) + [ users__default_shell ] | unique | list) %}
{%   if shell in users__shell_package_map.keys() %}
{%     set _ = users__tpl_shells.append(users__shell_package_map[shell]) %}
{%   endif %}
{% endfor %}
{{ users__tpl_shells | to_json }}
