Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ics-ans-role-nomachine-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ics-ansible-galaxy
ics-ans-role-nomachine-node
Commits
a68943d1
Commit
a68943d1
authored
2 years ago
by
Stephane Armanet
Browse files
Options
Downloads
Patches
Plain Diff
add session limit per NX node
parent
4f5c9fb8
No related branches found
No related tags found
No related merge requests found
Pipeline
#184780
passed
10 months ago
Changes
4
Pipelines
47
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
tasks/main.yml
+9
-0
9 additions, 0 deletions
tasks/main.yml
templates/nx_server.cfg
+0
-29
0 additions, 29 deletions
templates/nx_server.cfg
templates/nx_server.cfg.j2
+19
-0
19 additions, 0 deletions
templates/nx_server.cfg.j2
with
29 additions
and
29 deletions
defaults/main.yml
+
1
−
0
View file @
a68943d1
...
...
@@ -14,3 +14,4 @@ node_exporter_textfile_dir: /var/lib/node_exporter/
nomachine_node_extra_pkg
:
-
tcpdump
-
filezilla
nomachine_node_max_sessions
:
8
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
9
−
0
View file @
a68943d1
...
...
@@ -20,6 +20,15 @@
mode
:
0644
notify
:
restart_nx
-
name
:
setup nx node server.cfg
template
:
src
:
nx_server.cfg.j2
dest
:
/usr/NX/etc/server.cfg
owner
:
nx
group
:
nx
mode
:
0644
notify
:
restart_nx
-
name
:
setup nx desktop
template
:
src
:
start-desktop
...
...
This diff is collapsed.
Click to expand it.
templates/nx_server.cfg
deleted
100644 → 0
+
0
−
29
View file @
4f5c9fb8
# {{
ansible_managed }}
ConfigFileVersion
4.0
SessionLogLevel
6
SystemLogFile
/var/log/nxserver.log
ConnectionsLimit
30
ConnectionsUserLimit
2
VirtualDesktopsLimit
30
VirtualDesktopsUserLimit
2
EnablePersistentSession
all
EnableClipboard
both
EnableUserDB
0
EnablePasswordDB
0
ConnectPolicy
autocreate=1,autoconnect=1,automigrate=1,
des
ktop=0,dialog=1
StartHTTPDaemon
Automatic
StartNXDaemon
Automatic
ClientConnectionMethods
NX,SSH,HTTP
SSHAuthorizedKeys
authorized_keys2
VirtualDesktopSharing
1
VirtualDesktopMode
2
VirtualDesktopAuthorization
1
PhysicalDesktopSharing
0
UserScriptBeforeSessionStart
"/usr/local/bin/before_session"
UserScriptAfterSessionClose
"/usr/local/bin/after_session"
UserScriptBeforeSessionReconnect
"/usr/local/bin/before_session"
AvailableSessionTypes
unix-remote,unix-console,unix-default,unix-application,physical-
des
ktop,shadow,unix-xsession-default,unix-gnome,unix-xdm,vnc,windows
RunNodeMode
1
EnableFirewallConfiguration
1
EnableScreenLock
0
This diff is collapsed.
Click to expand it.
templates/nx_server.cfg.j2
0 → 100644
+
19
−
0
View file @
a68943d1
# {{ ansible_managed }}
ConfigFileVersion 4.0
SessionLogLevel 6
EnablePasswordDB 0
ClientConnectionMethods NX,SSH
SSHAuthorizedKeys authorized_keys
ConnectionsLimit {{ nomachine_node_max_sessions }}
VirtualDesktopsLimit {{ nomachine_node_max_sessions }}
AvailableSessionTypes unix-remote,unix-console,unix-default,unix-application,physical-desktop,shadow,unix-xsession-default,unix-gnome,unix-xdm,windows
WebReferrer ""
WebRedirect ""
Section "Server"
Name "Connection to localhost"
Host 127.0.0.1
Protocol NX
Port 4000
Authentication password
EndSection
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment