mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 21:19:28 -02:30
Initial commit
This commit is contained in:
14
roles/docker/templates/create_cbr.j2
Normal file
14
roles/docker/templates/create_cbr.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create calico bridge cbr0 if it doesn't exist
|
||||
ifaces=$(ifconfig -a | sed 's/[ \t].*//;/^\(lo\|\)$/d' |tr '\n' ' ')
|
||||
if ! [[ "${ifaces}" =~ "cbr0" ]];then
|
||||
brctl addbr cbr0
|
||||
ip link set cbr0 up
|
||||
fi
|
||||
|
||||
# Configure calico bridge ip
|
||||
br_ips=$(ip addr list cbr0 |grep "inet " |cut -d' ' -f6)
|
||||
if ! [[ "${br_ips}" =~ "{{ br_addr }}/{{ overlay_network_host_prefix }}" ]];then
|
||||
ip a add {{ br_addr }}/{{ overlay_network_host_prefix }} dev cbr0
|
||||
fi
|
||||
4
roles/docker/templates/cron_docker-gc.j2
Normal file
4
roles/docker/templates/cron_docker-gc.j2
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
test -x {{ bin_dir }}/docker-gc || exit 0
|
||||
{{ bin_dir }}/docker-gc
|
||||
10
roles/docker/templates/debian.list.j2
Normal file
10
roles/docker/templates/debian.list.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
deb http://debian.arkena.net/debian/ {{ ansible_distribution_release }} main contrib non-free
|
||||
deb-src http://debian.arkena.net/debian/ {{ ansible_distribution_release }} main contrib non-free
|
||||
deb http://debian.arkena.net/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
|
||||
deb-src http://debian.arkena.net/debian/ {{ ansible_distribution_release }}-updates main contrib non-free
|
||||
deb http://debian.arkena.net/debian-security/ {{ ansible_distribution_release }}/updates main contrib non-free
|
||||
deb-src http://debian.arkena.net/debian-security {{ ansible_distribution_release }}/updates main contrib non-free
|
||||
deb http://debian.arkena.net/debian/ {{ ansible_distribution_release }}-backports main contrib
|
||||
deb-src http://debian.arkena.net/debian/ {{ ansible_distribution_release }}-backports main contrib
|
||||
deb http://debian.arkena.net/debian-smartjog/ {{ ansible_distribution_release }} smartjog
|
||||
deb-src http://debian.arkena.net/debian-smartjog/ {{ ansible_distribution_release }} smartjog
|
||||
15
roles/docker/templates/default-docker.j2
Normal file
15
roles/docker/templates/default-docker.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
# Docker Upstart and SysVinit configuration file
|
||||
|
||||
# Customize location of Docker binary (especially for development testing).
|
||||
#DOCKER="/usr/local/bin/docker"
|
||||
|
||||
# Use DOCKER_OPTS to modify the daemon startup options.
|
||||
{% if overlay_network_plugin is defined and overlay_network_plugin == "calico" %}
|
||||
DOCKER_OPTS="--bridge=cbr0 --iptables=false --ip-masq=false"
|
||||
{% endif %}
|
||||
|
||||
# If you need Docker to use an HTTP proxy, it can also be specified here.
|
||||
#export http_proxy="http://127.0.0.1:3128/"
|
||||
|
||||
# This is also a handy place to tweak where Docker's temporary files go.
|
||||
#export TMPDIR="/mnt/bigdrive/docker-tmp"
|
||||
1
roles/docker/templates/docker.list.j2
Normal file
1
roles/docker/templates/docker.list.j2
Normal file
@@ -0,0 +1 @@
|
||||
deb https://apt.dockerproject.org/repo debian-{{ ansible_distribution_release }} main
|
||||
Reference in New Issue
Block a user