Skip to content

Commit

Permalink
* rename systemUpgrade to OSUpgrade
Browse files Browse the repository at this point in the history
* fix issue in clusterUpgrade with Sasl
  • Loading branch information
116davinder committed Feb 20, 2024
1 parent b2d37cf commit 7f66d2b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
File renamed without changes.
4 changes: 4 additions & 0 deletions clusterUpgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
name: install
tasks_from: download

- name: copy mtls/sasl files
ansible.builtin.import_role:
name: copyFiles

- name: configuring latest Zookeeper version
ansible.builtin.import_role:
name: configure
Expand Down
4 changes: 2 additions & 2 deletions inventory/development/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ zookeeperPrometheusExporterEnabled: true
zookeeperPrometheusExporterHttpPort: 7000

# zookeeper versions
zookeeperVersion: 3.8.0
zookeeperOldVersion: 3.7.1 # only used in removing old versions
zookeeperVersion: 3.9.1
zookeeperOldVersion: 3.8.0 # only used in removing old versions

# use local tar only
zookeeperTarLocation: "/home/pox/zookeeper-cluster-ansible/apache-zookeeper-{{ zookeeperVersion }}-bin.tar.gz"
Expand Down
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ ansible-playbook -i inventory/<environment>/cluster.ini clusterConfigsUpdate.yml
ansible-playbook -i inventory/<environment>/cluster.ini clusterConfigsUpdate.yml -e zookeeperConfigFile=jaas.conf
ansible-playbook -i inventory/<environment>/cluster.ini clusterConfigsUpdate.yml -e zookeeperConfigFile=logback.xml
```
### **To upgrade zookeeper version of cluster**
* Update Required vars in ```inventory/<environment>/group_vars/all.yml``` .

```ansible-playbook -i inventory/<environment>/cluster.ini clusterUpgrade.yml```

### **To upgrade java version of cluster**
* Update Required vars in ```inventory/<environment>/group_vars/all.yml``` .
Expand All @@ -93,7 +97,7 @@ ansible-playbook -i inventory/<environment>/cluster.ini clusterConfigsUpdate.yml
### **To upgrade OS version of cluster**
* Update Required vars in ```inventory/<environment>/group_vars/all.yml``` .

```ansible-playbook -i inventory/<environment>/cluster.ini clusterSystemUpgrade.yml```
```ansible-playbook -i inventory/<environment>/cluster.ini clusterOSUpgrade.yml```

### **To remove old version files of zookeeper from cluster**
* Update Required vars in ```inventory/<environment>/group_vars/all.yml``` .
Expand Down
2 changes: 1 addition & 1 deletion roles/configure/templates/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<!-- Uncomment this if you would like to expose Logback JMX beans -->
<!--jmxConfigurator /-->

<property name="zookeeper.console.threshold" value="WARN" />
<property name="zookeeper.console.threshold" value="ERROR" />

<property name="zookeeper.log.dir" value="{{ zookeeperLogDir }}" />
<property name="zookeeper.log.file" value="zookeeper.log" />
Expand Down

0 comments on commit 7f66d2b

Please sign in to comment.