Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin certs on agent nodes - both plugin.crt and plugin.key need… #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---
Expand Down
6 changes: 3 additions & 3 deletions tasks/configure_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
- 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
sudo: yes
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