Last active
August 7, 2017 19:15
-
-
Save mmastoras/c0324be6d316ea2ff116ce1165a94ce4 to your computer and use it in GitHub Desktop.
sed replace string with contents of file
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
sed -i "s/HIPCHAT_AUTH_TOKEN/$(sed 's:/:\\/:g' hipchat_token)/" hipchat_creds.xml | |
sed -i "s/HIPCHAT_UUID/{{ salt['pillar.get']('hipchat:credential_id') }}/" /tmp/hipchat_default_creds.xml: | |
cmd.run: | |
- runas: jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment