Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------
- CONTENT OF states/python-packages/init.sls
- ----------
- python-pip:
- pkg.installed:
- - name: python-pip
- unzip:
- pkg.installed
- python-software-properties:
- pkg.installed:
- - name: python-software-properties
- pipupdate:
- cmd.run:
- - name: pip install pip==8.1.1
- - require:
- - pkg: python-pip
- - reload_modules: True
- requests:
- pip.installed:
- - name: requests
- - require:
- - pkg: python-pip
- --------------------
- CONTENT OF states/docker/init.sls
- --------------------
- {% set docker_version = '1.7.1' %}
- {% set docker_py_version = '1.4.0' %}
- {% set docker_compose_version = '1.3.0' %}
- docker-repo:
- pkgrepo.managed:
- - humanname: Docker PPA
- - name: deb https://get.docker.io/ubuntu docker main
- - keyserver: keyserver.ubuntu.com
- - keyid: 36A1D7869245C8950F966E92D8576A8BA88D21E9
- - require:
- - pkg: python-software-properties
- install-lxc-docker:
- pkg.installed:
- - name: lxc-docker-{{ docker_version }}
- - require:
- - pkgrepo: docker-repo
- {% for bin_file in ['is-container-up-to-date',
- 'is-container-up-to-date-or-absent',
- 'is-container-running',
- 'is-container-exited-happily',
- 'send-deployment-notification',
- 'cleanup-docker-images',
- 'graceful-docker-restart',
- 'docker-tail'] %}
- /usr/local/bin/{{ bin_file }}:
- file.managed:
- - source: salt://docker/files/{{ bin_file }}
- - user: root
- - group: root
- - mode: 755
- {% endfor %}
- # This allows to use the Salt state docker.run
- docker-nsenter:
- cmd.script:
- - name: salt://docker/files/install-nsenter.sh
- - unless: which nsenter
- docker-compose:
- pip.installed:
- - name: docker-compose == {{ docker_compose_version }}
- - require:
- - pkg: python-pip
- - reload_modules: true
- - ignore_installed: true
- docker-py:
- pip.installed:
- - name: docker-py=={{ docker_py_version }}
- - reload_modules: true
- - require:
- - pkg: python-pip
- ----------
- COMMAND OUTPUT
- ----------
- ip-10-1-20-228.ec2.internal:
- ----------
- ID: docker-repo
- Function: pkgrepo.managed
- Name: deb https://get.docker.io/ubuntu docker main
- Result: False
- Comment: The following requisites were not found:
- require:
- pkg: python-software-properties
- Started:
- Duration:
- Changes:
- ----------
- ID: install-lxc-docker
- Function: pkg.installed
- Name: lxc-docker-1.7.1
- Result: False
- Comment: One or more requisite failed: docker.docker-repo
- Started:
- Duration:
- Changes:
- ----------
- ID: docker-compose
- Function: pip.installed
- Name: docker-compose == 1.3.0
- Result: False
- Comment: The following requisites were not found:
- require:
- pkg: python-pip
- Started:
- Duration:
- Changes:
- ----------
- ID: docker-py
- Function: pip.installed
- Name: docker-py==1.4.0
- Result: False
- Comment: The following requisites were not found:
- require:
- pkg: python-pip
- Started:
- Duration:
- Changes:
- Summary for ip-10-1-20-228.ec2.internal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement