bundlewrap
bundlewrap copied to clipboard
Tutorial series
write a series of tutorials explaining various features in the context of real-life example bundles
triggers and precedes
This can be illustrated nicely by assuming a readonly rootfs:
actions = {
"remount_rw": {
'command': "mount -o remount,rw /"
'precedes': ["file:"],
},
"remount_ro": {
'command': "mount -o remount,ro /"
'triggered_by': ["file:"],
},
}
scaling nodes.py and groups.py
from glob import glob
from os.path import join
nodes = {}
for node in glob(join(repo_path, "nodes", "*.py")):
with open(node, 'r') as f:
exec(f.read())