init.sls 391 B

1234567891011121314151617
  1. #
  2. # mongodb
  3. #
  4. mongodb-repo-4.2:
  5. pkgrepo.managed:
  6. - humanname: MongoDB Repo
  7. - name: deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main
  8. - file: /etc/apt/sources.list.d/mongodb-org-4.2.list
  9. - key_url: https://www.mongodb.org/static/pgp/server-4.2.asc
  10. mongodb:
  11. pkg.installed:
  12. - name: mongodb-org
  13. service.running:
  14. - name: mongod
  15. - enable: True