forked from contiv-experimental/volplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'ansible/' changes from 5936e26..b9e9302
b9e9302 Merge pull request contiv-experimental#197 from mapuri/docker 8ce63b8 bump up versions of contiv services a4ce37f Add support for installing Docker CS engine 641fef9 Merge pull request contiv-experimental#196 from vvb/ovs_fix 135dfdb using the latest openvswitch rpm as in openstak-kilo repo git-subtree-dir: ansible git-subtree-split: b9e930270ae327e27fa66f2325f0fded4844f10b
- Loading branch information
Showing
8 changed files
with
51 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
update_cache: true | ||
state: latest | ||
with_items: | ||
- yum-utils | ||
- ntp | ||
- unzip | ||
- bzip2 | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# This role contains tasks for installing docker service | ||
# | ||
|
||
- name: add docker's public key for CS-engine (redhat) | ||
rpm_key: | ||
key: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e" | ||
state: present | ||
validate_certs: "{{ validate_certs }}" | ||
|
||
- name: add docker CS-engine repos (redhat) | ||
shell: yum-config-manager --add-repo https://packages.docker.com/{{ item }}/yum/repo/main/centos/7 | ||
become: true | ||
with_items: | ||
- "1.10" | ||
- "1.11" | ||
|
||
- name: remove docker (redhat) | ||
yum: name=docker-engine state=absent | ||
|
||
- name: install docker (redhat) | ||
shell: curl https://get.docker.com | sed 's/docker-engine/docker-engine-{{ docker_version }}/' | bash |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
# This role contains tasks for installing docker service | ||
# | ||
|
||
- name: add docker's public key for CS-engine (debian) | ||
apt_key: | ||
url: "https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e" | ||
state: present | ||
validate_certs: "{{ validate_certs }}" | ||
|
||
- name: add docker CS-engine repos (debian) | ||
apt_repository: | ||
repo: "deb https://packages.docker.com/{{ item }}/apt/repo ubuntu-{{ ansible_distribution_release }} main" | ||
state: present | ||
with_items: | ||
- "1.10" | ||
- "1.11" | ||
|
||
- name: install docker (debian) | ||
shell: curl https://get.docker.com | sed 's/docker-engine/--force-yes docker-engine={{ docker_version }}-0~{{ ansible_distribution_release }}/' | bash |