diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-10 10:44:35 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-10 10:44:35 +0100 |
commit | 7b4d5e80ab5bf5d29b38dc617317024373ae1fd0 (patch) | |
tree | e7e58920e30f2ce6efeb5de2f7bbfc213935210b | |
parent | cad506a3d8097d42d116400a26dbe4897d598b81 (diff) | |
download | bashtard-7b4d5e80ab5bf5d29b38dc617317024373ae1fd0.tar.gz bashtard-7b4d5e80ab5bf5d29b38dc617317024373ae1fd0.tar.bz2 |
Add data.d
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | lib/subcommands/init.bash | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e2434b9..f0fe9b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 playbook. Before an `add` or `sync`, any variables declared to be `required` in the `$BASHTARD_PLAYBOOK_VARS` array will be checked to be non-empty. If any are empty, an error will be thrown and the playbook will not be ran. +- A new directory has been added, `data.d`, for data that should be shared + between playbook runs. This new directory is intended to create a clearer + seperation between a playbook and a user's specific data used by the playbook, + which in turn should make re-using playbooks easier. ### Changed diff --git a/lib/subcommands/init.bash b/lib/subcommands/init.bash index 63eec13..824956e 100644 --- a/lib/subcommands/init.bash +++ b/lib/subcommands/init.bash @@ -23,6 +23,7 @@ init_local() local dirs=( "$BASHTARD_ETCDIR" "$BASHTARD_ETCDIR/conf.d" + "$BASHTARD_ETCDIR/data.d" "$BASHTARD_ETCDIR/hosts.d" "$BASHTARD_ETCDIR/os.d" "$BASHTARD_ETCDIR/playbooks.d" |