Przeglądaj źródła

Make sure any local directories that are assumed exist actually do

Fixes #73
Stephen Muth 8 lat temu
rodzic
commit
925ff41c42
2 zmienionych plików z 12 dodań i 0 usunięć
  1. 3 0
      CHANGELOG.md
  2. 9 0
      tasks/plugins.yml

+ 3 - 0
CHANGELOG.md

@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
 - Rely on the existing sensu repositories to install Uchiwa
 - Use the latest version of the FreeBSD package
 
+### Fixed
+- Make sure any local directories that are assumed exist actually do
+
 ## 1.1.0 2017-04-03
 ### Added
 - Toggle for SSL cert management

+ 9 - 0
tasks/plugins.yml

@@ -10,6 +10,15 @@
       owner: "{{ sensu_user_name }}"
       group: "{{ sensu_group_name }}"
 
+  - name: Ensure local directories exist
+    local_action: file state=directory dest="{{ static_data_store }}/sensu/{{ item }}"
+    sudo: no
+    with_items:
+      - checks
+      - filters
+      - handlers
+      - mutators
+
   - name: Ensure any remote plugins defined are present
     shell: sensu-install -p {{ item }}
     with_items: "{{ sensu_remote_plugins }}"