Module: check_mk
Branch: master
Commit: 6daf3ced5295fbead23f931af1373ea8ed04e91f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6daf3ced5295fb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 14 19:45:54 2018 +0200
Use the new --no-tmpfs option to start without a tmpfs
Change-Id: I1f972f2d6ee7a9a4a5268de08220153c14ea8b57
---
docker/docker-entrypoint.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh
index 314c075..d334c62 100755
--- a/docker/docker-entrypoint.sh
+++ b/docker/docker-entrypoint.sh
@@ -30,10 +30,9 @@ fi
# Create the site in case it does not exist
if [ ! -d "/opt/omd/sites/$CMK_SITE_ID" ] ; then
echo "### CREATING SITE '$CMK_SITE_ID'"
- omd create -u 1000 -g 1000 "$CMK_SITE_ID"
+ omd create --no-tmpfs -u 1000 -g 1000 "$CMK_SITE_ID"
omd config "$CMK_SITE_ID" set APACHE_TCP_ADDR 0.0.0.0
omd config "$CMK_SITE_ID" set APACHE_TCP_PORT 5000
- omd config "$CMK_SITE_ID" set TMPFS off
if [ "$CMK_LIVESTATUS_TCP" = "on" ]; then
omd config "$CMK_SITE_ID" set LIVESTATUS_TCP on
Module: check_mk
Branch: master
Commit: c45e841fd27e29778c45bfb51fbd7b370a5c593f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c45e841fd27e29…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 14 19:43:42 2018 +0200
Add handling of website packages to docker README
Change-Id: I8ebc4cce07462802f0919a9d72d4bc878f5e8b5b
---
docker/README.asciidoc | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/docker/README.asciidoc b/docker/README.asciidoc
index 0cecede..1950f83 100644
--- a/docker/README.asciidoc
+++ b/docker/README.asciidoc
@@ -55,6 +55,23 @@ e.g. during update.
|`--restart always` | Always restart the container if it stops.
|=======================================================================
+[[use-packages-from-our-website]]
+Use packages from our Website
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+You may want to use the officially released images from your website,
+which you can find on the download page of each version as of version
+1.5.0p5.
+
+Download the file to your docker node and execute the load command:
+
+....
+docker load -i ~/Downloads/check-mk-enterprise-docker-1.5.0p5.tar.gz
+....
+
+After a successful import you can start creating containers using the
+image `checkmk/check-mk-enterprise:1.5.0p5`.
+
[[listen-on-http-https-standard-ports]]
Listen on HTTP / HTTPS standard ports
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Module: check_mk
Branch: master
Commit: 3450067b561a0951394eb222b7982d0f0c6ef1af
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3450067b561a09…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 8 08:51:36 2018 +0200
synchronize_profile_to_sites: Cleanup access to private _logger member
Change-Id: Ib292a11151bd77eaaad37a6523473514cf6bcf5e
---
cmk/gui/plugins/userdb/ldap_connector.py | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/cmk/gui/plugins/userdb/ldap_connector.py b/cmk/gui/plugins/userdb/ldap_connector.py
index 7e8e088..40446aa 100644
--- a/cmk/gui/plugins/userdb/ldap_connector.py
+++ b/cmk/gui/plugins/userdb/ldap_connector.py
@@ -1085,7 +1085,7 @@ class LDAPUserConnector(UserConnector):
# Synchronize new user profile to remote sites if needed
if pw_changed and not changed and config.has_wato_slave_sites():
- synchronize_profile_to_sites(self, user_id, user)
+ synchronize_profile_to_sites(self._logger, user_id, user)
if changed:
for key, (old_value, new_value) in sorted(changed.items()):
@@ -1884,15 +1884,17 @@ ldap_attribute_plugins['groups_to_roles'] = {
# Hopefully we have no large bulks of users changing their passwords at the same
# time. In this case the implementation does not scale well. We would need to
# change this to some kind of profile bulk sync per site.
-def synchronize_profile_to_sites(connection, user_id, profile):
+# TODO: Should we move this to watolib?
+def synchronize_profile_to_sites(logger, user_id, profile):
import cmk.gui.sites as sites
import cmk.gui.watolib as watolib # TODO: Cleanup
+ # TODO: We only need to do this for login sites!
remote_sites = [(site_id, config.site(site_id))
for site_id in config.sitenames()
if not config.site_is_local(site_id) ]
- connection._logger.info('Credentials changed: %s. Trying to sync to %d sites' %
+ logger.info('Credentials changed: %s. Trying to sync to %d sites' %
(user_id, len(remote_sites)))
num_disabled = 0
@@ -1920,11 +1922,11 @@ def synchronize_profile_to_sites(connection, user_id, profile):
num_succeeded += 1
else:
num_failed += 1
- connection._logger.info(' FAILED [%s]: %s' % (site_id, result))
+ logger.info(' FAILED [%s]: %s' % (site_id, result))
# Add pending entry to make sync possible later for admins
if config.wato_enabled:
watolib.add_change("edit-users", _('Password changed (sync failed: %s)') % result,
add_user=False, sites=[site_id], need_restart=False)
- connection._logger.info(' Disabled: %d, Succeeded: %d, Failed: %d' %
+ logger.info(' Disabled: %d, Succeeded: %d, Failed: %d' %
(num_disabled, num_succeeded, num_failed))
Module: check_mk
Branch: master
Commit: ec75090ee1ab5a7ef996a8125fd147bd4be6ba7a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec75090ee1ab5a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 8 08:55:09 2018 +0200
6430 FIX LDAP: Sync detected password changes only to login sites
This is a minor performance improvement. The number of destination sites
a user profile is synchronized to in case a password change is detected
in LDAP is reduced to the sites where access to the GUI is allowed.
Change-Id: I7a088fe629a9ade5318ed22669c79edcb7a2506b
---
.werks/6430 | 12 ++++++++++++
cmk/gui/plugins/userdb/ldap_connector.py | 4 +---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/6430 b/.werks/6430
new file mode 100644
index 0000000..0c81e7c
--- /dev/null
+++ b/.werks/6430
@@ -0,0 +1,12 @@
+Title: LDAP: Sync detected password changes only to login sites
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1533711208
+Class: fix
+
+This is a minor performance improvement. The number of destination sites
+a user profile is synchronized to in case a password change is detected
+in LDAP is reduced to the sites where access to the GUI is allowed.
diff --git a/cmk/gui/plugins/userdb/ldap_connector.py b/cmk/gui/plugins/userdb/ldap_connector.py
index 40446aa..f66cce8 100644
--- a/cmk/gui/plugins/userdb/ldap_connector.py
+++ b/cmk/gui/plugins/userdb/ldap_connector.py
@@ -1889,10 +1889,8 @@ def synchronize_profile_to_sites(logger, user_id, profile):
import cmk.gui.sites as sites
import cmk.gui.watolib as watolib # TODO: Cleanup
- # TODO: We only need to do this for login sites!
remote_sites = [(site_id, config.site(site_id))
- for site_id in config.sitenames()
- if not config.site_is_local(site_id) ]
+ for site_id in config.get_login_sites() ]
logger.info('Credentials changed: %s. Trying to sync to %d sites' %
(user_id, len(remote_sites)))