init.sls 606 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Setup docker.io
  3. #
  4. docker-repo:
  5. pkgrepo.managed:
  6. - comments: "# Docker.io"
  7. - human_name: Docker.io repository
  8. - name: "deb https://download.docker.com/linux/debian {{ grains.oscodename }} stable"
  9. - dist: {{ grains.oscodename }}
  10. - file: /etc/apt/sources.list.d/docker.list
  11. - key_url: https://download.docker.com/linux/debian/gpg
  12. docker-pkgs:
  13. pkg.installed:
  14. - pkgs:
  15. - docker-ce
  16. - docker-ce-cli
  17. - containerd.io
  18. # Install docker-compose via pip *shrug*
  19. python-pip:
  20. pkg.installed
  21. docker-compose:
  22. pip.installed:
  23. - require:
  24. - pkg: python-pip