Last active
December 24, 2015 01:29
-
-
Save justlooks/6724543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for i in pillar['info'][grains['nodename']]['components'] %} | |
{{i}}: | |
service: | |
- running | |
{% if i == 'hadoop-hdfs-namenode' %} | |
- require: | |
cmd: sudo -u hdfs hadoop namenode –format | |
sudo -u hdfs hadoop namenode –format: | |
cmd.run | |
{% endif %} | |
{% endfor %} | |
error output: | |
CM1: | |
Data failed to compile: | |
---------- | |
The require or watch statement in state "hadoop-hdfs-namenode" in sls "hadoop.service" needs to be formed as a list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment