Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_state_file.sls:
- hdfs-tmpdir-absent:
- module.run:
- - name: hadoop.dfs_absent
- - path: /tmp_salt
- Running state.sls my_state_file return:
- ID: hdfs-tmpdir-absent
- Function: module.run
- Name: hadoop.dfs_absent
- Result: True
- Comment: Module function hadoop.dfs_absent executed
- Changes:
- Running the execution from command line:
- [root@hd-qa-apps1 salt]# salt-call hadoop.dfs_absent /tmp_salt; echo $?
- [INFO ] Executing command 'hdfs dfs -stat /tmp_salt' in directory '/root'
- [INFO ] output: 2014-06-20 01:01:05
- local:
- False
- 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement