summaryrefslogtreecommitdiff
path: root/facts.d
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-23 17:33:17 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-23 17:33:17 +0200
commitaede37be1b70ed4e53081682a6ec4814c348cb49 (patch)
tree3d29d58540a0ec9a71a3894a90268d3be6088a77 /facts.d
parentRemove everything. (diff)
downloadnspawn-aede37be1b70ed4e53081682a6ec4814c348cb49.tar.gz
nspawn-aede37be1b70ed4e53081682a6ec4814c348cb49.tar.xz
Add new modules content.
This module is designed differently. It makes no attempt to manage templates. It still attempts to manage machines, but this should probably move to Puppet tasks or similar, with the static configuration mostly doing cleanup.
Diffstat (limited to 'facts.d')
-rw-r--r--facts.d/btrfs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/facts.d/btrfs.py b/facts.d/btrfs.py
new file mode 100644
index 0000000..dcb6001
--- /dev/null
+++ b/facts.d/btrfs.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python3
+
+import btrfs
+
+with btrfs.FileSystem('/var/lib/machines') as fs:
+ for subvolume in fs.subvolumes():