From ba7f39eecfc5a040e8de19f87c9dc08ef9de4282 Mon Sep 17 00:00:00 2001 From: Bogdan Duda Date: Mon, 13 Feb 2017 13:28:24 +0200 Subject: [PATCH 1/2] Fix plugin certs on agent nodes - both plugin.crt and plugin.key need to be copied for the plugin service to start; named configure_plugin tasks accordingly --- tasks/configure_plugin.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure_plugin.yml b/tasks/configure_plugin.yml index e964f26..6457014 100644 --- a/tasks/configure_plugin.yml +++ b/tasks/configure_plugin.yml @@ -6,7 +6,7 @@ - plugin-cert-20b0e0b9-7a4e-4c88-9dd3-7aae1201ac72.key sudo: yes -- name: copy API cert.crt to the control node +- name: copy plugin cert to agent node copy: src: "{{ flocker_local_tempdir }}/plugin-cert-20b0e0b9-7a4e-4c88-9dd3-7aae1201ac72.crt" dest: /etc/flocker/plugin.crt @@ -14,10 +14,10 @@ notify: - restart flocker-docker-plugin -- name: copy API cert.key to the control node +- name: copy plugin key to agent node copy: src: "{{ flocker_local_tempdir }}/plugin-cert-20b0e0b9-7a4e-4c88-9dd3-7aae1201ac72.key" - dest: /etc/flocker/{{ flocker_api_cert_name }}.key + dest: /etc/flocker/plugin.key sudo: yes notify: - restart flocker-docker-plugin From 418bd5f99042a9de7329d0109e40bf0a18241274 Mon Sep 17 00:00:00 2001 From: Bogdan Duda Date: Mon, 13 Feb 2017 13:30:36 +0200 Subject: [PATCH 2/2] Added plugin configuration hint --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 44ca0fa..6c34e02 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ A unique identifier for the API client. Set to True to install the Flocker Plugin for Docker. + flocker_docker_plugin_groupname: flocker_agents + +The groupname of the nodes that docker plugin will be installed - usually same as agent nodes. + ## Example Playbook ---