Skip to content

Instantly share code, notes, and snippets.

@hoonetorg
hoonetorg / zfs-load-key.service
Created June 11, 2022 17:14 — forked from da-n/zfs-load-key.service
Import ZFS pool
# 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
@hoonetorg
hoonetorg / nested-virt.yaml
Created June 5, 2017 13:34 — forked from xsgordon/nested-virt.yaml
Playbook to enable nested virtualization for Intel CPUs on RHEL 7
# 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)
@hoonetorg
hoonetorg / check_salt_state.py
Created February 18, 2016 19:16 — forked from djs52/check_salt_state.py
Nagios Salt check which tests the highstate
#!/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)