Skip to content

Instantly share code, notes, and snippets.

@wongster80
Created May 15, 2014 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wongster80/233fed9ae698f2d08c6f to your computer and use it in GitHub Desktop.
Save wongster80/233fed9ae698f2d08c6f to your computer and use it in GitHub Desktop.
{% if grains['host'] == 'salt-minion-test-01' %}
# {{ HDFS_LOGS }}:
# file.directory:
# - user: hdfs
# - group: hadoop
# - mode: 755
# - makedirs: True
# {% for DIR in ['/home/hadoop', '/home/hadoop/image', '/mnt/hadoop-namenode'] %}
{% for DIR in DFS_NAME_DIRS %}
{{ DIR }}/dfs/nn:
file.directory:
- user: hdfs
- group: hadoop
- mode: 775
- makedirs: True
{% endfor %}
# {{ JN_DIR }}:
# file.directory:
# - user: hdfs
# - group: hadoop
# - mode: 700
# - makedirs: True
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment