From d980331ab0e31b3c04b8c6e057bbf4d9a35823e8 Mon Sep 17 00:00:00 2001 From: Pal David Gergely Date: Thu, 31 Jul 2014 14:29:49 +0200 Subject: [PATCH] Creating node[:zabbix][:external_dir] directory, since it will be used later in some recipes of this cookbook --- recipes/default.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index aa2db68..c4dff9f 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -17,4 +17,13 @@ # limitations under the License. # -include_recipe "zabbix" \ No newline at end of file +include_recipe "zabbix" + +# This directory must exists, since some scripts will be put here in some +# recipes in this cookbook +directory node[:zabbix][:external_dir] do + mode 00755 + owner node[:zabbix][:agent][:user] + group node[:zabbix][:agent][:group] + recursive true +end