Created
June 23, 2017 13:16
-
-
Save guigo2k/019cac182fcc86769de034e93a727a5c to your computer and use it in GitHub Desktop.
Saltstack state for Docker on Debian/Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-repository: | |
| pkg.installed: | |
| - pkgs: | |
| - apt-transport-https | |
| - ca-certificates | |
| - curl | |
| - software-properties-common | |
| cmd.run: | |
| - name: | | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update | |
| docker-install: | |
| pkg.installed: | |
| - name: docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment