Skip to content

Commit cb3714e

Browse files
authored
Merge pull request #2 from derfian/agent_hostname
Allow setting agent_hostname to a custom value
2 parents 6360b8c + 8b71a83 commit cb3714e

4 files changed

Lines changed: 45 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Change log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [unreleased]
9+
10+
### Added
11+
12+
- `thinlinc_agent_hostname`, a variable that allows you to customize
13+
/vsmagent/agent_hostname parameter on ThinLinc Agent servers.
14+
15+
## [1.0] - 2018-11-22
16+
17+
First release.
18+
19+
### Added
20+
21+
- An Ansible role to install the ThinLinc server software.
22+
23+
[unreleased]: https://github.com/cendio/ansible-role-thinlinc-server/compare/v1.0...HEAD
24+
[1.0]: https://github.com/cendio/ansible-role-thinlinc-server/compare/...v1.0

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ thinlinc_webadm_password: "$6$7cc31a35e02e55ec$hm.1MsloeBJqNKljx9RH88Z/eRKZCka5Z
7070
ThinLinc Web Administration password. This default password is
7171
"thinlinc". Generate new hashes with `/opt/thinlinc/sbin/tl-gen-auth`.
7272

73+
```yaml
74+
thinlinc_agent_hostname: null
75+
```
76+
77+
This allows you to modify the hostname reported by the agent server to
78+
the client on connecting. See [ThinLinc in a NAT/Split-DNS
79+
Environment](https://www.cendio.com/resources/docs/tag/network.html#network_nat)
80+
for details.
81+
82+
Setting `thinlinc_agent_hostname` to null sets this parameter to `ansible_fqdn`.
83+
7384

7485
Examples
7586
--------

defaults/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,12 @@ thinlinc_webadm_password: "$6$7cc31a35e02e55ec$hm.1MsloeBJqNKljx9RH88Z/eRKZCka5Z
2121
# - new: overwrite all local changes with new defaults
2222
# - parameters: auto-migrate old to new configuration
2323
thinlinc_tlsetup_migrate_conf: "old"
24+
25+
26+
# The agent hostname to report to clients. If your server is behind a
27+
# firewall with NAT, this must be set to an address that forwards to
28+
# your server. See
29+
# https://www.cendio.com/resources/docs/tag/network.html#network_nat
30+
#
31+
# The default value is null, which is equal to ansible_fqdn.
32+
thinlinc_agent_hostname: null

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- name: Configure /vsmagent/agent_hostname
4444
tlconfig:
4545
param: /vsmagent/agent_hostname
46-
value: "{{ ansible_fqdn }}"
46+
value: "{{ thinlinc_agent_hostname or ansible_fqdn }}"
4747
notify: restart vsmagent
4848
when: "'thinlinc-agents' in group_names"
4949

0 commit comments

Comments
 (0)