Browse Source

Add user to override include_vars

We incorrectly added these variables in the pervious commits.

Change-Id: Iea437e4a9c6bfebeb64ec0a0cb80d261e0c9fa5a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/00/622600/2
Paul Belanger 4 years ago
parent
commit
be2bb2acbd
  1. 38
      tasks/config.yaml
  2. 8
      vars/Debian.yaml
  3. 8
      vars/RedHat.yaml

38
tasks/config.yaml

@ -12,15 +12,25 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- name: Install zookeeper configuration.
become: yes
template:
dest: "{{ zookeeper_file_zoo_conf_dest }}"
group: "{{ zookeeper_file_zoo_conf_group }}"
mode: "{{ zookeeper_file_zoo_conf_mode }}"
owner: "{{ zookeeper_file_zoo_conf_owner }}"
src: "{{ zookeeper_file_zoo_conf_src }}"
register: zookeeper_file_zoo_conf
- name: Define zookeeper_file_myid_dest
set_fact:
zookeeper_file_myid_dest: "{{ __zookeeper_file_myid_dest }}"
when: zookeeper_file_myid_dest is not defined
- name: Define zookeeper_file_myid_src
set_fact:
zookeeper_file_myid_src: "{{ __zookeeper_file_myid_src }}"
when: zookeeper_file_myid_src is not defined
- name: Define zookeeper_file_zoo_conf_dest
set_fact:
zookeeper_file_zoo_conf_dest: "{{ __zookeeper_file_zoo_conf_dest }}"
when: zookeeper_file_zoo_conf_dest is not defined
- name: Define zookeeper_file_zoo_conf_src
set_fact:
zookeeper_file_zoo_conf_src: "{{ __zookeeper_file_zoo_conf_src }}"
when: zookeeper_file_zoo_conf_src is not defined
- name: Install zookeeper myid.
become: yes
@ -31,3 +41,13 @@
owner: "{{ zookeeper_file_myid_owner }}"
src: "{{ zookeeper_file_myid_src }}"
register: zookeeper_file_myid
- name: Install zookeeper configuration.
become: yes
template:
dest: "{{ zookeeper_file_zoo_conf_dest }}"
group: "{{ zookeeper_file_zoo_conf_group }}"
mode: "{{ zookeeper_file_zoo_conf_mode }}"
owner: "{{ zookeeper_file_zoo_conf_owner }}"
src: "{{ zookeeper_file_zoo_conf_src }}"
register: zookeeper_file_zoo_conf

8
vars/Debian.yaml

@ -27,8 +27,8 @@
---
__zookeeper_package_name: zookeeperd
zookeeper_file_myid_dest: /etc/zookeeper/conf/myid
zookeeper_file_myid_src: etc/zookeeper/conf/myid
__zookeeper_file_myid_dest: /etc/zookeeper/conf/myid
__zookeeper_file_myid_src: etc/zookeeper/conf/myid
zookeeper_file_zoo_conf_dest: /etc/zookeeper/conf/zoo.cfg
zookeeper_file_zoo_conf_src: etc/zookeeper/conf/zoo.cfg
__zookeeper_file_zoo_conf_dest: /etc/zookeeper/conf/zoo.cfg
__zookeeper_file_zoo_conf_src: etc/zookeeper/conf/zoo.cfg

8
vars/RedHat.yaml

@ -14,10 +14,10 @@
---
__zookeeper_package_name: zookeeper
zookeeper_file_myid_dest: /var/lib/zookeeper/data
__zookeeper_file_myid_dest: /var/lib/zookeeper/data
# NOTE(pabelanger): Avoid creating a symlink, and point to Debian version.
zookeeper_file_myid_src: etc/zookeeper/conf/myid
__zookeeper_file_myid_src: etc/zookeeper/conf/myid
zookeeper_file_zoo_conf_dest: /etc/zookeeper/zoo.cfg
__zookeeper_file_zoo_conf_dest: /etc/zookeeper/zoo.cfg
# NOTE(pabelanger): Avoid creating a symlink, and point to Debian version.
zookeeper_file_zoo_conf_src: etc/zookeeper/conf/zoo.cfg
__zookeeper_file_zoo_conf_src: etc/zookeeper/conf/zoo.cfg

Loading…
Cancel
Save