Skip to content

Instantly share code, notes, and snippets.

@sroegner
Last active January 2, 2016 07:39
Show Gist options
  • Save sroegner/8271518 to your computer and use it in GitHub Desktop.
Save sroegner/8271518 to your computer and use it in GitHub Desktop.
simple salt example for mongodb on ubuntu
/srv/salt/top.sls
base:
'*':
- mongodb
/srv/salt/mongodb/init.sls
10gen-repo:
pkgrepo.managed:
- name: deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
- file: /etc/apt/sources.list.d/mongodb.list
- keyid: 7F0CEB10
- keyserver: keyserver.ubuntu.com
- refresh: True
mongodb-10gen:
pkg.latest
mongodb:
service.running:
- enable: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment