aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/puppet-reset-stored
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/puppet-reset-stored')
-rwxr-xr-xshare/hydractl/puppet-reset-stored6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/puppet-reset-stored b/share/hydractl/puppet-reset-stored
index 48a3dc1..090917f 100755
--- a/share/hydractl/puppet-reset-stored
+++ b/share/hydractl/puppet-reset-stored
@@ -3,4 +3,8 @@
# Reset puppet stored configs
#
-mysql puppet -e "drop database puppet ; create database puppet;"
+# Load.
+source $APP_BASE/lib/hydra/functions || exit 1
+hydra_config_load
+
+hydra_truncate_database puppet