Compile salt grains from grains.d directory
diff --git a/salt/master/minion.sls b/salt/master/minion.sls
index 8ba4fea..d797b9f 100644
--- a/salt/master/minion.sls
+++ b/salt/master/minion.sls
@@ -18,7 +18,6 @@
   file.symlink:
   - target: /srv/salt/minion_keys
   - require:
-    - file: /srv/salt/env/{{ name }}
     - file: /srv/salt/minion_keys
 
 {%- endfor %}
@@ -43,4 +42,4 @@
 
 {%- endif %}
 
-{%- endif %}
\ No newline at end of file
+{%- endif %}
diff --git a/salt/minion.sls b/salt/minion.sls
index 4900389..3c0442b 100644
--- a/salt/minion.sls
+++ b/salt/minion.sls
@@ -7,11 +7,17 @@
 
 salt_minion_grains_dir:
   file.directory:
-  - name: /var/lib/salt/grains
+  - name: /etc/salt/grains.d
   - mode: 700
   - makedirs: true
   - user: root
 
+salt_minion_grains_file:
+  cmd.run:
+  - name: cat /etc/salt/grains.d/* > /etc/salt/grains
+  - require:
+    - file: salt_minion_grains_dir
+
 /etc/salt/minion.d/minion.conf:
   file.managed:
   - source: salt://salt/files/minion.conf