Skip to content

Instantly share code, notes, and snippets.

@mmastoras
Last active August 7, 2017 19:15
Show Gist options
  • Save mmastoras/c0324be6d316ea2ff116ce1165a94ce4 to your computer and use it in GitHub Desktop.
Save mmastoras/c0324be6d316ea2ff116ce1165a94ce4 to your computer and use it in GitHub Desktop.
sed replace string with contents of file
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