Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e08bd6f3
Commit
e08bd6f3
authored
Jun 17, 2015
by
Jeff Bean
Committed by
Eric Paris
Jun 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure docker daemon
parent
45bdfeac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
0 deletions
+62
-0
all.yml
contrib/ansible/group_vars/all.yml
+8
-0
main.yml
contrib/ansible/roles/docker/defaults/main.yml
+2
-0
main.yml
contrib/ansible/roles/docker/handlers/main.yml
+3
-0
generic-install.yml
contrib/ansible/roles/docker/tasks/generic-install.yml
+6
-0
main.yml
contrib/ansible/roles/docker/tasks/main.yml
+35
-0
main.yml
contrib/ansible/roles/master/meta/main.yml
+4
-0
main.yml
contrib/ansible/roles/node/meta/main.yml
+4
-0
No files found.
contrib/ansible/group_vars/all.yml
View file @
e08bd6f3
...
@@ -14,6 +14,14 @@ cluster_name: kube.local
...
@@ -14,6 +14,14 @@ cluster_name: kube.local
# If a password is needed to sudo to root that password must be set here
# If a password is needed to sudo to root that password must be set here
#ansible_sudo_pass: password
#ansible_sudo_pass: password
# A list of insecure registrys you night need to define
insecure_registrys
:
# - "gcr.io"
# If you need a proxy for the docker daemon define these here
#http_proxy: "http://proxy.example.com:3128"
#https_proxy: "http://proxy.example.com:3128"
# Kubernetes internal network for services.
# Kubernetes internal network for services.
# Kubernetes services will get fake IP addresses from this range.
# Kubernetes services will get fake IP addresses from this range.
# This range must not conflict with anything in your infrastructure. These
# This range must not conflict with anything in your infrastructure. These
...
...
contrib/ansible/roles/docker/defaults/main.yml
0 → 100644
View file @
e08bd6f3
no_proxy
:
"
localhost,127.0.0.0/8,::1,/var/run/docker.sock"
\ No newline at end of file
contrib/ansible/roles/docker/handlers/main.yml
0 → 100644
View file @
e08bd6f3
---
-
name
:
restart docker
service
:
name=docker state=restarted
contrib/ansible/roles/docker/tasks/generic-install.yml
0 → 100644
View file @
e08bd6f3
---
-
name
:
Generic | Install Docker
action
:
"
{{
ansible_pkg_mgr
}}"
args
:
name
:
docker
state
:
latest
contrib/ansible/roles/docker/tasks/main.yml
0 → 100644
View file @
e08bd6f3
---
-
include
:
generic-install.yml
when
:
not is_atomic
-
name
:
Turn down docker logging
lineinfile
:
dest=/etc/sysconfig/docker regexp=^OPTIONS= line=OPTIONS="--selinux-enabled --log-level=warn"
notify
:
-
restart docker
-
name
:
Install http_proxy into docker-network
lineinfile
:
dest=/etc/sysconfig/docker-network regexp=^HTTP_PROXY= line=HTTP_PROXY="{{ http_proxy }}"
when
:
http_proxy is defined
notify
:
-
restart docker
-
name
:
Install https_proxy into docker-network
lineinfile
:
dest=/etc/sysconfig/docker-network regexp=^HTTPS_PROXY= line=HTTPS_PROXY="{{ https_proxy }}"
when
:
https_proxy is defined
notify
:
-
restart docker
-
name
:
Install no-proxy into docker-network
lineinfile
:
dest=/etc/sysconfig/docker-network regexp=^NO_PROXY= line=NO_PROXY="{{ no_proxy }}"
when
:
no_proxy is defined
notify
:
-
restart docker
-
name
:
Add any insecure registrys to docker config
lineinfile
:
dest=/etc/sysconfig/docker regexp=^INSECURE_REGISTRY= line=INSECURE_REGISTRY='{% for reg in insecure_registrys %}--insecure-registry="{{ reg }}" {% endfor %}'
when
:
insecure_registrys is defined and insecure_registrys > 0
notify
:
-
restart docker
-
name
:
Enable Docker
service
:
name=docker enabled=yes state=started
contrib/ansible/roles/master/meta/main.yml
0 → 100644
View file @
e08bd6f3
---
dependencies
:
-
{
role
:
common
}
-
{
role
:
kubernetes
}
contrib/ansible/roles/node/meta/main.yml
0 → 100644
View file @
e08bd6f3
---
dependencies
:
-
{
role
:
docker
}
-
{
role
:
kubernetes
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment