Changing CentOS install of master and nodes

The testing repo now had updated packages for kubernetes
Also adding some options to rsync task to work with different users ssh settings
This commit is contained in:
Jeff Bean 2015-06-25 15:15:35 -07:00 committed by Jeffrey Bean
parent 52999cd292
commit a0c312f224
4 changed files with 11 additions and 9 deletions

View File

@ -1,12 +1,16 @@
---
- name: place ssh public key so apiserver can push certs
- name: place ssh public key on other nodes so apiserver can push certs
authorized_key: user=root key="{{ item }}" state=present
with_file:
- '/tmp/id_rsa.pub'
changed_when: false
- name: Copy certificates directly from the apiserver to nodes
synchronize: src={{ kube_cert_dir }}/{{ item }} dest={{ kube_cert_dir }}/{{ item }}
synchronize:
src={{ kube_cert_dir }}/{{ item }}
dest={{ kube_cert_dir }}/{{ item }}
rsync_timeout=30
set_remote_user=no
delegate_to: "{{ groups['masters'][0] }}"
with_items:
- "ca.crt"

View File

@ -1,5 +1,8 @@
---
- name: CentOS | Install kubernetes CentOS style
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
yum:
pkg=kubernetes-master
state=latest
enablerepo=virt7-testing
notify:
- restart daemons

View File

@ -1,5 +1,5 @@
---
- name: CentOS | Install kubernetes CentOS style
yum: pkg=kubernetes state=latest enablerepo=virt7-testing
yum: pkg=kubernetes-node state=latest enablerepo=virt7-testing
notify:
- restart daemons

View File

@ -20,11 +20,6 @@ Vagrant.configure(2) do |config|
node.vm.hostname = "node-#{i}.vms.local"
node.vm.network "private_network", ip: "192.168.1.1#{i}"
node.vm.provision :ansible do |ansible|
ansible.groups = {
"masters" => ["master"],
"nodes" => ["node-1", "node-2"],
"etcd" => ["master"]
}
ansible.host_key_checking = false
ansible.extra_vars = {
ansible_ssh_user: 'vagrant',