Skip to content

Commit

Permalink
Merge pull request #66 from basho-labs/deb-package-bug
Browse files Browse the repository at this point in the history
Fix bug & force immediate reboot
  • Loading branch information
christophermancini authored Feb 14, 2017
2 parents f295cff + 227f725 commit 560786e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@

- name: install riak.conf with templated configuration
template: "src={{ riak_conf_template }} dest=/etc/riak/riak.conf owner=root group=root mode=0444 backup=yes"
notify: restart riak

- name: install riak_shell.config with templated configuration
template: "src={{ riak_shell_conf_template }} dest=/etc/riak/riak_shell.config owner=root group=root mode=0444"
when: riak_package == "riak-ts" and riak_shell_nodes is defined
notify: restart riak

- name: Make certain Riak is started and set to start on boot
service: name=riak enabled=yes state=started
- name: Reboot Riak to accept the new config and ensure it is enabled to start at bootup
service: name=riak enabled=yes state=restarted

- name: Wait for Riak to start up before continuing
wait_for: "delay=5 timeout=30 host={{ riak_pb_bind_ip }} port={{ riak_pb_port }} state=started"
Expand Down
4 changes: 2 additions & 2 deletions templates/deb_repo.list.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
deb https://packagecloud.io/basho/{{ riak_package }}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} main
deb-src https://packagecloud.io/basho/{{ riak_package }}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} main
deb https://packagecloud.io/basho/{% if 'riak-ts' in riak_package %}riak-ts{% else %}riak{% endif %}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} main
deb-src https://packagecloud.io/basho/{% if 'riak-ts' in riak_package %}riak-ts{% else %}riak{% endif %}/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} main

0 comments on commit 560786e

Please sign in to comment.