-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '1eeb4d0d80f2c02805b531c09e88658fb72b78a8' into unit-tes…
…t-tags Bring in updates to tools subdir
- Loading branch information
Showing
20 changed files
with
649 additions
and
437 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
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
2 changes: 2 additions & 0 deletions
2
tools/config_management/roles/dev-tools/files/apt-daily.timer.conf
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,2 @@ | ||
[Timer] | ||
Persistent=false |
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
2 changes: 1 addition & 1 deletion
2
tools/config_management/roles/docker-configuration/files/docker.conf
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[Service] | ||
ExecStart= | ||
ExecStart=/usr/bin/docker daemon -H fd:// -H unix:///var/run/alt-docker.sock -H tcp://0.0.0.0:2375 -s overlay --insecure-registry "weave-ci-registry:5000" | ||
ExecStart=/usr/bin/dockerd -H fd:// -H unix:///var/run/alt-docker.sock -H tcp://0.0.0.0:2375 -s overlay --insecure-registry "weave-ci-registry:5000" |
35 changes: 35 additions & 0 deletions
35
tools/config_management/roles/docker-from-docker-ce-repo/tasks/debian.yml
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,35 @@ | ||
--- | ||
# Debian / Ubuntu specific: | ||
|
||
- name: install dependencies for docker repository | ||
package: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: | ||
- apt-transport-https | ||
- ca-certificates | ||
|
||
- name: add apt key for the docker repository | ||
apt_key: | ||
keyserver: hkp://ha.pool.sks-keyservers.net:80 | ||
id: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 | ||
state: present | ||
register: apt_key_docker_repo | ||
|
||
- name: add docker's apt repository ({{ ansible_distribution | lower }}-{{ ansible_distribution_release }}) | ||
apt_repository: | ||
repo: deb https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename|lower }} stable | ||
state: present | ||
register: apt_docker_repo | ||
|
||
- name: update apt's cache | ||
apt: | ||
update_cache: yes | ||
when: apt_key_docker_repo.changed or apt_docker_repo.changed | ||
|
||
- name: install docker-engine | ||
package: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: | ||
- docker-ce={{ docker_version }}* |
35 changes: 8 additions & 27 deletions
35
tools/config_management/roles/docker-from-docker-ce-repo/tasks/main.yml
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 |
---|---|---|
@@ -1,29 +1,10 @@ | ||
# Docker installation from Docker's CentOS Community Edition | ||
# See also: https://docs.docker.com/engine/installation/linux/centos/ | ||
--- | ||
# Set up Docker | ||
# See also: https://docs.docker.com/engine/installation/linux/ubuntulinux/#install | ||
|
||
- name: remove all potentially pre existing packages | ||
yum: | ||
name: '{{ item }}' | ||
state: absent | ||
with_items: | ||
- docker | ||
- docker-common | ||
- container-selinux | ||
- docker-selinux | ||
- docker-engine | ||
# Distribution-specific tasks: | ||
- include: debian.yml | ||
when: ansible_os_family == "Debian" | ||
|
||
- name: install yum-utils | ||
yum: | ||
name: yum-utils | ||
state: present | ||
|
||
- name: add docker ce repo | ||
command: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | ||
|
||
# Note that Docker CE versions do not follow regular Docker versions, but look | ||
# like, for example: "17.03.0.el7" | ||
- name: install docker | ||
yum: | ||
name: 'docker-ce-{{ docker_version }}' | ||
update_cache: yes | ||
state: present | ||
- include: redhat.yml | ||
when: ansible_os_family == "RedHat" |
29 changes: 29 additions & 0 deletions
29
tools/config_management/roles/docker-from-docker-ce-repo/tasks/redhat.yml
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,29 @@ | ||
# Docker installation from Docker's CentOS Community Edition | ||
# See also: https://docs.docker.com/engine/installation/linux/centos/ | ||
|
||
- name: remove all potentially pre existing packages | ||
yum: | ||
name: '{{ item }}' | ||
state: absent | ||
with_items: | ||
- docker | ||
- docker-common | ||
- container-selinux | ||
- docker-selinux | ||
- docker-engine | ||
|
||
- name: install yum-utils | ||
yum: | ||
name: yum-utils | ||
state: present | ||
|
||
- name: add docker ce repo | ||
command: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | ||
|
||
# Note that Docker CE versions do not follow regular Docker versions, but look | ||
# like, for example: "17.03.0.el7" | ||
- name: install docker | ||
yum: | ||
name: 'docker-ce-{{ docker_version }}' | ||
update_cache: yes | ||
state: present |
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
Oops, something went wrong.