Remove downloader host

pull/86/head
Antoine Legrand 2016-01-21 21:18:45 +01:00
parent e95c4739f5
commit 078b67c50f
10 changed files with 13 additions and 29 deletions

View File

@ -36,9 +36,6 @@ These defaults are good for tests purposes.
Edit the inventory according to the number of servers
```
[downloader]
localhost ansible_connection=local ansible_python_interpreter=python2
[kube-master]
10.115.99.31
@ -77,9 +74,6 @@ In node-mesh mode the nodes peers with all the nodes in order to exchange routes
```
[downloader]
localhost ansible_connection=local ansible_python_interpreter=python2
[kube-master]
node1 ansible_ssh_host=10.99.0.26
node2 ansible_ssh_host=10.99.0.27

View File

@ -1,10 +1,7 @@
---
- hosts: downloader
roles:
- { role: download, tags: download }
- hosts: k8s-cluster
roles:
- { role: download, tags: download }
- { role: kubernetes/preinstall, tags: preinstall }
- { role: docker, tags: docker }
- { role: kubernetes/node, tags: node }

View File

@ -1,6 +1,3 @@
[downloader]
localhost ansible_connection=local ansible_python_interpreter=python2
[kube-master]
node1 ansible_ssh_host=10.99.0.26
node2 ansible_ssh_host=10.99.0.27

View File

@ -1,8 +1,5 @@
node1 ansible_connection=local local_release_dir={{ansible_env.HOME}}/releases
[downloader]
node1
[kube-master]
node1

@ -1 +1 @@
Subproject commit d6df09a89721d98e2969a8abf29b4eb5e787fca6
Subproject commit b5015aed8ff5eed9c325911205cfbb23ad0e57be

View File

@ -1,5 +1,5 @@
---
- name: Copy etcd.service systemd file
- name: Configure | Copy etcd.service systemd file
template:
src: etcd.service.j2
dest: /lib/systemd/system/etcd.service
@ -8,7 +8,7 @@
notify:
- restart systemd-etcd
- name: Write calico-node initd script
- name: Configure | Write calico-node initd script
template:
src: deb-etcd.initd.j2
dest: /etc/init.d/etcd
@ -17,11 +17,11 @@
when: init_system == "sysvinit" and ansible_os_family == "Debian"
notify: restart etcd
- name: Create etcd environment vars file
- name: Configure | Create etcd environment vars file
template:
src: etcd.j2
dest: /etc/etcd.env
notify: restart etcd
- name: Ensure etcd is running
- name: Configure | Ensure etcd is running
service: name=etcd state=started enabled=yes

View File

@ -1,17 +1,16 @@
---
- name: Create etcd user
- name: INSTALL | Create etcd user
user: name=etcd shell=/bin/nologin home=/var/lib/etcd
- name: Install etcd binaries
- name: INSTALL | Copy etcd binaries
synchronize:
src: "{{ etcd_bin_dir }}/{{ item }}"
dest: "{{ bin_dir }}"
times: yes
archive: no
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
delegate_to: "{{ inventory_hostname }}"
with_items:
- etcdctl
- etcd
notify: restart etcd

View File

@ -12,7 +12,7 @@
checksum: yes
times: yes
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
delegate_to: "{{ inventory_hostname }}"
- name: Perms kubectl binary
file: path={{ bin_dir }}/kubectl owner=kube mode=0755 state=file

View File

@ -24,7 +24,7 @@
times: yes
archive: no
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
delegate_to: "{{ inventory_hostname }}"
notify:
- restart kubelet
@ -42,7 +42,7 @@
times: yes
archive: no
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
delegate_to: "{{ inventory_hostname }}"
when: kube_network_plugin == "calico"
notify: restart kubelet

View File

@ -6,7 +6,7 @@
archive: no
times: yes
set_remote_user: false
delegate_to: "{{ groups['downloader'][0] }}"
delegate_to: "{{ inventory_hostname }}"
notify: restart calico-node
- name: Calico | install calicoctl