From 7b4d5e80ab5bf5d29b38dc617317024373ae1fd0 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Fri, 10 Mar 2023 10:44:35 +0100
Subject: Add data.d
---
CHANGELOG.md | 4 ++++
lib/subcommands/init.bash | 1 +
2 files changed, 5 insertions(+)
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"
--
cgit v1.1