Skip to content

Commit cdc8f56

Browse files
committed
Fix template logic
Parameter 'server_type' should be 'master' if the host is in the group 'thinlinc_masters', but not otherwise. This patch prevents the parameter being set to 'master' even if the host is not in this group. Commit 6410106 did not completely remove the requirement for having specific group names in the inventory, and introduced a logic error. With this commit the group requirement remains, but resolves the issue where members of 'agent_servers' would be configured as masters. Fixes #33.
1 parent a75bf7a commit cdc8f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/thinlinc-setup.answers.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ setup-firewall=yes
66
setup-selinux=yes
77
setup-web-integration=yes
88
setup-apparmor=yes
9-
{% if ('thinlinc_masters' not in group_names) or (ansible_facts['fqdn'] in groups['thinlinc_masters']) %}
9+
{% if 'thinlinc_masters' in group_names %}
1010
server-type=master
1111
{% else %}
1212
server-type=agent

0 commit comments

Comments
 (0)