-
Notifications
You must be signed in to change notification settings - Fork 419
Expand file tree
/
Copy pathmain.yml
More file actions
2951 lines (2838 loc) · 250 KB
/
Copy pathmain.yml
File metadata and controls
2951 lines (2838 loc) · 250 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
confluent_ansible_branch: 8.2.0-post
systemd_base_dir: "{{'/lib/systemd/system' if ansible_os_family == 'Debian' else '/usr/lib/systemd/system'}}"
confluent_repo_version: "{{ confluent_package_version | regex_replace('^([0-9])\\.([0-9]*).*', '\\1.\\2') }}"
# Confirm no trailing / on the ssl file directory path
ssl_file_dir_final: "{{ ssl_file_dir |regex_replace('\\/$', '') }}"
### The base path for the binary files. When in Archive File deployment mode this results in binary files being based in, for example `/opt/confluent/confluent-5.5.1/bin`, otherwise they are based in `/usr/bin`.
base_path: "{{ ((config_base_path,('confluent-',archive_version) | join) | path_join) if installation_method == 'archive' else '/' }}"
binary_base_path: "{{ ((config_base_path,('confluent-',archive_version) | join) | path_join) if installation_method == 'archive' else '/usr' }}"
confluent_control_center_next_gen_base_path: "{{ ((config_base_path,('confluent-control-center-next-gen-',confluent_control_center_next_gen_archive_version) | join) | path_join) if installation_method == 'archive' else '/' }}"
confluent_control_center_next_gen_binary_base_path: "{{ ((config_base_path,('confluent-control-center-next-gen-',confluent_control_center_next_gen_archive_version) | join) | path_join) if installation_method == 'archive' else '/usr' }}"
### Runs kafka in Kraft mode 8.0.x onwards
kraft_enabled: true
#### Config prefix paths ####
kafka_controller_config_prefix_path: "{{ kafka_controller_config_prefix.strip('/') }}"
kafka_broker_config_prefix_path: "{{ kafka_broker_config_prefix.strip('/') }}"
schema_registry_config_prefix_path: "{{ schema_registry_config_prefix.strip('/') }}"
kafka_rest_config_prefix_path: "{{ kafka_rest_config_prefix.strip('/') }}"
kafka_connect_config_prefix_path: "{{ kafka_connect_config_prefix.strip('/') }}"
ksql_config_prefix_path: "{{ ksql_config_prefix.strip('/') }}"
control_center_next_gen_config_prefix_path: "{{ control_center_next_gen_config_prefix.strip('/') }}"
kafka_connect_replicator_config_prefix_path: "{{ kafka_connect_replicator_config_prefix.strip('/') }}"
# Jolokia vars
kafka_broker_jolokia_java_arg_ssl_addon: ",keystore={{kafka_broker_keystore_path}},keystorePassword={{kafka_broker_keystore_storepass}},protocol=https"
kafka_broker_jolokia_urp_url: "{{ 'https' if kafka_broker_jolokia_ssl_enabled|bool else 'http' }}://{{ hostvars[inventory_hostname] | confluent.platform.resolve_and_format_hostname }}:{{kafka_broker_jolokia_port}}/jolokia/read/kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions"
kafka_broker_jolokia_active_controller_url: "{{ 'https' if kafka_broker_jolokia_ssl_enabled|bool else 'http' }}://{{ hostvars[inventory_hostname] | confluent.platform.resolve_and_format_hostname }}:{{kafka_broker_jolokia_port}}/jolokia/read/kafka.controller:type=KafkaController,name=ActiveControllerCount"
# OAuth vars
oauth_enabled: "{{ 'oauth' in auth_mode }}"
ldap_with_oauth_enabled: "{{ 'ldap_with_oauth' in auth_mode }}"
schema_registry_oauth_enabled: "{{ 'oauth' in schema_registry_auth_mode }}"
kafka_rest_oauth_enabled: "{{ 'oauth' in kafka_rest_auth_mode }}"
kafka_connect_oauth_enabled: "{{ 'oauth' in kafka_connect_auth_mode }}"
kafka_connect_replicator_oauth_enabled: "{{ 'oauth' in kafka_connect_replicator_auth_mode }}"
ksql_oauth_enabled: "{{ 'oauth' in ksql_auth_mode }}"
# oauth client assertion vars
oauth_superuser_third_party_client_assertion_config:
superuser: "{{ (oauth_superuser_client_assertion_file_base_path != 'none') | ternary(oauth_superuser_client_assertion_file_base_path ~ '/superuser_client.jwt', 'none') }}"
ksql_oauth_client_assertion_config:
enabled: "{{ksql_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{ksql_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{ksql_oauth_client_assertion_sub}}"
client_assertion_audience: "{{ksql_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ ksql_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ ksql_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{ksql_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{ksql_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{ksql_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{ksql_oauth_client_assertion_file_base_path}}"
ksql_third_party_oauth_client_assertion_config:
kafka: "{{ (ksql_oauth_client_assertion_file_base_path != 'none') | ternary(ksql_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
schema_registry: "{{ (ksql_oauth_client_assertion_file_base_path != 'none') | ternary(ksql_oauth_client_assertion_file_base_path ~ '/schema_registry_client.jwt', 'none') }}"
mds: "{{ (ksql_oauth_client_assertion_file_base_path != 'none') | ternary(ksql_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
monitoring_interceptor: "{{ (ksql_oauth_client_assertion_file_base_path != 'none') | ternary(ksql_oauth_client_assertion_file_base_path ~ '/monitoring_interceptor_client.jwt', 'none') }}"
ksql: "{{ (ksql_oauth_client_assertion_file_base_path != 'none') | ternary(ksql_oauth_client_assertion_file_base_path ~ '/ksql_client.jwt', 'none') }}"
kafka_rest_oauth_client_assertion_config:
enabled: "{{kafka_rest_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_rest_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_rest_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_rest_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_rest_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_rest_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_rest_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_rest_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_rest_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_rest_oauth_client_assertion_file_base_path}}"
kafka_rest_third_party_oauth_client_assertion_config:
license: "{{ (kafka_rest_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_rest_oauth_client_assertion_file_base_path ~ '/license_client.jwt', 'none') }}"
kafka: "{{ (kafka_rest_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_rest_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
monitoring_interceptor: "{{ (kafka_rest_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_rest_oauth_client_assertion_file_base_path ~ '/monitoring_interceptor_client.jwt', 'none') }}"
mds: "{{ (kafka_rest_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_rest_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
kafka_rest: "{{ (kafka_rest_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_rest_oauth_client_assertion_file_base_path ~ '/kafka_rest_client.jwt', 'none') }}"
kafka_connect_oauth_client_assertion_config:
enabled: "{{kafka_connect_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_connect_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_connect_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_connect_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_connect_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_connect_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_connect_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_connect_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_connect_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_connect_oauth_client_assertion_file_base_path}}"
kafka_connect_third_party_oauth_client_assertion_config:
kafka: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
producer: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/producer_client.jwt', 'none') }}"
consumer: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/consumer_client.jwt', 'none') }}"
mds: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
producer_monitoring_interceptor: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/producer_monitoring_interceptor_client.jwt', 'none') }}"
consumer_monitoring_interceptor: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/consumer_monitoring_interceptor_client.jwt', 'none') }}"
secret_registry: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/secret_registry_client.jwt', 'none') }}"
kafka_connect: "{{ (kafka_connect_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_oauth_client_assertion_file_base_path ~ '/kafka_connect_client.jwt', 'none') }}"
schema_registry_oauth_client_assertion_config:
enabled: "{{schema_registry_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{schema_registry_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{schema_registry_oauth_client_assertion_sub}}"
client_assertion_audience: "{{schema_registry_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ schema_registry_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ schema_registry_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{schema_registry_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{ schema_registry_oauth_client_assertion_jti_include|bool }}"
client_assertion_nbf_include: "{{schema_registry_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{schema_registry_oauth_client_assertion_file_base_path}}"
schema_registry_third_party_oauth_client_assertion_config:
kafka: "{{ (schema_registry_oauth_client_assertion_file_base_path != 'none') | ternary(schema_registry_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
mds: "{{ (schema_registry_oauth_client_assertion_file_base_path != 'none') | ternary(schema_registry_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
schema_registry: "{{ (schema_registry_oauth_client_assertion_file_base_path != 'none') | ternary(schema_registry_oauth_client_assertion_file_base_path ~ '/schema_registry_client.jwt', 'none') }}"
kafka_controller_oauth_client_assertion_config:
enabled: "{{kafka_controller_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_controller_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_controller_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_controller_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{kafka_controller_oauth_client_assertion_private_key_file_dest_path}}"
client_assertion_template_file: "{{ kafka_controller_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_controller_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_controller_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_controller_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_controller_oauth_client_assertion_file_base_path}}"
kafka_controller_third_party_oauth_client_assertion_config:
mds: "{{ (kafka_controller_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_controller_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
metric_reporters: "{{ (kafka_controller_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_controller_oauth_client_assertion_file_base_path ~ '/metric_reporters_client.jwt', 'none') }}"
audit_logs_destination_client: "{{ (kafka_controller_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_controller_oauth_client_assertion_file_base_path ~ '/audit_logs_destination_client.jwt', 'none') }}"
audit_logs_destination_admin_client: "{{ (kafka_controller_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_controller_oauth_client_assertion_file_base_path ~ '/audit_logs_destination_admin_client.jwt', 'none') }}"
controller: "{{ (kafka_controller_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_controller_oauth_client_assertion_file_base_path ~ '/controller_client.jwt', 'none') }}"
kafka_broker_oauth_client_assertion_config:
enabled: "{{kafka_broker_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_broker_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_broker_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_broker_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_broker_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_broker_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_broker_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_broker_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_broker_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_broker_oauth_client_assertion_file_base_path}}"
kafka_broker_third_party_oauth_client_assertion_config:
mds: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
embedded_rest_proxy: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/embedded_rest_proxy_client.jwt', 'none') }}"
embedded_rest_proxy_rbac_oauth: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/embedded_rest_proxy_rbac_oauth_client.jwt', 'none') }}"
metrics_reporter: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/metrics_reporter_client.jwt', 'none') }}"
audit_logs_destination_client: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/audit_logs_destination_client.jwt', 'none') }}"
audit_logs_destination_admin_client: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/audit_logs_destination_admin_client.jwt', 'none') }}"
schema_registry: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/schema_registry_client.jwt', 'none') }}"
kafka_broker: "{{ (kafka_broker_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_broker_oauth_client_assertion_file_base_path ~ '/kafka_broker_client.jwt', 'none') }}"
kafka_connect_replicator_oauth_client_assertion_config:
enabled: "{{kafka_connect_replicator_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_connect_replicator_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_connect_replicator_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_connect_replicator_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_connect_replicator_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_connect_replicator_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_connect_replicator_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_connect_replicator_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_connect_replicator_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_connect_replicator_oauth_client_assertion_file_base_path}}"
kafka_connect_replicator_third_party_oauth_client_assertion_config:
kafka: "{{ (kafka_connect_replicator_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
mds: "{{ (kafka_connect_replicator_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_oauth_client_assertion_file_base_path ~ '/mds_client.jwt', 'none') }}"
kafka_connect_replicator: "{{ (kafka_connect_replicator_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_oauth_client_assertion_file_base_path ~ '/kafka_connect_replicator_client.jwt', 'none') }}"
kafka_connect_replicator_producer_oauth_client_assertion_config:
enabled: "{{kafka_connect_replicator_producer_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_connect_replicator_producer_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_connect_replicator_producer_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_connect_replicator_producer_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_connect_replicator_producer_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_connect_replicator_producer_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_connect_replicator_producer_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_connect_replicator_producer_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_connect_replicator_producer_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_connect_replicator_producer_oauth_client_assertion_file_base_path}}"
kafka_connect_replicator_producer_third_party_oauth_client_assertion_config:
kafka: "{{ (kafka_connect_replicator_producer_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_producer_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
kafka_connect_replicator_consumer_oauth_client_assertion_config:
enabled: "{{kafka_connect_replicator_consumer_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_connect_replicator_consumer_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_connect_replicator_consumer_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_connect_replicator_consumer_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_connect_replicator_consumer_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_connect_replicator_consumer_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_connect_replicator_consumer_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_connect_replicator_consumer_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_connect_replicator_consumer_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_connect_replicator_consumer_oauth_client_assertion_file_base_path}}"
kafka_connect_replicator_consumer_third_party_oauth_client_assertion_config:
kafka: "{{ (kafka_connect_replicator_consumer_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_consumer_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_config:
enabled: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_sub}}"
client_assertion_audience: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_file_base_path}}"
kafka_connect_replicator_monitoring_interceptor_third_party_oauth_client_assertion_config:
kafka: "{{ (kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_monitoring_interceptor_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
control_center_next_gen_oauth_client_assertion_config:
enabled: "{{control_center_next_gen_oauth_client_assertion_enabled}}"
client_assertion_issuer: "{{control_center_next_gen_oauth_client_assertion_issuer}}"
client_assertion_sub: "{{control_center_next_gen_oauth_client_assertion_sub}}"
client_assertion_audience: "{{control_center_next_gen_oauth_client_assertion_audience}}"
client_assertion_private_key_file: "{{ control_center_next_gen_oauth_client_assertion_private_key_file_dest_path }}"
client_assertion_template_file: "{{ control_center_next_gen_oauth_client_assertion_template_file_dest_path }}"
client_assertion_private_key_passphrase: "{{control_center_next_gen_oauth_client_assertion_private_key_passphrase}}"
client_assertion_jti_include: "{{control_center_next_gen_oauth_client_assertion_jti_include}}"
client_assertion_nbf_include: "{{control_center_next_gen_oauth_client_assertion_nbf_include}}"
client_assertion_file: "{{control_center_next_gen_oauth_client_assertion_file_base_path}}"
control_center_next_gen_third_party_oauth_client_assertion_config:
kafka: "{{ (control_center_next_gen_oauth_client_assertion_file_base_path != 'none') | ternary(control_center_next_gen_oauth_client_assertion_file_base_path ~ '/kafka_client.jwt', 'none') }}"
kafka_connect_replicator_erp_third_party_oauth_client_assertion_config:
erp: "{{ (kafka_connect_replicator_erp_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_erp_oauth_client_assertion_file_base_path ~ '/erp.jwt', 'none') }}"
kafka_connect_replicator_producer_erp_third_party_oauth_client_assertion_config:
producer_erp: "{{ (kafka_connect_replicator_erp_producer_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_erp_producer_oauth_client_assertion_file_base_path ~ '/producer_erp.jwt', 'none') }}"
kafka_connect_replicator_consumer_erp_third_party_oauth_client_assertion_config:
consumer_erp: "{{ (kafka_connect_replicator_erp_consumer_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_erp_consumer_oauth_client_assertion_file_base_path ~ '/consumer_erp.jwt', 'none') }}"
kafka_connect_replicator_monitoring_interceptor_erp_third_party_oauth_client_assertion_config:
interceptor_erp: "{{ (kafka_connect_replicator_monitoring_interceptor_erp_third_party_oauth_client_assertion_file_base_path != 'none') | ternary(kafka_connect_replicator_monitoring_interceptor_erp_third_party_oauth_client_assertion_file_base_path ~ '/erp_interceptor.jwt', 'none') }}"
#### Kafka controller variables
kafka_controller_service_name: "confluent-kcontroller"
kafka_controller_main_package: "{{ 'confluent-server' if confluent_server_enabled|bool else 'confluent-kafka'}}"
kafka_controller_default_group: confluent
kafka_controller_default_user: cp-kafka
kafka_controller_default_log_dir: /var/log/controller
kafka_controller:
server_start_file: "{{ binary_base_path }}/bin/kafka-server-start"
config_file: "{{ (config_base_path, kafka_controller_config_prefix_path, 'server.properties') | path_join }}"
client_config_file: "{{ (config_base_path, kafka_controller_config_prefix_path, 'client.properties') | path_join }}"
systemd_file: "{{systemd_base_dir}}/{{kafka_controller_service_name}}.service"
systemd_override: /etc/systemd/system/{{kafka_controller_service_name}}.service.d/override.conf
log4j_file: "{{ (base_path, 'etc/kafka/log4j2.yaml') | path_join }}"
jaas_file: "{{ (config_base_path, kafka_controller_config_prefix_path, 'kafka_server_jaas.conf') | path_join }}"
kafka_controller_properties:
defaults:
enabled: true
properties:
group.initial.rebalance.delay.ms: 3000
log.retention.check.interval.ms: 300000
log.retention.hours: 168
log.segment.bytes: 1073741824
num.io.threads: 16
num.network.threads: 8
num.partitions: 1
num.recovery.threads.per.data.dir: 2
offsets.topic.replication.factor: "{{kafka_controller_default_internal_replication_factor}}"
socket.receive.buffer.bytes: 102400
socket.request.max.bytes: 104857600
socket.send.buffer.bytes: 102400
transaction.state.log.min.isr: "{{ [ 2, kafka_controller_default_internal_replication_factor|int ] | min }}"
transaction.state.log.replication.factor: "{{kafka_controller_default_internal_replication_factor}}"
confluent.ansible.managed: 'true'
confluent.license.topic: _confluent-command
confluent.license.topic.replication.factor: "{{kafka_controller_default_internal_replication_factor}}"
confluent.metadata.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
confluent.balancer.topic.replication.factor: "{{kafka_controller_default_internal_replication_factor}}"
confluent.security.event.logger.exporter.kafka.topic.replicas: "{{audit_logs_destination_bootstrap_servers.split(',')|length if audit_logs_destination_enabled and rbac_enabled else kafka_controller_default_internal_replication_factor}}"
confluent.support.metrics.enable: "true"
confluent.support.customer.id: anonymous
log.dirs: "/var/lib/controller/data"
kafka.rest.enable: "{{kafka_controller_rest_proxy_enabled|string|lower}}"
process.roles: controller
controller.quorum.voters: "{{ kafka_controller_quorum_voters }}"
controller.listener.names: "{{kafka_controller_listeners['controller']['name']}}"
listener.security.protocol.map: "{% for listener in kafka_controller_listeners|dict2items %}{% if loop.index > 1%},{% endif %}{{ listener['value']['name'] }}:{{ listener['value'] | confluent.platform.kafka_protocol_defaults(kafka_controller_ssl_enabled, kafka_controller_sasl_protocol)}}{% endfor %},{{kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['name']}}:{{kafka_broker_listeners[kafka_broker_inter_broker_listener_name] | confluent.platform.kafka_protocol_defaults(ssl_enabled, sasl_protocol)}}"
listeners: "{{kafka_controller_listeners['controller']['name']}}://:{{kafka_controller_listeners['controller']['port']}}"
advertised.listeners: "{{kafka_controller_listeners['controller']['name']}}://{{ kafka_controller_listeners['controller']['hostname'] | default(hostvars[inventory_hostname]|confluent.platform.resolve_hostname) | confluent.platform.format_hostname }}:{{kafka_controller_listeners['controller']['port']}}"
node.id: "{{ node_id|default(groups.kafka_controller.index(inventory_hostname)|int + 9991) if inventory_hostname in groups.kafka_controller else 0}}"
inter.broker.listener.name: "{{kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['name']}}"
broker_listener:
enabled: true
properties: "{{ {'broker_listener': kafka_broker_listeners[kafka_broker_inter_broker_listener_name]} | confluent.platform.listener_properties(ssl_enabled, fips_enabled, ssl_client_authentication, principal_mapping_rules, sasl_protocol,
kafka_controller_truststore_path, kafka_controller_truststore_storepass, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
plain_jaas_config, kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'), kerberos_kafka_controller_primary,
sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password, rbac_enabled_public_pem_path, oauth_enabled, oauth_jwks_uri, oauth_expected_audience, oauth_sub_claim, rbac_enabled, false, false) }}"
kraft_sasl_plain:
enabled: "{{(kafka_controller_sasl_protocol | confluent.platform.split_to_list)[0] == 'plain'}}"
properties:
sasl.mechanism.controller.protocol: PLAIN
kraft_sasl_gssapi:
enabled: "{{(kafka_controller_sasl_protocol | confluent.platform.split_to_list)[0] == 'kerberos'}}"
properties:
sasl.mechanism.controller.protocol: GSSAPI
ssl:
enabled: "{{ kafka_controller_listeners | confluent.platform.ssl_required(kafka_controller_ssl_enabled) }}"
properties:
ssl.truststore.location: "{{kafka_controller_truststore_path}}"
ssl.truststore.password: "{{kafka_controller_truststore_storepass}}"
ssl.keystore.location: "{{kafka_controller_keystore_path}}"
ssl.keystore.password: "{{kafka_controller_keystore_storepass}}"
ssl.key.password: "{{kafka_controller_keystore_storepass}}"
principal_mapping_rules:
enabled: "{{ssl_enabled}}"
properties:
ssl.principal.mapping.rules: "{{ principal_mapping_rules | join(',') }}"
fips:
enabled: "{{fips_enabled}}"
properties:
enable.fips: 'true'
enable.fips.mode: "{{fips_mode}}"
security.providers: io.confluent.kafka.security.fips.provider.BcFipsProviderCreator,io.confluent.kafka.security.fips.provider.BcFipsJsseProviderCreator
ssl.keymanager.algorithm: PKIX
ssl.trustmanager.algorithm: PKIX
ssl.keystore.type: BCFKS
ssl.truststore.type: BCFKS
ssl.truststore.location: "{{kafka_controller_truststore_path}}"
ssl.truststore.password: "{{kafka_controller_truststore_storepass}}"
ssl.keystore.location: "{{kafka_controller_keystore_path}}"
ssl.keystore.password: "{{kafka_controller_keystore_storepass}}"
ssl.key.password: "{{kafka_controller_keystore_storepass}}"
ssl.enabled.protocols: TLSv1.2,TLSv1.3
sasl_enabled:
enabled: "{{ kafka_sasl_enabled_mechanisms|length > 0 }}"
properties:
sasl.enabled.mechanisms: "{% for mechanism in kafka_sasl_enabled_mechanisms %}{% if loop.index > 1%},{% endif %}{{ mechanism|upper }}{% endfor %}"
sasl_gssapi:
enabled: "{{ 'GSSAPI' in kafka_sasl_enabled_mechanisms }}"
properties:
sasl.kerberos.service.name: "{{kerberos_kafka_controller_primary}}"
inter_broker_sasl:
enabled: "{{ 'none' not in (kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['sasl_protocol'] | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol) }}"
properties:
sasl.mechanism.inter.broker.protocol: "{{ (kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['sasl_protocol'] | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol)[0] }}"
sr:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups }}"
properties:
confluent.schema.registry.url: "{{schema_registry_url}}"
rbac:
enabled: "{{ rbac_enabled }}"
properties:
authorizer.class.name: io.confluent.kafka.security.authorizer.ConfluentServerAuthorizer
confluent.authorizer.access.rule.providers: CONFLUENT,KRAFT_ACL
super.users: >-
{{
('ldap' in auth_mode) | ternary("User:" + mds_super_user|default('mds'), "") +
(auth_mode == 'ldap_with_oauth') | ternary(";", "") +
('oauth' in auth_mode) | ternary("User:" + oauth_superuser_principal, "")
}}
rbac_mds:
enabled: "{{rbac_enabled and not external_mds_enabled}}"
properties:
confluent.metadata.server.kraft.controller.enabled: true
confluent.metadata.bootstrap.servers: "{{ groups['kafka_broker'] | default(['localhost']) | confluent.platform.resolve_hostnames(hostvars) | join(':' + kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['port']|string + ',') }}:{{kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['port']}}"
rbac_external_mds:
enabled: "{{rbac_enabled and external_mds_enabled}}"
properties:
confluent.metadata.bootstrap.servers: "{{mds_broker_bootstrap_servers}}"
rbac_external_mds_client:
enabled: "{{rbac_enabled}}"
properties: "{{ mds_broker_listener | confluent.platform.client_properties(ssl_enabled, fips_enabled, ssl_mutual_auth_enabled, sasl_protocol,
'confluent.metadata.', kafka_controller_truststore_path, kafka_controller_truststore_storepass, False, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_controller_primary, kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'),
false, kafka_controller_ldap_user, kafka_controller_ldap_password, mds_bootstrap_server_urls, oauth_enabled, kafka_controller_oauth_user, kafka_controller_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, false, kafka_controller_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_controller_third_party_oauth_client_assertion_config.mds)) }}"
rbac_external_mds_oauth_client:
enabled: "{{rbac_enabled and oauth_enabled and idp_self_signed}}"
properties:
confluent.metadata.ssl.truststore.location: "{{kafka_controller_truststore_path}}"
confluent.metadata.ssl.truststore.password: "{{kafka_controller_truststore_storepass}}"
oauth_claim:
enabled: "{{oauth_enabled and oauth_groups_claim != 'none'}}"
properties:
confluent.oauth.groups.claim.name: "{{oauth_groups_claim}}"
listeners:
enabled: true
properties: "{{ kafka_controller_listeners | confluent.platform.listener_properties(kafka_controller_ssl_enabled, fips_enabled, kafka_controller_ssl_client_authentication, principal_mapping_rules, kafka_controller_sasl_protocol,
kafka_controller_truststore_path, kafka_controller_truststore_storepass, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
plain_jaas_config, kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'), kerberos_kafka_controller_primary,
sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password, rbac_enabled_public_pem_path, oauth_enabled, oauth_jwks_uri, oauth_expected_audience, oauth_sub_claim, rbac_enabled, true, false) }}"
metrics_reporter_for_control_center_next_gen:
enabled: "{{ kafka_controller_metrics_reporter_for_control_center_next_gen_enabled|bool }}"
properties:
metric.reporters: io.confluent.telemetry.reporter.TelemetryReporter,org.apache.kafka.common.metrics.JmxReporter
confluent.telemetry.exporter._c3.type: "http"
confluent.telemetry.exporter._c3.enabled: "true"
confluent.telemetry.exporter._c3.metrics.include: "io.confluent.kafka.server.request.(?!.*delta).*|io.confluent.kafka.server.server.broker.state|io.confluent.kafka.server.replica.manager.leader.count|io.confluent.kafka.server.request.queue.size|io.confluent.kafka.server.broker.topic.failed.produce.requests.rate.1.min|io.confluent.kafka.server.tier.archiver.total.lag|io.confluent.kafka.server.request.total.time.ms.p99|io.confluent.kafka.server.broker.topic.failed.fetch.requests.rate.1.min|io.confluent.kafka.server.broker.topic.total.fetch.requests.rate.1.min|io.confluent.kafka.server.partition.caught.up.replicas.count|io.confluent.kafka.server.partition.observer.replicas.count|io.confluent.kafka.server.tier.tasks.num.partitions.in.error|io.confluent.kafka.server.broker.topic.bytes.out.rate.1.min|io.confluent.kafka.server.request.total.time.ms.p95|io.confluent.kafka.server.controller.active.controller.count|io.confluent.kafka.server.session.expire.listener.zookeeper.disconnects.total|io.confluent.kafka.server.request.total.time.ms.p999|io.confluent.kafka.server.controller.active.broker.count|io.confluent.kafka.server.request.handler.pool.request.handler.avg.idle.percent.rate.1.min|io.confluent.kafka.server.session.expire.listener.zookeeper.disconnects.rate.1.min|io.confluent.kafka.server.controller.unclean.leader.elections.rate.1.min|io.confluent.kafka.server.replica.manager.partition.count|io.confluent.kafka.server.controller.unclean.leader.elections.total|io.confluent.kafka.server.partition.replicas.count|io.confluent.kafka.server.broker.topic.total.produce.requests.rate.1.min|io.confluent.kafka.server.controller.offline.partitions.count|io.confluent.kafka.server.socket.server.network.processor.avg.idle.percent|io.confluent.kafka.server.partition.under.replicated|io.confluent.kafka.server.log.log.start.offset|io.confluent.kafka.server.log.tier.size|io.confluent.kafka.server.log.size|io.confluent.kafka.server.tier.fetcher.bytes.fetched.total|io.confluent.kafka.server.request.total.time.ms.p50|io.confluent.kafka.server.tenant.consumer.lag.offsets|io.confluent.kafka.server.session.expire.listener.zookeeper.expires.rate.1.min|io.confluent.kafka.server.log.log.end.offset|io.confluent.kafka.server.broker.topic.bytes.in.rate.1.min|io.confluent.kafka.server.partition.under.min.isr|io.confluent.kafka.server.partition.in.sync.replicas.count|io.confluent.telemetry.http.exporter.batches.dropped|io.confluent.telemetry.http.exporter.items.total|io.confluent.telemetry.http.exporter.items.succeeded|io.confluent.telemetry.http.exporter.send.time.total.millis|io.confluent.kafka.server.controller.leader.election.rate.(?!.*delta).*|io.confluent.telemetry.http.exporter.batches.failed|io.confluent.kafka.server.socket_server.connections|org.apache.kafka.consumer.(fetch.manager.fetch.latency.avg|connection.creation.total|fetch.manager.fetch.total|fetch.manager.bytes.consumed.rate)|org.apache.kafka.producer.(bufferpool.wait.ratio|request.total|topic.byte.rate)|io.confluent.kafka.server.controller.fenced.broker.count"
confluent.telemetry.exporter._c3.client.base.url: "{{control_center_next_gen_dependency_prometheus_url}}/api/v1/otlp"
confluent.telemetry.exporter._c3.client.compression: gzip
confluent.telemetry.exporter._c3.api.key: "{{kafka_controller_telemetry_control_center_next_gen_user}}"
confluent.telemetry.exporter._c3.api.secret: "{{kafka_controller_telemetry_control_center_next_gen_password}}"
confluent.telemetry.exporter._c3.buffer.pending.batches.max: 80
confluent.telemetry.exporter._c3.buffer.batch.items.max: 4000
confluent.telemetry.exporter._c3.buffer.inflight.submissions.max: 10
confluent.telemetry.metrics.collector.interval.ms: 60000
confluent.telemetry.remoteconfig._confluent.enabled: false
confluent.consumer.lag.emitter.enabled: "true"
metrics_reporter_for_control_center_next_gen_client:
enabled: "{{control_center_next_gen_dependency_prometheus_ssl_enabled}}"
properties:
confluent.telemetry.exporter._c3.https.ssl.protocol: TLSv1.2
confluent.telemetry.exporter._c3.https.ssl.truststore.location: "{{kafka_controller_truststore_path}}"
confluent.telemetry.exporter._c3.https.ssl.truststore.password: "{{kafka_controller_truststore_storepass}}"
# If FIPS set to BCFKS else JKS
confluent.telemetry.exporter._c3.https.ssl.truststore.type: "{% if fips_enabled|bool %}BCFKS{% else %}JKS{% endif %}"
metrics_reporter_for_control_center_next_gen_client_mtls:
enabled: "{{control_center_next_gen_dependency_prometheus_mtls_enabled}}"
properties:
confluent.telemetry.exporter._c3.https.ssl.keystore.location: "{{kafka_controller_keystore_path}}"
confluent.telemetry.exporter._c3.https.ssl.keystore.password: "{{kafka_controller_keystore_storepass}}"
confluent.telemetry.exporter._c3.https.ssl.key.password: "{{kafka_controller_keystore_keypass}}"
# If FIPS set to BCFKS else JKS
confluent.telemetry.exporter._c3.https.ssl.keystore.type: "{% if fips_enabled|bool %}BCFKS{% else %}JKS{% endif %}"
metrics_reporter_client:
enabled: "{{ kafka_controller_metrics_reporter_enabled|bool }}"
properties: "{{ kafka_broker_listeners[kafka_broker_inter_broker_listener_name] | confluent.platform.client_properties(ssl_enabled, fips_enabled, ssl_mutual_auth_enabled, sasl_protocol,
'confluent.metrics.reporter.', kafka_controller_truststore_path, kafka_controller_truststore_storepass, False, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_controller_primary, kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'),
false, kafka_controller_ldap_user, kafka_controller_ldap_password, mds_bootstrap_server_urls, oauth_enabled, kafka_controller_oauth_user, kafka_controller_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, false, kafka_controller_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_controller_third_party_oauth_client_assertion_config.metric_reporters)) }}"
telemetry:
enabled: "{{kafka_controller_telemetry_enabled}}"
properties:
confluent.telemetry.enabled: 'true'
confluent.telemetry.api.key: "{{telemetry_api_key}}"
confluent.telemetry.api.secret: "{{telemetry_api_secret}}"
telemetry_proxy:
enabled: "{{kafka_controller_telemetry_enabled and telemetry_proxy_url != ''}}"
properties:
confluent.telemetry.proxy.url: "{{telemetry_proxy_url}}"
telemetry_proxy_auth:
enabled: "{{kafka_controller_telemetry_enabled and telemetry_proxy_username != ''}}"
properties:
confluent.telemetry.proxy.username: "{{telemetry_proxy_username}}"
confluent.telemetry.proxy.password: "{{telemetry_proxy_password}}"
telemetry_labels:
enabled: "{{kafka_controller_telemetry_ansible_labels_enabled}}"
properties:
confluent.telemetry.labels.confluent.ansible.playbooks.version: "{{confluent_ansible_branch}}"
audit_logs_destination:
enabled: "{{audit_logs_destination_enabled and rbac_enabled}}"
properties:
confluent.security.event.logger.exporter.kafka.bootstrap.servers: "{{audit_logs_destination_bootstrap_servers}}"
confluent.security.event.logger.exporter.kafka.topic.create: 'false'
audit_logs_destination_client:
enabled: "{{audit_logs_destination_enabled and rbac_enabled}}"
properties: "{{ audit_logs_destination_listener | confluent.platform.client_properties(kafka_controller_ssl_enabled, fips_enabled, kafka_controller_ssl_mutual_auth_enabled, kafka_controller_sasl_protocol,
'confluent.security.event.logger.exporter.kafka.', kafka_controller_truststore_path, kafka_controller_truststore_storepass, False, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_controller_primary|default('kafka'), kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'),
false, 'user', 'pass', mds_bootstrap_server_urls, oauth_enabled, kafka_controller_oauth_user, kafka_controller_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, true, kafka_controller_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_controller_third_party_oauth_client_assertion_config.audit_logs_destination_client)) }}"
audit_logs_destination_admin:
enabled: "{{audit_logs_destination_enabled and rbac_enabled and not external_mds_enabled}}"
properties:
confluent.security.event.logger.destination.admin.bootstrap.servers: "{{audit_logs_destination_bootstrap_servers}}"
audit_logs_destination_admin_client:
enabled: "{{audit_logs_destination_enabled and rbac_enabled and not external_mds_enabled}}"
properties: "{{ audit_logs_destination_listener | confluent.platform.client_properties(kafka_controller_ssl_enabled, fips_enabled, kafka_controller_ssl_mutual_auth_enabled, kafka_controller_sasl_protocol,
'confluent.security.event.logger.destination.admin.', kafka_controller_truststore_path, kafka_controller_truststore_storepass, False, kafka_controller_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_controller_primary|default('kafka'), kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'),
false, 'user', 'pass', mds_bootstrap_server_urls, oauth_enabled, kafka_controller_oauth_user, kafka_controller_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, true, kafka_controller_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_controller_third_party_oauth_client_assertion_config.audit_logs_destination_admin_client)) }}"
usm_agent_telemetry:
enabled: "{{ 'usm_agent' in groups }}"
properties:
confluent.telemetry.exporter._usm.enabled: true
confluent.telemetry.exporter._usm.events.enabled: true
confluent.telemetry.exporter._usm.type: http
confluent.telemetry.exporter._usm.buffer.batch.items.max: 4000
confluent.telemetry.exporter._usm.buffer.inflight.submissions.max: 10
confluent.telemetry.exporter._usm.buffer.pending.batches.max: 80
confluent.telemetry.exporter._usm.client.base.url: "{{ usm_agent_url }}"
confluent.telemetry.exporter._usm.events.client.base.url: "{{ usm_agent_url }}"
confluent.catalog.collector.enable: true
confluent.catalog.collector.destination.topic: catalog-events
confluent.catalog.collector.full.configs.enable: true
confluent.catalog.collector.multitenant.topics.enable: false
confluent.telemetry.exporter._usm.events.filtering.routes.allowed: catalog-events
confluent.telemetry.exporter._usm.events.filtering.enabled: true
usm_agent_telemetry_auth_basic:
enabled: "{{ 'usm_agent' in groups and usm_agent_basic_auth_enabled }}"
properties:
confluent.telemetry.exporter._usm.api.key: "{{ kafka_controller_usm_agent_username }}"
confluent.telemetry.exporter._usm.api.secret: "{{ kafka_controller_usm_agent_password }}"
confluent.telemetry.exporter._usm.events.api.key: "{{ kafka_controller_usm_agent_username }}"
confluent.telemetry.exporter._usm.events.api.secret: "{{ kafka_controller_usm_agent_password }}"
usm_agent_telemetry_auth_dummy:
enabled: "{{ 'usm_agent' in groups and not usm_agent_basic_auth_enabled }}"
properties:
confluent.telemetry.exporter._usm.api.key: dummy
confluent.telemetry.exporter._usm.api.secret: dummy
confluent.telemetry.exporter._usm.events.api.key: dummy
confluent.telemetry.exporter._usm.events.api.secret: dummy
usm_agent_telemetry_ssl:
enabled: "{{ 'usm_agent' in groups and usm_agent_ssl_enabled }}"
properties:
confluent.telemetry.exporter._usm.https.ssl.protocol: TLSv1.2
confluent.telemetry.exporter._usm.https.ssl.truststore.location: "{{ kafka_controller_truststore_path }}"
confluent.telemetry.exporter._usm.https.ssl.truststore.password: "{{ kafka_controller_truststore_storepass }}"
confluent.telemetry.exporter._usm.events.https.ssl.protocol: TLSv1.2
confluent.telemetry.exporter._usm.events.https.ssl.truststore.location: "{{ kafka_controller_truststore_path }}"
confluent.telemetry.exporter._usm.events.https.ssl.truststore.password: "{{ kafka_controller_truststore_storepass }}"
usm_agent_telemetry_mtls:
enabled: "{{ 'usm_agent' in groups and usm_agent_ssl_mutual_auth_enabled }}"
properties:
confluent.telemetry.exporter._usm.https.ssl.keystore.location: "{{ kafka_controller_keystore_path }}"
confluent.telemetry.exporter._usm.https.ssl.keystore.password: "{{ kafka_controller_keystore_storepass }}"
confluent.telemetry.exporter._usm.https.ssl.key.password: "{{ kafka_controller_keystore_keypass }}"
confluent.telemetry.exporter._usm.events.https.ssl.keystore.location: "{{ kafka_controller_keystore_path }}"
confluent.telemetry.exporter._usm.events.https.ssl.keystore.password: "{{ kafka_controller_keystore_storepass }}"
confluent.telemetry.exporter._usm.events.https.ssl.key.password: "{{ kafka_controller_keystore_keypass }}"
usm_client_metrics:
enabled: "{{ 'usm_agent' in groups and usm_client_metrics_enabled }}"
properties:
confluent.telemetry.external.client.metrics.usm.push.enabled: "true"
confluent.telemetry.external.client.metrics.push.enabled: "true"
confluent.telemetry.external.client.metrics.delta.temporality: "true"
confluent.telemetry.external.client.metrics.subscription.interval.ms.list: "60000"
confluent.telemetry.external.client.metrics.subscription.metrics.list: "org.apache.kafka.consumer.fetch.manager.fetch.latency.avg,org.apache.kafka.consumer.connection.creation.total,org.apache.kafka.consumer.fetch.manager.fetch.total,org.apache.kafka.consumer.fetch.manager.bytes.consumed.rate,org.apache.kafka.consumer.request.total,org.apache.kafka.producer.bufferpool.wait.ratio,org.apache.kafka.producer.record.queue.time.avg,org.apache.kafka.producer.request.latency.avg,org.apache.kafka.producer.produce.throttle.time.avg,org.apache.kafka.producer.connection.creation.total,org.apache.kafka.producer.request.total,org.apache.kafka.producer.topic.byte.rate,org.apache.kafka.stream.client.state,org.apache.kafka.stream.thread.thread.state,org.apache.kafka.stream.state.size.all.mem.tables,org.apache.kafka.stream.state.estimate.num.keys,org.apache.kafka.stream.state.block.cache.usage,org.apache.kafka.stream.processor.node.record.e2e.latency.min,org.apache.kafka.stream.processor.node.record.e2e.latency.max,org.apache.kafka.stream.processor.node.record.e2e.latency.avg,org.apache.kafka.stream.thread.poll.ratio,org.apache.kafka.stream.thread.commit.ratio,org.apache.kafka.stream.thread.process.ratio,org.apache.kafka.stream.thread.punctuate.ratio,org.apache.kafka.stream.thread.process.records.avg"
kafka_controller_combined_properties: "{{kafka_controller_properties | confluent.platform.combine_properties}}"
kafka_controller_final_properties: "{{ kafka_controller_combined_properties | combine(kafka_controller_custom_properties) }}"
# A set of client properties against the controller listener for kafka health checks
kafka_controller_default_client_properties: "{{ kafka_controller_listeners['controller'] | confluent.platform.client_properties(kafka_controller_ssl_enabled, False, kafka_controller_ssl_mutual_auth_enabled, kafka_controller_sasl_protocol,
'', kafka_controller_pkcs12_truststore_path, kafka_controller_truststore_storepass, False, kafka_controller_pkcs12_keystore_path, kafka_controller_keystore_storepass, kafka_controller_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_controller_primary, kafka_controller_keytab_path, kafka_controller_kerberos_principal|default('kafka'),
false, kafka_controller_ldap_user, kafka_controller_ldap_password, mds_bootstrap_server_urls, oauth_enabled, kafka_controller_oauth_user, kafka_controller_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, true, kafka_controller_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_controller_third_party_oauth_client_assertion_config.controller)) }}"
kafka_controller_client_properties: "{{ kafka_controller_default_client_properties | combine(kafka_controller_custom_client_properties) }}"
#### Kafka Broker Variables ####
kafka_broker_service_name: "{{ 'confluent-server' if confluent_server_enabled|bool else 'confluent-kafka'}}"
kafka_broker_main_package: "{{ 'confluent-server' if confluent_server_enabled|bool else 'confluent-kafka'}}"
kafka_broker_default_user: cp-kafka
kafka_broker_default_group: confluent
kafka_broker_default_log_dir: /var/log/kafka
kafka_broker:
server_start_file: "{{ binary_base_path }}/bin/kafka-server-start"
config_file: "{{ (config_base_path, kafka_broker_config_prefix_path, 'server.properties') | path_join }}"
client_config_file: "{{ (config_base_path, kafka_broker_config_prefix_path, 'client.properties') | path_join }}"
systemd_file: "{{systemd_base_dir}}/{{kafka_broker_service_name}}.service"
systemd_override: /etc/systemd/system/{{kafka_broker_service_name}}.service.d/override.conf
log4j_file: "{{ (base_path, 'etc/kafka/log4j2.yaml') | path_join }}"
jaas_file: "{{ (config_base_path, kafka_broker_config_prefix_path, 'kafka_server_jaas.conf') | path_join }}"
rest_proxy_password_file: "{{ (config_base_path, kafka_broker_config_prefix_path, 'password.properties') | path_join }}"
mds_http_protocol: "{{ 'https' if kafka_broker_rest_ssl_enabled|bool else 'http' }}"
mds_tls_enabled: "{{true if 'https' in mds_bootstrap_server_urls else false}}"
kafka_broker_properties:
defaults:
enabled: true
properties:
group.initial.rebalance.delay.ms: 3000
log.retention.check.interval.ms: 300000
log.retention.hours: 168
log.segment.bytes: 1073741824
num.io.threads: 16
num.network.threads: 8
num.partitions: 1
num.recovery.threads.per.data.dir: 2
offsets.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
socket.receive.buffer.bytes: 102400
socket.request.max.bytes: 104857600
socket.send.buffer.bytes: 102400
transaction.state.log.min.isr: "{{ [ 2, kafka_broker_default_internal_replication_factor|int ] | min }}"
transaction.state.log.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
advertised.listeners: "{% for listener in kafka_broker_listeners|dict2items %}{% if loop.index > 1%},{% endif %}{{ listener['value']['name'] }}://{{ listener['value']['hostname'] | default(hostvars[inventory_hostname]|confluent.platform.resolve_hostname) | confluent.platform.format_hostname }}:{{ listener['value']['port'] }}{% endfor %}"
confluent.ansible.managed: 'true'
confluent.license.topic: _confluent-command
confluent.license.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
confluent.metadata.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
confluent.balancer.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
confluent.security.event.logger.exporter.kafka.topic.replicas: "{{audit_logs_destination_bootstrap_servers.split(',')|length if audit_logs_destination_enabled and rbac_enabled else kafka_broker_default_internal_replication_factor}}"
confluent.support.metrics.enable: "true"
confluent.support.customer.id: anonymous
log.dirs: "/var/lib/kafka/data"
kafka.rest.enable: "{{kafka_broker_rest_proxy_enabled|string|lower}}"
inter.broker.listener.name: "{{kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['name']}}"
confluent.cluster.link.metadata.topic.replication.factor: "{{kafka_broker_default_internal_replication_factor}}"
process.roles: broker
broker_on_controller:
enabled: "{{kraft_enabled|bool}}"
properties:
controller.quorum.voters: "{{ kafka_controller_quorum_voters }}"
controller.listener.names: "{{kafka_controller_listeners['controller']['name']}}"
listener.security.protocol.map: "{% for listener in kafka_controller_listeners|dict2items %}{% if loop.index > 1%},{% endif %}{{ listener['value']['name'] }}:{{ listener['value'] | confluent.platform.kafka_protocol_defaults(kafka_controller_ssl_enabled, kafka_controller_sasl_protocol)}}{% endfor %},{% for listener in kafka_broker_listeners|dict2items %}{% if loop.index > 1%},{% endif %}{{ listener['value']['name'] }}:{{ listener['value'] | confluent.platform.kafka_protocol_defaults(ssl_enabled, sasl_protocol)}}{% endfor %}"
listeners: "{% for listener in kafka_broker_listeners|dict2items %}{% if loop.index > 1%},{% endif %}{{ listener['value']['name'] }}://{{ listener['value']['ip'] | default('') }}:{{ listener['value']['port'] }}{% endfor %}"
controller_sasl:
enabled: "{{ kraft_enabled|bool and 'none' not in (kafka_controller_listeners['controller']['sasl_protocol'] | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol) }}"
properties:
sasl.mechanism.controller.protocol: "{{ (kafka_controller_sasl_protocol | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol)[0] }}"
controller_listener:
enabled: "{{ kraft_enabled|bool }}"
properties: "{{ kafka_controller_listeners | confluent.platform.listener_properties(kafka_controller_ssl_enabled, fips_enabled, kafka_controller_ssl_client_authentication, principal_mapping_rules, kafka_controller_sasl_protocol,
kafka_broker_truststore_path, kafka_broker_truststore_storepass, kafka_broker_keystore_path, kafka_broker_keystore_storepass, kafka_broker_keystore_keypass,
plain_jaas_config, kafka_broker_keytab_path, kafka_broker_kerberos_principal|default('kafka'), kerberos_kafka_broker_primary,
sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password, rbac_enabled_public_pem_path, oauth_enabled, oauth_jwks_uri, oauth_expected_audience, oauth_sub_claim, rbac_enabled, false, false) }}"
broker_id:
enabled: "{{ inventory_hostname in groups.kafka_broker and not enable_node_id|bool }}"
properties:
broker.id: "{{ broker_id | default( groups.kafka_broker.index(inventory_hostname) + 1 ) if inventory_hostname in groups.kafka_broker else 0 }}"
node_id:
enabled: "{{ inventory_hostname in groups.kafka_broker and enable_node_id|bool }}"
properties:
node.id: "{{ (node_id if node_id is defined else (broker_id if broker_id is defined else groups.kafka_broker.index(inventory_hostname) + 1)) if inventory_hostname in groups.kafka_broker else 0 }}"
ssl:
enabled: "{{ kafka_controller_ssl_enabled|bool or
kafka_broker_listeners | confluent.platform.ssl_required(ssl_enabled) or
kafka_broker_rest_ssl_enabled|bool or
mds_broker_listener.ssl_enabled|bool or
mds_tls_enabled|bool or
( kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_ssl_enabled ) }}"
properties:
ssl.truststore.location: "{{kafka_broker_truststore_path}}"
ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
ssl.keystore.location: "{{kafka_broker_keystore_path}}"
ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
ssl.key.password: "{{kafka_broker_keystore_storepass}}"
principal_mapping_rules:
enabled: "{{ssl_enabled}}"
properties:
# This config is needed to get correct super user in set_principal.yml
# Only setting rules on listener or mds or erp isnt enough
ssl.principal.mapping.rules: "{{ principal_mapping_rules | join(',') }}"
fips:
enabled: "{{fips_enabled}}"
properties:
enable.fips: 'true'
enable.fips.mode: "{{fips_mode}}"
security.providers: io.confluent.kafka.security.fips.provider.BcFipsProviderCreator,io.confluent.kafka.security.fips.provider.BcFipsJsseProviderCreator
ssl.keymanager.algorithm: PKIX
ssl.trustmanager.algorithm: PKIX
ssl.keystore.type: BCFKS
ssl.truststore.type: BCFKS
ssl.truststore.location: "{{kafka_broker_truststore_path}}"
ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
ssl.keystore.location: "{{kafka_broker_keystore_path}}"
ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
ssl.key.password: "{{kafka_broker_keystore_storepass}}"
ssl.enabled.protocols: TLSv1.2,TLSv1.3
inter_broker_sasl:
enabled: "{{ 'none' not in (kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['sasl_protocol'] | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol) }}"
properties:
sasl.mechanism.inter.broker.protocol: "{{ (kafka_broker_listeners[kafka_broker_inter_broker_listener_name]['sasl_protocol'] | default(sasl_protocol) | confluent.platform.normalize_sasl_protocol)[0] }}"
sasl_enabled:
enabled: "{{ kafka_sasl_enabled_mechanisms|length > 0 }}"
properties:
sasl.enabled.mechanisms: "{% for mechanism in kafka_sasl_enabled_mechanisms %}{% if loop.index > 1%},{% endif %}{{ mechanism|upper }}{% endfor %}"
sasl_gssapi:
enabled: "{{ 'GSSAPI' in kafka_sasl_enabled_mechanisms }}"
properties:
sasl.kerberos.service.name: "{{kerberos_kafka_broker_primary}}"
sr:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups }}"
properties:
confluent.schema.registry.url: "{{schema_registry_url}}"
sr_mtls:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_ssl_client_authentication != 'none' }}"
properties:
confluent.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
confluent.ssl.keystore.location: "{{kafka_broker_keystore_path}}"
confluent.ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
confluent.ssl.key.password: "{{kafka_broker_keystore_keypass}}"
sr_ssl:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_ssl_enabled }}"
properties:
confluent.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
confluent.ssl.keystore.location: "{{kafka_broker_keystore_path}}"
confluent.ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
confluent.ssl.key.password: "{{kafka_broker_keystore_keypass}}"
sr_ssl_fips:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_ssl_enabled and fips_enabled }}"
properties:
confluent.ssl.keymanager.algorithm: PKIX
confluent.ssl.trustmanager.algorithm: PKIX
confluent.ssl.keystore.type: BCFKS
confluent.ssl.truststore.type: BCFKS
sr_rbac_ldap:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and rbac_enabled and schema_registry_auth_mode == 'ldap' }}"
properties:
confluent.basic.auth.credentials.source: USER_INFO
confluent.basic.auth.user.info: "{{schema_registry_ldap_user | default('sr') }}:{{schema_registry_ldap_password | default('pass')}}"
sr_oauth:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled }}"
properties:
confluent.bearer.auth.issuer.endpoint.url: "{{ oauth_token_uri }}"
confluent.bearer.auth.client.id: "{{ schema_registry_oauth_user }}"
sr_oauth_secret:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and (not schema_registry_oauth_client_assertion_enabled) }}"
properties:
confluent.bearer.auth.credentials.source: OAUTHBEARER
confluent.bearer.auth.client.secret: "{{ schema_registry_oauth_password }}"
sr_oauth_scope:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and oauth_groups_scope!='none' and (not schema_registry_oauth_client_assertion_enabled) }}"
properties:
confluent.bearer.auth.scope: "{{ oauth_groups_scope }}"
sr_oauth_ssl:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and idp_self_signed}}"
properties:
confluent.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
sr_oauth_third_party_client_assertion:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path != 'none' }}"
properties:
confluent.bearer.assertion.file: "{{ kafka_broker_third_party_oauth_client_assertion_config.schema_registry }}"
sr_oauth_local_client_assertion:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path == 'none' }}"
properties:
confluent.bearer.auth.credentials.source: OAUTHBEARER_CLIENTASSERTION
confluent.bearer.assertion.claim.iss: "{{schema_registry_oauth_client_assertion_issuer}}"
confluent.bearer.assertion.claim.sub: "{{schema_registry_oauth_client_assertion_sub}}"
confluent.bearer.assertion.claim.aud: "{{schema_registry_oauth_client_assertion_audience}}"
confluent.bearer.assertion.private.key.file: "{{ kafka_broker_sr_oauth_client_assertion_private_key_file_dest_path }}"
sr_oauth_local_client_assertion_template_file:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path == 'none' and (not ldap_with_oauth_enabled) and schema_registry_oauth_client_assertion_template_file != 'none'}}"
properties:
confluent.bearer.assertion.template.file: "{{ kafka_broker_sr_oauth_client_assertion_template_file_dest_path }}"
sr_oauth_local_client_assertion_passphrase:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path == 'none' and (not ldap_with_oauth_enabled) and schema_registry_oauth_client_assertion_private_key_passphrase != 'none'}}"
properties:
confluent.bearer.assertion.private.key.passphrase: "{{schema_registry_oauth_client_assertion_private_key_passphrase}}"
sr_oauth_local_client_assertion_jti_include:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path == 'none' and (not ldap_with_oauth_enabled) and schema_registry_oauth_client_assertion_jti_include != 'none'}}"
properties:
confluent.bearer.assertion.claim.jti.include: "{{schema_registry_oauth_client_assertion_jti_include|bool}}"
sr_oauth_local_client_assertion_nbf_include:
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_oauth_enabled and schema_registry_oauth_client_assertion_enabled and schema_registry_oauth_client_assertion_file_base_path == 'none' and (not ldap_with_oauth_enabled) and schema_registry_oauth_client_assertion_nbf_include != 'none'}}"
properties:
confluent.bearer.assertion.claim.nbf.include: "{{schema_registry_oauth_client_assertion_nbf_include}}"
sr_basic:
# Should not turn on basic auth if rbac is enabled
enabled: "{{ kafka_broker_schema_validation_enabled and 'schema_registry' in groups and schema_registry_authentication_type == 'basic'}}"
properties:
confluent.basic.auth.credentials.source: USER_INFO
confluent.basic.auth.user.info: "{{schema_registry_basic_users_final.admin.principal}}:{{schema_registry_basic_users_final.admin.password}}"
rbac:
enabled: "{{ rbac_enabled }}"
properties:
authorizer.class.name: io.confluent.kafka.security.authorizer.ConfluentServerAuthorizer
confluent.authorizer.access.rule.providers: CONFLUENT,KRAFT_ACL
super.users: >-
{{
('ldap' in auth_mode) | ternary("User:" + mds_super_user|default('mds'), "") +
(auth_mode == 'ldap_with_oauth') | ternary(";", "") +
('oauth' in auth_mode) | ternary("User:" + oauth_superuser_principal, "")
}}
rbac_mds:
enabled: "{{ rbac_enabled and not external_mds_enabled }}"
properties:
confluent.metadata.server.advertised.listeners: "{{mds_http_protocol}}://{{ mds_advertised_listener_hostname | default(hostvars[inventory_hostname]|confluent.platform.resolve_hostname, True) | confluent.platform.format_hostname}}:{{mds_port}}"
confluent.metadata.server.listeners: "{{mds_http_protocol}}://0.0.0.0:{{mds_port}}"
confluent.metadata.server.token.max.lifetime.ms: 3600000
confluent.metadata.server.token.key.path: "{{rbac_enabled_private_pem_path}}"
confluent.metadata.server.token.signature.algorithm: RS256
confluent.metadata.server.authentication.method: BEARER
rbac_mds_oauth:
enabled: "{{ rbac_enabled and not external_mds_enabled and oauth_enabled }}"
properties:
confluent.metadata.server.user.store: "{{ 'LDAP_WITH_OAUTH' if ldap_with_oauth_enabled|bool else 'OAUTH' }}"
confluent.metadata.server.oauthbearer.jwks.endpoint.url: "{{oauth_jwks_uri}}"
confluent.metadata.server.oauthbearer.expected.issuer: "{{oauth_issuer_url}}"
confluent.metadata.server.oauthbearer.sub.claim.name: "{{oauth_sub_claim}}"
rbac_mds_oauth_audience:
enabled: "{{ rbac_enabled and not external_mds_enabled and oauth_enabled and oauth_expected_audience!= 'none' }}"
properties:
confluent.metadata.server.oauthbearer.expected.audience: "{{oauth_expected_audience}}"
rbac_mds_oauth_claim:
enabled: "{{ rbac_enabled and not external_mds_enabled and oauth_enabled and oauth_groups_claim != 'none'}}"
properties:
confluent.metadata.server.oauthbearer.groups.claim.name: "{{oauth_groups_claim}}"
rbac_mds_ssl:
enabled: "{{ rbac_enabled and not external_mds_enabled and oauth_enabled and mds_ssl_enabled and mds_ssl_client_authentication == 'none' }}"
properties:
confluent.metadata.server.ssl.endpoint.identification.algorithm: https
rbac_mds_ldap:
enabled: "{{ rbac_enabled and not external_mds_enabled and 'ldap' in auth_mode }}"
# For backwards compatibility, need to make sure ldap_config var is honored
properties: "{{ ldap_config | default('') | confluent.platform.split_newline_to_dict }}"
rbac_mds_rest_ssl:
enabled: "{{ rbac_enabled and not external_mds_enabled and kafka_broker_rest_ssl_enabled }}"
properties:
confluent.metadata.server.ssl.keystore.location: "{{kafka_broker_keystore_path}}"
confluent.metadata.server.ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
confluent.metadata.server.ssl.key.password: "{{kafka_broker_keystore_keypass}}"
confluent.metadata.server.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.metadata.server.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
rbac_mds_principal_mapping:
enabled: "{{ rbac_enabled and not external_mds_enabled and principal_mapping_rules != '' and mds_ssl_enabled|bool }}"
properties:
confluent.metadata.server.auth.ssl.principal.mapping.rules: "{{ principal_mapping_rules | join(',') }}"
rbac_mds_mtls_only:
enabled: "{{ rbac_enabled and not external_mds_enabled and mds_ssl_enabled|bool and auth_mode == 'mtls' and not mds_file_based_user_store_enabled|bool }}"
properties:
confluent.metadata.server.user.store: NONE
rbac_mds_file_store:
enabled: "{{ rbac_enabled and not external_mds_enabled and mds_file_based_user_store_enabled|bool }}"
properties:
confluent.metadata.server.user.store: FILE
confluent.metadata.server.user.store.file.path: "{{ mds_file_based_user_store_dest_path }}"
rbac_mds_client_authentication:
enabled: "{{ rbac_enabled and not external_mds_enabled and mds_ssl_enabled|bool and mds_ssl_client_authentication != 'none' }}"
properties:
confluent.metadata.server.ssl.client.authentication: "{{ mds_ssl_client_authentication | upper }}"
rbac_mds_impersonation_super_users:
enabled: "{{ rbac_enabled|bool and not external_mds_enabled|bool and impersonation_super_users|length > 0 }}"
properties:
confluent.metadata.server.impersonation.super.users: "{{impersonation_super_users | map('regex_replace', '^', 'User:') | join(';')}}"
rbac_mds_impersonation_protected_users:
enabled: "{{ rbac_enabled|bool and not external_mds_enabled|bool and impersonation_protected_users|length > 0 }}"
properties:
confluent.metadata.server.impersonation.protected.users: "{{impersonation_protected_users | map('regex_replace','^', 'User:') | join(';')}}"
rbac_mds_ssl_fips:
enabled: "{{ rbac_enabled and not external_mds_enabled and kafka_broker_rest_ssl_enabled and fips_enabled }}"
properties:
confluent.metadata.server.ssl.keymanager.algorithm: PKIX
confluent.metadata.server.ssl.trustmanager.algorithm: PKIX
confluent.metadata.server.ssl.keystore.type: BCFKS
confluent.metadata.server.ssl.truststore.type: BCFKS
confluent.metadata.server.http2.enabled: false
rbac_mds_sso:
enabled: "{{ rbac_enabled and not external_mds_enabled and sso_mode != 'none' }}"
properties:
confluent.metadata.server.sso.mode: "{{ sso_mode }}"
confluent.oidc.idp.groups.claim.name: "{{ sso_groups_claim }}"
confluent.oidc.idp.sub.claim.name: "{{ sso_sub_claim }}"
confluent.oidc.idp.issuer: "{{ sso_issuer_url }}"
confluent.oidc.idp.jwks.endpoint.uri: "{{ sso_jwks_uri }}"
confluent.oidc.idp.authorize.base.endpoint.uri: "{{ sso_authorize_uri }}"
confluent.oidc.idp.token.base.endpoint.uri: "{{ sso_token_uri }}"
confluent.oidc.idp.client.id: "{{ sso_client_id }}"
confluent.oidc.idp.client.secret: "{{ sso_client_password }}"
confluent.oidc.idp.refresh.token.enabled: "{{ sso_refresh_token }}"
confluent.oidc.session.token.expiry.ms: 900000
confluent.oidc.session.max.timeout.ms: 21600000
rbac_mds_sso_scope:
enabled: "{{ rbac_enabled and not external_mds_enabled and sso_mode != 'none' and sso_groups_scope != 'none' }}"
properties:
confluent.oidc.idp.groups.claim.scope: "{{ sso_groups_scope }}"
rbac_mds_sso_ssl:
enabled: "{{ rbac_enabled and (not external_mds_enabled) and sso_mode != 'none' and sso_idp_cert_path != ''}}"
properties:
confluent.metadata.server.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.metadata.server.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
rbac_external_mds:
enabled: "{{rbac_enabled and external_mds_enabled}}"
properties:
confluent.metadata.bootstrap.servers: "{{mds_broker_bootstrap_servers}}"
rbac_external_mds_client:
enabled: "{{rbac_enabled and external_mds_enabled}}"
properties: "{{ mds_broker_listener | confluent.platform.client_properties(ssl_enabled, fips_enabled, ssl_mutual_auth_enabled, sasl_protocol,
'confluent.metadata.', kafka_broker_truststore_path, kafka_broker_truststore_storepass, False, kafka_broker_keystore_path, kafka_broker_keystore_storepass, kafka_broker_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_broker_primary, kafka_broker_keytab_path, kafka_broker_kerberos_principal|default('kafka'),
false, kafka_broker_ldap_user, kafka_broker_ldap_password, mds_bootstrap_server_urls, oauth_enabled, kafka_broker_oauth_user, kafka_broker_oauth_password, oauth_groups_scope, oauth_token_uri, idp_self_signed, false, kafka_broker_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_broker_third_party_oauth_client_assertion_config.mds)) }}"
rbac_external_mds_oauth_client:
enabled: "{{ oauth_enabled and rbac_enabled and external_mds_enabled and idp_self_signed }}"
properties:
confluent.metadata.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.metadata.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
rbac_cli_sso:
enabled: "{{sso_cli}}"
properties:
confluent.oidc.idp.device.authorization.endpoint.uri: "{{ sso_device_authorization_uri }}"
rbac_oauth_ssl:
enabled: "{{ oauth_enabled and rbac_enabled and (not external_mds_enabled) and idp_self_signed }}"
properties:
confluent.metadata.server.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.metadata.server.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
embedded_rest_proxy:
# Do not need duplicating confluent.metadata.server and confluent.http.server config, rely on mds configs when kafka is the mds
enabled: "{{ kafka_broker_rest_proxy_enabled and (not rbac_enabled or (rbac_enabled and external_mds_enabled)) }}"
properties:
confluent.http.server.advertised.listeners: "{{mds_http_protocol}}://{{ mds_advertised_listener_hostname | default(hostvars[inventory_hostname] | confluent.platform.resolve_hostname , True)| confluent.platform.format_hostname }}:{{mds_port}}"
confluent.http.server.listeners: "{{mds_http_protocol}}://0.0.0.0:{{mds_port}}"
embedded_rest_proxy_ssl:
enabled: "{{ kafka_broker_rest_proxy_enabled and (not rbac_enabled or (rbac_enabled and external_mds_enabled)) and kafka_broker_rest_ssl_enabled }}"
properties:
confluent.http.server.ssl.keystore.location: "{{kafka_broker_keystore_path}}"
confluent.http.server.ssl.keystore.password: "{{kafka_broker_keystore_storepass}}"
confluent.http.server.ssl.key.password: "{{kafka_broker_keystore_keypass}}"
confluent.http.server.ssl.truststore.location: "{{kafka_broker_truststore_path}}"
confluent.http.server.ssl.truststore.password: "{{kafka_broker_truststore_storepass}}"
embedded_rest_proxy_ssl_fips:
enabled: "{{ kafka_broker_rest_proxy_enabled and kafka_broker_rest_ssl_enabled and fips_enabled}}"
properties:
confluent.http.server.ssl.keymanager.algorithm: PKIX
confluent.http.server.ssl.trustmanager.algorithm: PKIX
confluent.http.server.ssl.keystore.type: BCFKS
confluent.http.server.ssl.truststore.type: BCFKS
confluent.http.server.http2.enabled: false
embedded_rest_proxy_fips:
enabled: "{{ kafka_broker_rest_proxy_enabled and fips_enabled }}"
properties:
confluent.metadata.server.sni.host.check.enabled: false #this is ERP property and not MDS property
embedded_rest_proxy_mtls:
enabled: "{{ kafka_broker_rest_proxy_enabled and kafka_broker_rest_ssl_enabled and erp_ssl_client_authentication != 'none' }}"
properties:
kafka.rest.ssl.client.authentication: "{{ erp_ssl_client_authentication | upper }}"
embedded_rest_proxy_basic:
enabled: "{{ kafka_broker_rest_proxy_enabled and (not rbac_enabled or (rbac_enabled and external_mds_enabled)) and kafka_broker_rest_proxy_authentication_type == 'basic' }}"
properties:
kafka.rest.resource.extension.class: io.confluent.kafkarest.security.KafkaRestSecurityResourceExtension
kafka.rest.confluent.rest.auth.propogate.method: JETTY_AUTH
kafka.rest.authentication.method: BASIC
kafka.rest.authentication.realm: KafkaRest
kafka.rest.authentication.roles: "{{ kafka_broker_rest_proxy_basic_users | confluent.platform.get_roles | unique | join(',') }}"
embedded_rest_proxy_client_bootstrap:
enabled: "{{ kafka_broker_rest_proxy_enabled }}"
properties:
kafka.rest.bootstrap.servers: "{{ groups['kafka_broker'] | default(['localhost']) | confluent.platform.resolve_hostnames(hostvars) | join(':' + kafka_broker_listeners[kafka_broker_rest_proxy_listener_name]['port']|string + ',') }}:{{kafka_broker_listeners[kafka_broker_rest_proxy_listener_name]['port']}}"
embedded_rest_proxy_client:
enabled: "{{ kafka_broker_rest_proxy_enabled }}"
properties: "{{ kafka_broker_listeners[kafka_broker_rest_proxy_listener_name] | confluent.platform.client_properties(ssl_enabled, fips_enabled, ssl_mutual_auth_enabled, sasl_protocol,
'kafka.rest.client.', kafka_broker_truststore_path, kafka_broker_truststore_storepass, False, kafka_broker_keystore_path, kafka_broker_keystore_storepass, kafka_broker_keystore_keypass,
false, sasl_plain_users_final.admin.principal, sasl_plain_users_final.admin.password, sasl_scram_users_final.admin.principal, sasl_scram_users_final.admin.password, sasl_scram256_users_final.admin.principal, sasl_scram256_users_final.admin.password,
kerberos_kafka_broker_primary, kafka_broker_keytab_path, kafka_broker_kerberos_principal|default('kafka'),
true, kafka_broker_ldap_user, kafka_broker_ldap_password, mds_bootstrap_server_urls, oauth_enabled, kafka_broker_oauth_user, kafka_broker_oauth_password, oauth_groups_scope, oauth_token_uri, false, false, kafka_broker_oauth_client_assertion_config | confluent.platform.replace_client_assertion_file(kafka_broker_third_party_oauth_client_assertion_config.embedded_rest_proxy)) }}"
embedded_rest_proxy_rbac:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled }}"
properties:
kafka.rest.kafka.rest.resource.extension.class: io.confluent.kafkarest.security.KafkaRestSecurityResourceExtension
kafka.rest.rest.servlet.initializor.classes: io.confluent.common.security.jetty.initializer.AuthenticationHandler
kafka.rest.public.key.path: "{{rbac_enabled_public_pem_path}}"
kafka.rest.confluent.metadata.bootstrap.server.urls: "{{mds_bootstrap_server_urls}}"
embedded_rest_proxy_rbac_ldap:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and auth_mode == 'ldap' and (not kafka_broker_rest_proxy_mds_cert_auth_only) }}"
properties:
kafka.rest.confluent.metadata.basic.auth.user.info: "{{kafka_broker_ldap_user | default('kafka') }}:{{kafka_broker_ldap_password | default('pass')}}"
kafka.rest.confluent.metadata.http.auth.credentials.provider: BASIC
embedded_rest_proxy_rbac_oauth:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and (not kafka_broker_rest_proxy_mds_cert_auth_only) }}"
properties:
kafka.rest.confluent.metadata.oauthbearer.login.client.id: "{{kafka_broker_oauth_user}}"
kafka.rest.confluent.metadata.oauthbearer.token.endpoint.url: "{{ oauth_token_uri }}"
embedded_rest_proxy_rbac_oauth_secret:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and (not kafka_broker_rest_proxy_mds_cert_auth_only) and (not kafka_broker_oauth_client_assertion_enabled) }}"
properties:
kafka.rest.confluent.metadata.oauthbearer.login.client.secret: "{{kafka_broker_oauth_password}}"
embedded_rest_proxy_rbac_oauth_scope:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and oauth_groups_scope!='none' and (not kafka_broker_rest_proxy_mds_cert_auth_only) and (not kafka_broker_oauth_client_assertion_enabled) }}"
properties:
kafka.rest.confluent.metadata.oauthbearer.login.oauth.scope: "{{ oauth_groups_scope }}"
embedded_rest_proxy_rbac_oauth_third_party_client_assertion:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and kafka_broker_oauth_client_assertion_enabled and kafka_broker_oauth_client_assertion_file_base_path != 'none' and (not kafka_broker_rest_proxy_mds_cert_auth_only)}}"
properties:
kafka.rest.confluent.metadata.oauthbearer.assertion.file: "{{ kafka_broker_third_party_oauth_client_assertion_config.embedded_rest_proxy_rbac_oauth }}"
embedded_rest_proxy_rbac_oauth_local_client_assertion:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and kafka_broker_oauth_client_assertion_enabled and kafka_broker_oauth_client_assertion_file_base_path == 'none' and (not kafka_broker_rest_proxy_mds_cert_auth_only)}}"
properties:
kafka.rest.confluent.metadata.oauthbearer.assertion.claim.iss: "{{kafka_broker_oauth_client_assertion_issuer}}"
kafka.rest.confluent.metadata.oauthbearer.assertion.claim.sub: "{{kafka_broker_oauth_client_assertion_sub}}"
kafka.rest.confluent.metadata.oauthbearer.assertion.claim.aud: "{{kafka_broker_oauth_client_assertion_audience}}"
kafka.rest.confluent.metadata.oauthbearerassertion.private.key.file: "{{ kafka_broker_oauth_client_assertion_private_key_file_dest_path }}"
embedded_rest_proxy_rbac_oauth_local_client_assertion_template:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and kafka_broker_oauth_client_assertion_enabled and kafka_broker_oauth_client_assertion_file_base_path == 'none' and kafka_broker_oauth_client_assertion_template_file != 'none' and (not kafka_broker_rest_proxy_mds_cert_auth_only)}}"
properties:
kafka.rest.confluent.metadata.oauthbearer.assertion.template.file: "{{ kafka_broker_oauth_client_assertion_template_file_dest_path }}"
embedded_rest_proxy_rbac_oauth_local_client_assertion_passphrase:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and kafka_broker_oauth_client_assertion_enabled and kafka_broker_oauth_client_assertion_file_base_path == 'none' and kafka_broker_oauth_client_assertion_private_key_passphrase != 'none' and (not kafka_broker_rest_proxy_mds_cert_auth_only)}}"
properties:
kafka.rest.confluent.metadata.oauthbearer.assertion.private.key.passphrase: "{{kafka_broker_oauth_client_assertion_private_key_passphrase}}"
embedded_rest_proxy_rbac_oauth_local_client_assertion_jti_include:
enabled: "{{ kafka_broker_rest_proxy_enabled and rbac_enabled and oauth_enabled and kafka_broker_oauth_client_assertion_enabled and kafka_broker_oauth_client_assertion_file_base_path == 'none' and kafka_broker_oauth_client_assertion_jti_include != 'none' and (not kafka_broker_rest_proxy_mds_cert_auth_only)}}"
properties:
kafka.rest.confluent.metadata.oauthbearer.assertion.claim.jti.include: "{{kafka_broker_oauth_client_assertion_jti_include}}"