-
-
Save anonymous/3604ecef12c50c8bd685 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
{% set current_path = salt['environ.get']('PATH', '/bin:/usr/bin') %} | |
{% set mdp_env_var = salt['custmod.mdp_ver']() %} | |
install_tats: | |
cmd.run: | |
- name: "./install_tats -c -u -j10 -n -f" | |
- cwd: /home/tatsbuild/core/trunk | |
- shell: /bin/bash | |
- env: | |
- PATH: {{ ['/usr/local/gcc/bin:/usr/local/bin', current_path]|join(':') }} | |
- MDP_VERSION: {{ mdp_env_var }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/usr/bin/python
import subprocess, shlex
def test():
return True
def mdp_ver():
grpcmd = shlex.split("grep MDP_VERSION /etc/bashrc")
line = subprocess.Popen(grpcmd, stdout=subprocess.PIPE)
VERSION = subprocess.Popen(shlex.split("tail -c 9"), stdin=line.stdout, stdout=subprocess.PIPE)
return VERSION.communicate()[0]