Skip to content

Instantly share code, notes, and snippets.

{% for key in ['foo', 'bar', 'blah', 'blub'] %}
{% if pillar['yourpillar']['config'][key] %}
{{ key }} = {{ pillar['yourpillar']['config'][key] }}
{% endif %}
{% endfor %}
[ERROR ] An un-handled exception was caught by salt's global exception handler:
LookupError: unknown encoding: -----BEGIN PGP SIGNATURE-----
Traceback (most recent call last):
File "/usr/bin/salt-run", line 10, in <module>
salt_run()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 144, in salt_run
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 462, in run
runner.run()
File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 238, in run
MN1221-C0010:
The minion function caused an exception: Traceback (most recent call last):
File "salt/minion.py", line 1019, in _thread_return
File "salt/modules/saltutil.py", line 384, in sync_all
File "salt/modules/saltutil.py", line 250, in sync_modules
File "salt/modules/saltutil.py", line 77, in _sync
File "salt/modules/saltutil.py", line 58, in _get_top_file_envs
File "salt/state.py", line 2924, in __init__
File "salt/state.py", line 564, in __init__
File "salt/state.py", line 688, in load_modules
@eliasp
eliasp / mysqld-systemd-conversation.md
Last active August 29, 2015 14:27
eMail conversation with MySQL team wrt native systemd support

Hi Thayumanavar,

thanks for your response. Some further comments from my side inline below.

best Elias

On 07/30/2015 12:15 PM, thayumanavar wrote:

Hello Elias,

# systemctl restart openvp*** Error in `systemctl': double free or corruption (fasttop): 0x00005560b7796010 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x72cdf)[0x7f9f2b0f3cdf]
/lib64/libc.so.6(+0x7812e)[0x7f9f2b0f912e]
/lib64/libc.so.6(+0x78e66)[0x7f9f2b0f9e66]
systemctl(+0x4df45)[0x5560b75bbf45]
systemctl(+0x4df69)[0x5560b75bbf69]
systemctl(+0xcd5d)[0x5560b757ad5d]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f9f2b0a2b55]
systemctl(+0xe86c)[0x5560b757c86c]
mkdir -p /var/tmp/machines
debootstrap jessie /var/tmp/machines/debian-jessie http://httpredir.debian.org/debian
cd /var/tmp/machines/debian-jessie
# https://github.com/systemd/systemd/issues/2728
tar cf - . | machinectl import-tar - debian-jessie
systemd-nspawn -D /var/lib/machines/debian-jessie passwd -d root
systemd-nspawn -D /var/lib/machines/debian-jessie apt-get update
systemd-nspawn -D /var/lib/machines/debian-jessie apt-get install -y wget ca-certificates dbus
# https://github.com/systemd/systemd/issues/852#issuecomment-127759667

Package: dbus Version: 1.8.20-0+deb8u1

When trying to boot a Debian Jessie container using systemd-nspawn - dbus.service fails as the directive OOMScoreAdjust=-900 can't be applied due to missing privileges in container environments.

dbus.service will report on startup: Starting D-Bus System Message Bus... Started D-Bus System Message Bus.

{% if not 'systemd.sd_booted' in salt %} <======================
# for non-booted systems (e.g. a container during bootstrapping), `timedatectl` can't work
# and `systemd-firstboot` needs to be used instead
{% if not salt['file.is_link']('/etc/localtime') %}
systemd-firstboot-timedate:
cmd.run:
[...]
---
[CRITICAL] Rendering SLS 'base:linux.systemd.timedate' failed: Jinja error:
Traceback (most recent call last):
Oct 05 08:41:56 dev-api-00000000 systemd[1]: Starting Network Service...
Oct 05 08:41:56 dev-api-00000000 systemd-networkd[834]: timestamp of '/etc/systemd/network' changed
Oct 05 08:41:56 dev-api-00000000 systemd-networkd[834]: timestamp of '/lib/systemd/network' changed
Oct 05 08:42:21 dev-api-00000000 systemd[1]: systemd-networkd.service: main process exited, code=exited, status=1/FAILURE
Oct 05 08:42:21 dev-api-00000000 systemd[1]: Failed to start Network Service.
Oct 05 08:42:21 dev-api-00000000 systemd[1]: Unit systemd-networkd.service entered failed state.
Oct 05 08:42:21 dev-api-00000000 systemd[1]: systemd-networkd.service has no holdoff time, scheduling restart.
Oct 05 08:42:21 dev-api-00000000 systemd[1]: Stopping Network Service...
Oct 05 08:42:21 dev-api-00000000 systemd[1]: Starting Network Service...
Oct 05 08:42:21 dev-api-00000000 systemd-networkd[835]: timestamp of '/etc/systemd/network' changed
@eliasp
eliasp / IDEAS.md
Created January 14, 2017 23:51
Servo GSoC Ideas

DBus interface

Adding a DBus interface would allow a lot of different things on Linux DEs.

Usecases

MPRIS

MPRIS is a standardized interface to control media playback.

Having MPRIS capabilities in a browser would allow for global media playback control, which is already possible with nearly every Linux mediaplayer. Making this possible for media playback in browsers follows the trend of more and more applications/platforms becoming web-based.

  • Pause/continue playback of a video without having to open the browser window and locate the corresponding tab