Skip to content

Instantly share code, notes, and snippets.

@txmoose
Last active February 26, 2016 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save txmoose/c15966b6655259278f49 to your computer and use it in GitHub Desktop.
Save txmoose/c15966b6655259278f49 to your computer and use it in GitHub Desktop.
Simple sls to install repo.saltstack.com for Ubuntu 14.04
# cat saltstack/repo.sls
salt_repo:
pkgrepo.managed:
- humanname: saltstack
- name: deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main
- file: /etc/apt/sources.list.d/saltstack.list
- key_url: salt://saltstack/SALTSTACK-GPG-KEY.pub
Output of command is:
# salt MINION state.sls repo
MINION:
Data failed to compile:
----------
No matching sls found for 'repo' in env 'base'
ERROR: Minions returned with non-zero exit code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment