You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,14 +63,14 @@ For a list of all variables, see `defaults/main.yml`.
63
63
64
64
The following should be installed before installing this role:
65
65
66
-
- java (openJDK or Oracle, see [A note on openjdk vs oracle:](#a-note-on-openjdk-vs-oracle))
66
+
- Java 8 (openJDK or Oracle, see [A note on openjdk vs oracle:](#a-note-on-openjdk-vs-oracle))
67
67
- ntp
68
68
69
69
For the above dependencies, you can use the same roles as in `molecule/default/requirements.yml` - but you don't have to.
70
70
71
71
## Platforms
72
72
73
-
- Currently tested with ubuntu 16.04 only
73
+
- Currently tested with Ubuntu 16.04 and Ubuntu 18.04 (see [A note on Java 8 and Ubuntu 18.04](#a-note-on-Java-8-and-Ubuntu-18.04)).
74
74
75
75
## Example Playbook
76
76
@@ -110,10 +110,12 @@ Then the following should work and start your cluster:
110
110
cassandra_cluster_name: my_cluster
111
111
cassandra_keyspaces:
112
112
- my_keyspace1
113
+
# set installed java package version manually. required when using Ubuntu 18.04. see: [A note on Java 8 and Ubuntu 18.04](#a-note-on-Java-8-and-Ubuntu-18.04)
114
+
java_packages: openjdk-8-jdk
113
115
roles:
114
-
# ensure to install java ntp first, e.g. by running these roles (see Dependencies section):
116
+
# ensure to install java and ntp first, e.g. by running these roles (see Dependencies section):
115
117
# - ansible-ntp
116
-
# - ansible-java
118
+
# - ansible-role-java
117
119
- ansible-cassandra
118
120
```
119
121
@@ -144,6 +146,14 @@ In the [official upgrade-to-DSE docs](https://docs.datastax.com/en/pdf/upgrade.p
144
146
145
147
It seems OpenJDK is the more future-proof JVM to use. This role is tested using openjdk.
146
148
149
+
## A note on Java 8 and Ubuntu 18.04:
150
+
151
+
In order to deploy Java on Ubuntu using Ansible, we have been using the 'ansible-role-java' role. This role will install OpenJDK 11 on Ubuntu 18.04 by default. If you are using this role, it is required to set the 'java_packages' variable before running it. for example:
152
+
```yaml
153
+
# set the java packages installed by the ansible-role-java role manually.
154
+
java_packages: openjdk-8-jdk
155
+
```
156
+
147
157
## Development setup
148
158
149
159
Install [molecule](https://github.com/ansible/molecule). E.g. ensure you have docker installed, then, using a virtualenv, `pip install molecule ansible docker`.
0 commit comments