Skip to content

Commit

Permalink
Craigs-MacBook-Pro.local
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Apr 24, 2024
1 parent b29fb4e commit 3350b48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion simple/simple.cf
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ bundle agent simple
files:
"$(host_data_dir)/." # trailing /. is a directory
create => "true";
policy_server::
"/usr/bin/cfeinventory.sh"
copy_from => local_dcp("$(this.promise_dirname)/inventory.sh");

commands:
"$(default:sys.bindir)/cf-support -y"
if => isgreaterthan(1,length(lsdir("$(host_data_dir)", "^(?!(\.$|\.\.$)).*", true))),
contain => in_client_data_dir;

policy_server::
"$(this.promise_dirname)/inventory.sh";
"/usr/bin/cfeinventory.sh";

# cf-secret
reports: "The secret is: $(with)" with => execresult("$(sys.cf_secret) decrypt -o - $(this.promise_dirname)/secret.dat", "useshell", "stdout");
Expand Down

0 comments on commit 3350b48

Please sign in to comment.