[38/45] qpid-dispatch git commit: DISPATCH-834 Add ansible playbook
DISPATCH-834 Add ansible playbook Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/06f5f120 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/06f5f120 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/06f5f120 Branch: refs/heads/master Commit: 06f5f1201fbd95d59b1929448eceef5f602e2d20 Parents: 91df5a6 Author: Ernest Allen Authored: Wed Oct 11 08:33:20 2017 -0400 Committer: Ernest Allen Committed: Wed Oct 11 08:33:20 2017 -0400 -- .../config/deployments/install_dispatch.yaml| 52 1 file changed, 52 insertions(+) -- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/06f5f120/console/config/deployments/install_dispatch.yaml -- diff --git a/console/config/deployments/install_dispatch.yaml b/console/config/deployments/install_dispatch.yaml new file mode 100644 index 000..0ff4107 --- /dev/null +++ b/console/config/deployments/install_dispatch.yaml @@ -0,0 +1,52 @@ +--- +- + hosts: deploy_routers + become: true + + tasks: +- name: install Dispatch Router + block: +- name: install Dispatch Router + dnf: pkg={{item}} state=installed + with_items: +- qpid-dispatch-router +- qpid-dispatch-tools + +- name: handle console + block: +- name: prepare to install console + file: +path: /usr/local/share/qpid-dispatch +state: directory +- name: install console + synchronize: +src: ../../stand-alone +dest: /usr/local/share/qpid-dispatch +archive: no +recursive: yes +delete: yes + when: create_console + +- name: create directories + file: +path: '{{ item }}' +state: directory + with_items: +- /var/log/qdrouterd +- /usr/local/etc/qpid-dispatch + + when: ansible_os_family == "RedHat" + +- name: Copying router configs + copy: +src: '../topologies/{{topology}}/{{item}}.conf' +dest: /usr/local/etc/qpid-dispatch + with_items: '{{ nodes }}' + +- name: stop running routers + action: shell pkill -f qdrouterd + ignore_errors: True + +- name: start routers + shell: "sleep 1 ; qdrouterd --config /usr/local/etc/qpid-dispatch/{{ item }}.conf -d ; sleep 1" + with_items: "{{ nodes }}" - To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org
qpid-dispatch git commit: DISPATCH-834 Add ansible playbook
Repository: qpid-dispatch Updated Branches: refs/heads/config-read-write 91df5a675 -> 06f5f1201 DISPATCH-834 Add ansible playbook Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/06f5f120 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/06f5f120 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/06f5f120 Branch: refs/heads/config-read-write Commit: 06f5f1201fbd95d59b1929448eceef5f602e2d20 Parents: 91df5a6 Author: Ernest Allen Authored: Wed Oct 11 08:33:20 2017 -0400 Committer: Ernest Allen Committed: Wed Oct 11 08:33:20 2017 -0400 -- .../config/deployments/install_dispatch.yaml| 52 1 file changed, 52 insertions(+) -- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/06f5f120/console/config/deployments/install_dispatch.yaml -- diff --git a/console/config/deployments/install_dispatch.yaml b/console/config/deployments/install_dispatch.yaml new file mode 100644 index 000..0ff4107 --- /dev/null +++ b/console/config/deployments/install_dispatch.yaml @@ -0,0 +1,52 @@ +--- +- + hosts: deploy_routers + become: true + + tasks: +- name: install Dispatch Router + block: +- name: install Dispatch Router + dnf: pkg={{item}} state=installed + with_items: +- qpid-dispatch-router +- qpid-dispatch-tools + +- name: handle console + block: +- name: prepare to install console + file: +path: /usr/local/share/qpid-dispatch +state: directory +- name: install console + synchronize: +src: ../../stand-alone +dest: /usr/local/share/qpid-dispatch +archive: no +recursive: yes +delete: yes + when: create_console + +- name: create directories + file: +path: '{{ item }}' +state: directory + with_items: +- /var/log/qdrouterd +- /usr/local/etc/qpid-dispatch + + when: ansible_os_family == "RedHat" + +- name: Copying router configs + copy: +src: '../topologies/{{topology}}/{{item}}.conf' +dest: /usr/local/etc/qpid-dispatch + with_items: '{{ nodes }}' + +- name: stop running routers + action: shell pkill -f qdrouterd + ignore_errors: True + +- name: start routers + shell: "sleep 1 ; qdrouterd --config /usr/local/etc/qpid-dispatch/{{ item }}.conf -d ; sleep 1" + with_items: "{{ nodes }}" - To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org