pip and docker module for saltstack

This commit is contained in:
CLEMENT Iwan
2018-11-11 19:15:56 +01:00
parent 397f1c4ff8
commit 2c0bda0546

View File

@@ -64,6 +64,11 @@ Install Docker-CE:
- pkgs: - pkgs:
- docker-ce - docker-ce
- docker-compose - docker-compose
{% if grains['os'] == 'Debian' %}
- python-pip
{% elif grains['os'] == 'CentOS'%}
- python2-pip
{% endif %}
IwanDocker: IwanDocker:
user.present: user.present:
@@ -85,4 +90,8 @@ Lets start docker:
cmd.run: cmd.run:
- name: systemctl start docker - name: systemctl start docker
Lets install docker with pip:
cmd.run:
-name: pip.install docker
{% endif %} {% endif %}