Skip to content

Instantly share code, notes, and snippets.

View garethgreenaway's full-sized avatar

Gareth J. Greenaway garethgreenaway

View GitHub Profile
https://github.com/saltstack/salt/pull/47337.diff
https://github.com/saltstack/salt/pull/47620.diff
https://github.com/saltstack/salt/pull/47960.diff
https://github.com/saltstack/salt/pull/48623.diff
https://github.com/saltstack/salt/pull/48907.diff
https://github.com/saltstack/salt/pull/48936.diff
https://github.com/saltstack/salt/pull/48971.diff
https://github.com/saltstack/salt/pull/48989.diff
https://github.com/saltstack/salt/pull/48990.diff
https://github.com/saltstack/salt/pull/49134.diff
https://github.com/saltstack/salt/pull/54286
https://github.com/saltstack/salt/pull/54163
https://github.com/saltstack/salt/pull/53990
https://github.com/saltstack/salt/pull/53976
https://github.com/saltstack/salt/pull/53622
https://github.com/saltstack/salt/pull/53480
https://github.com/saltstack/salt/pull/53119
https://github.com/saltstack/salt/pull/53019
https://github.com/saltstack/salt/pull/52992
https://github.com/saltstack/salt/pull/52324
https://github.com/saltstack/salt/pull/54286
https://github.com/saltstack/salt/pull/54163
https://github.com/saltstack/salt/pull/54055
https://github.com/saltstack/salt/pull/54037
https://github.com/saltstack/salt/pull/54035
https://github.com/saltstack/salt/pull/54004
https://github.com/saltstack/salt/pull/53990
https://github.com/saltstack/salt/pull/53987
https://github.com/saltstack/salt/pull/53976
https://github.com/saltstack/salt/pull/53939
# -*- coding: utf-8 -*-
# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Testing libs
from tests.support.unit import TestCase
from tests.support.mock import patch, mock_open, MagicMock
# Import Salt Libs
@garethgreenaway
garethgreenaway / gist:610de6db66a4cdfa7d126897229f1578
Last active July 1, 2019 16:02
Making Kubernetes Delicious With A Pinch of Salt
Making Kubernetes Delicious With A Pinch of Salt
Containers are a great way to bundle and run your applications. In a production environment, there is a need to manage the
containers that run the applications and ensure that there is no downtime. If a container goes down, another container needs
to restart. Wouldn’t it be easier if this behavior was handled by a system?
Here is where Kubernetes comes to the rescue by providing a framework to run distributed systems resiliently. Taking care of
various requirements such as scaling, failover, deployment patterns, and more.
By introducing a powerful automation and configuration management tool such as SaltStack, a Kubernetes cluster can be deployed,
[DEBUG ] Closing AsyncZeroMQReqChannel instance
Exception in thread 20190509144038518246:
Traceback (most recent call last):
File "/home/gareth/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/home/gareth/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/gareth/code/salt/salt/minion.py", line 3584, in _target
Minion._thread_return(minion_instance, opts, data)
File "/home/gareth/code/salt/salt/minion.py", line 1775, in _thread_return
#0 0x00007ffff637cd45 in OPENSSL_init_crypto () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#1 0x00007ffff4fe3038 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#2 0x00007ffff4fe2a9a in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#3 0x00007ffff51f759b in _ctypes_callproc () from /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
#4 0x00007ffff51f6be5 in ?? () from /usr/lib/python2.7/lib-dynload/_ctypes.x86_64-linux-gnu.so
#5 0x000055555563c0c3 in PyObject_Call ()
#6 0x000055555565535f in PyEval_EvalFrameEx ()
#7 0x000055555564d9f5 in PyEval_EvalCodeEx ()
#8 0x0000555555655b78 in PyEval_EvalFrameEx ()
#9 0x000055555564d9f5 in PyEval_EvalCodeEx ()
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index 9c4e6bd7c4..38494079e3 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -518,6 +518,7 @@ VALID_OPTS = {
# The number of seconds to sleep between retrying an attempt to resolve the hostname of a
# salt master
'retry_dns': float,
+ 'retry_dns_count': float,
C[INFO ] MWorkerQueue under PID 20071 is closing
[INFO ] MWorkerQueue under PID 20072 is closing
[INFO ] MWorkerQueue under PID 20075 is closing
[INFO ] MWorkerQueue under PID 20073 is closing
--- Logging error ---
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #converge action: [scp: /tmp/kitchen/srv/salt/.git/objects/pack/pack-364f76c88f1fbdb840c0e00741df11df2e43bbe8.idx: Permission denied
] on py2-debian-8
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration