This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This service will unlock all ZFS pools at boot time | |
# It should live in | |
# /etc/systemd/system/zfs-load-key.service | |
# Enable it with | |
# systemctl enable zfs-load-key.service | |
[Unit] | |
Description=Load encryption keys | |
DefaultDependencies=no | |
Before=zfs-mount.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# E.g. ansible-playbook nested-virt.yaml --extra-vars target=127.0.0.1 | |
--- | |
- hosts: "{{target}}" | |
tasks: | |
- name: Disable reverse path filtering (default) | |
sysctl: > | |
name=net.ipv4.conf.default.rp_filter | |
value=0 | |
state=present | |
- name: Disable reverse path filtering (all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import salt.client | |
import argparse | |
import sys | |
import fnmatch | |
import unittest | |
# Filter out results from state modules that don't have useful test | |
# such as svn.latest and pkg.refresh_db. | |
# Represent as a list of 4-tuples of globs: (module, state_id, state_name, function) |