gateone: Updated to version 1.2
PATCH 1/1 gateone: Updated to version 1.2
From: Dan McDougall <[email protected]>
This new version of Gate One uses a new configuration file format which means the old server.conf is gone. It now stores configuration files in /etc/gateone/conf.d. The /opt/gateone directory is also gone and instead the package installs like a regular Python module in site-packages. SSL certificates/keys are stored in /etc/gateone/ssl/.
The new version requires python-tornado 3.1.1 (which was submitted earlier today) and the python-futures package (which was also submitted today).
An 80oe.conf file has been added specific to OpenEmbedded that replaces the old pre-configured server.conf functionality.
The old patch that removes the init script checks has been deprecated by the use of the --skip_init_scripts option which is now being passed to setup.py.
Lastly, Gate One 1.2 is about twice as fast (benchmarked) as Gate One 1.1 on the Beaglebone platform.
--- ...on.py-Hack-around-broken-gethostname-thin.patch | 26 ++++++++++++++ .../recipes-connectivity/gateone/gateone/80oe.conf | 23 ++++++++++++ .../gateone/gateone/gateone.service | 2 +- .../gateone/gateone/server.conf | 5 --- .../recipes-connectivity/gateone/gateone_git.bb | 42 ++++++++++++++-------- 5 files changed, 77 insertions(+), 21 deletions(-) create mode 100644 meta-oe/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch create mode 100644 meta-oe/recipes-connectivity/gateone/gateone/80oe.conf delete mode 100644 meta-oe/recipes-connectivity/gateone/gateone/server.conf
meta-oe/recipes-connectivity/gateone/gateone/0001-configuration.py-Hack-around-broken-gethostname-thin.patch new file +26 -0
@@ -0,0 +1,26 @@ +From d811d3bdf06d78c93c48bef762c19c392c879077 Mon Sep 17 00:00:00 2001 +From: Koen Kooi <[email protected]> +Date: Tue, 26 Nov 2013 15:54:10 +0100 +Subject: [PATCH] configuration.py: Hack around broken gethostname thingy + +Signed-off-by: Koen Kooi <[email protected]> +--- + gateone/core/configuration.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gateone/core/configuration.py b/gateone/core/configuration.py +index da41cbd..d1c8222 100644 +--- a/gateone/core/configuration.py ++++ b/gateone/core/configuration.py +@@ -162,7 +162,7 @@ def define_options(installed=True): + ] + # Used both http and https above to demonstrate that both are acceptable + try: +- additional_origins = socket.gethostbyname_ex(socket.gethostname()) ++ additional_origins = [] # additional_origins = socket.gethostbyname_ex(socket.gethostname()) + except socket.gaierror: + # Couldn't get any IPs from the hostname + additional_origins = [] +-- +1.8.4.2 +
meta-oe/recipes-connectivity/gateone/gateone/80oe.conf new file +23 -0
@@ -0,0 +1,23 @@ +// Some custom Gate One settings for OpenEmbedded +{ + "*": { + "gateone": { // These settings apply to all of Gate One + "log_file_max_size": 5242880, // 5 megabyte logs for OE by default (default would normally be 100Mb) + "log_file_num_backups": 2, // Default is normally 10 + "origins": ["*"], // Every device has a unique origin + "logging": "info", + "pid_file": "/var/run/gateone.pid", + "session_dir": "/tmp/gateone", + "user_dir": "/var/lib/gateone/users" + }, + "terminal": { + // Disabling session logging for embedded devices is a good idea (limited/slow storage) + "session_logging": false, + "syslog_session_logging": false +// "commands": { +// // For some reason this doesn't work (never asks for the password) +// "login": "setsid /bin/login" // Normally this would emulate logging into the host console +// } + } + } +}
meta-oe/recipes-connectivity/gateone/gateone/gateone.service +1 -1
@@ -4,7 +4,7 @@ ConditionPathExists=|/var/lib/gateone [Service] WorkingDirectory=/var/lib/gateone -ExecStart=/usr/bin/python gateone.py +ExecStart=/usr/bin/python /usr/bin/gateone [Install] WantedBy=multi-user.target
meta-oe/recipes-connectivity/gateone/gateone/server.conf deleted +0 -5
@@ -1,5 +0,0 @@ -session_logging = False -origins = "*" -command = "/var/lib/gateone/plugins/ssh/scripts/ssh_connect.py -S '/tmp/gateone/%SESSION%/%SHORT_SOCKET%' --sshfp -a '-oUserKnownHostsFile=%USERDIR%/%USER%/ssh/known_hosts'" -log_file_prefix = "/var/log/gateone.log" -
meta-oe/recipes-connectivity/gateone/gateone_git.bb +27 -15
80 lines not on this page · raw message
Signature · 1 line
1.9.0