Commit 254dc7f
authored
Configure Cassandra Sidecar (#308)
* Configure Cassandra Sidecar with proper directory structure and JVM flags
- Add sidecar configuration constants to Constants.kt
- Extract sidecar config resource during init for user customization
- Update packer provisioning to create /etc/cassandra-sidecar/ directory
- Create /mnt/cassandra/import staging directory with proper ownership
- Add JVM flag to systemd service: -Dsidecar.config=file:///etc/cassandra-sidecar/cassandra-sidecar.yaml
- Remove packer config file (config deployed via update-config command)
- Add cassandra-sidecar.yaml resource for local template
Configuration follows project pattern:
- Packer creates directory structure during AMI build
- Init extracts local template for user editing
- Users run update-config to deploy changes to remote nodes
Addresses #303
* Remove empty config directory provisioner from packer
The config directory is no longer needed since cassandra-sidecar.yaml
is now deployed via update-config command rather than baked into the AMI.
* Add update-config to end-to-end test
Test the update-config workflow which deploys configurations
including cassandra-sidecar.yaml to remote nodes.
* Add list command to end-to-end test
Verify that Cassandra versions are available before selecting one.
* Add restart command to end-to-end test
Verify that Cassandra and sidecar can be restarted successfully.1 parent fb6e4bd commit 254dc7f
File tree
6 files changed
+25
-8
lines changed- bin
- packer/cassandra
- services
- src/main
- kotlin/com/rustyrazorblade/easycasslab
- commands
- resources/com/rustyrazorblade/easycasslab/commands
6 files changed
+25
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 75 | | |
83 | 76 | | |
84 | 77 | | |
| |||
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
120 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
0 commit comments