Verified Commit 8a8633dc authored by Tomáš Sapák's avatar Tomáš Sapák
Browse files

new params for roles

parent ebc29ab6
......@@ -10,6 +10,6 @@
- name: Register node with master
shell: "docker run -d --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes
-v /var/run:/var/run rancher/rancher-agent:v2.0.0 --server https://stable.ics.muni.cz
-v /var/run:/var/run rancher/rancher-agent:v2.0.0 --server {{ domain_name }}
--token {{ token }} --ca-checksum {{ ca_checksum }} --{{ type }}"
when: containers.stdout == ""
......@@ -13,7 +13,7 @@
remote_user: "{{ REMOTE_USER }}"
become: "{{ BECOME }}"
roles:
- ssh-key
- { role: ssh-key, vars: { SSH_KEY: [ 'sapak139890.pub' ] } }
- vim
- base-system
- docker
......
......@@ -24,7 +24,7 @@
remote_user: "debian"
become: "true"
roles:
- ssh-key
- { role: ssh-key, vars: { SSH_KEY: [ 'sapak139890.pub' ] } }
- vim
- base-system
- docker
......@@ -41,6 +41,7 @@
vars:
token: "{{ token_c }}"
ca_checksum: "{{ ca_checksum_c }}"
domain_name: "https://barn.ics.muni.cz"
type: 'etcd'
- hosts: control
......@@ -53,6 +54,7 @@
vars:
token: "{{ token_c }}"
ca_checksum: "{{ ca_checksum_c }}"
domain_name: "https://barn.ics.muni.cz"
type: 'controlplane'
- hosts: worker
......@@ -65,4 +67,5 @@
vars:
token: "{{ token_c }}"
ca_checksum: "{{ ca_checksum_c }}"
domain_name: "https://barn.ics.muni.cz"
type: 'worker'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment