forked from debops/debops
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
2809 lines (2535 loc) · 81.2 KB
/
.gitlab-ci.yml
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
# .. vim: foldmarker=[[[,]]]:foldmethod=marker
# Test DebOps roles and playbooks using Gitlab CI, Vagrant and Jane
#
# Copyright (C) 2017-2020 Maciej Delmanowski <[email protected]>
# Copyright (C) 2017-2020 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-or-later
# This file is part of DebOps.
#
# DebOps is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# DebOps is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DebOps. If not, see https://www.gnu.org/licenses/.
---
variables:
TEST_PLAYBOOKS: '/vagrant/lib/tests/playbooks'
TEST_SCRIPTS: '/vagrant/lib/tests/scripts'
DEBOPS_PLAYBOOKS: '/vagrant/ansible/playbooks'
VAGRANT_DOTFILE_PATH: '/var/tmp/vagrant-dotfile-${CI_JOB_ID}'
JANE_DIFF_BASE_BRANCH: 'origin/stable-3.1'
GIT_STRATEGY: 'clone'
TERM: 'xterm'
stages:
- 'DebOps roles (no deps)'
- 'DebOps roles (1st deps)'
- 'DebOps roles (2nd deps)'
- 'DebOps roles (3rd deps)'
- 'DebOps roles (4th deps)'
- 'DebOps roles (5th deps)'
- 'DebOps roles (6th deps)'
# === Role testing templates === [[[1
.tpl_test_role_base: &test_role_base
tags: [ 'shell', 'vagrant' ]
before_script:
- './lib/tests/jane gitlab before_script'
script:
- './lib/tests/jane gitlab script'
after_script:
- './lib/tests/jane gitlab after_script'
.tpl_test_role_no_deps: &test_role_no_deps
<<: *test_role_base
stage: 'DebOps roles (no deps)'
.tpl_test_role_1st_deps: &test_role_1st_deps
<<: *test_role_base
stage: 'DebOps roles (1st deps)'
.tpl_test_role_2nd_deps: &test_role_2nd_deps
<<: *test_role_base
stage: 'DebOps roles (2nd deps)'
.tpl_test_role_3rd_deps: &test_role_3rd_deps
<<: *test_role_base
stage: 'DebOps roles (3rd deps)'
.tpl_test_role_4th_deps: &test_role_4th_deps
<<: *test_role_base
stage: 'DebOps roles (4th deps)'
.tpl_test_role_5th_deps: &test_role_5th_deps
<<: *test_role_base
stage: 'DebOps roles (5th deps)'
.tpl_test_role_6th_deps: &test_role_6th_deps
<<: *test_role_base
stage: 'DebOps roles (6th deps)'
# === Ansible roles === [[[1
# --- ansible --- [[[2
'ansible role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
- 'apt_preferences role'
variables:
JANE_TEST_FACT: 'ansible.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/ansible.yml'
JANE_INVENTORY_GROUPS: 'debops_service_ansible'
JANE_DIFF_PATTERN: '.*/roles/ansible/.*'
JANE_LOG_PATTERN: '\[ansible\]'
# --- apache --- [[[2
'apache role':
<<: *test_role_1st_deps
needs:
- 'ferm role'
variables:
JANE_TEST_FACT: 'apache.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apache.yml'
JANE_INVENTORY_GROUPS: 'debops_service_apache'
JANE_DIFF_PATTERN: '.*/roles/apache/.*'
JANE_LOG_PATTERN: '\[apache\]'
# --- apt --- [[[2
'apt role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'apt.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt.yml'
JANE_DIFF_PATTERN: '.*/roles/apt/.*'
JANE_LOG_PATTERN: '\[apt\]'
'apt_cacher_ng role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'etc_services role'
- 'apt_preferences role'
- 'ferm role'
- 'python role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'apt_cacher_ng.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_cacher_ng.yml'
JANE_INVENTORY_GROUPS: 'debops_service_apt_cacher_ng'
JANE_DIFF_PATTERN: '.*/roles/apt_cacher_ng/.*'
JANE_LOG_PATTERN: '\[apt_cacher_ng\]'
'apt_install role':
<<: *test_role_1st_deps
needs:
- 'apt_preferences role'
variables:
JANE_TEST_FACT: 'apt_install.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_install.yml'
JANE_DIFF_PATTERN: '.*/roles/apt_install/.*'
JANE_LOG_PATTERN: '\[apt_install\]'
'apt_listchanges role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'apt_listchanges.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_listchanges.yml'
JANE_DIFF_PATTERN: '.*/roles/apt_listchanges/.*'
JANE_LOG_PATTERN: '\[apt_listchanges\]'
'apt_mark role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'apt_mark.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_mark.yml'
JANE_DIFF_PATTERN: '.*/roles/apt_mark/.*'
JANE_LOG_PATTERN: '\[apt_mark\]'
'apt_mirror role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'ferm role'
- 'python role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'apt_mirror.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_mirror.yml'
JANE_INVENTORY_GROUPS: 'debops_service_apt_mirror'
JANE_DIFF_PATTERN: '.*/roles/apt_mirror/.*'
JANE_LOG_PATTERN: '\[apt_mirror\]'
'apt_preferences role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'apt_preferences.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_preferences.yml'
JANE_DIFF_PATTERN: '.*/roles/apt_preferences/.*'
JANE_LOG_PATTERN: '\[apt_preferences\]'
'apt_proxy role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'apt_proxy.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt_proxy.yml'
JANE_DIFF_PATTERN: '.*/roles/apt_proxy/.*'
JANE_LOG_PATTERN: '\[apt_proxy\]'
# --- atd --- [[[2
'atd role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'atd.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/atd.yml'
JANE_DIFF_PATTERN: '.*/roles/atd/.*'
JANE_LOG_PATTERN: '\[atd\]'
# --- auth --- [[[2
'auth role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'auth.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/auth.yml'
JANE_DIFF_PATTERN: '.*/roles/auth/.*'
JANE_LOG_PATTERN: '\[auth\]'
'authorized_keys role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'authorized_keys.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/authorized_keys.yml'
JANE_DIFF_PATTERN: '.*/roles/authorized_keys/.*'
JANE_LOG_PATTERN: '\[authorized_keys\]'
# --- avahi --- [[[2
'avahi role':
<<: *test_role_1st_deps
needs:
- 'python role'
- 'ferm role'
- 'nsswitch role'
variables:
JANE_TEST_FACT: 'avahi.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/avahi.yml'
JANE_INVENTORY_GROUPS: 'debops_service_avahi'
JANE_DIFF_PATTERN: '.*/roles/avahi/.*'
JANE_LOG_PATTERN: '\[avahi\]'
# --- b --- [[[2
'backup2l role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'backup2l.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/backup2l.yml'
JANE_INVENTORY_GROUPS: 'debops_service_backup2l'
JANE_DIFF_PATTERN: '.*/roles/backup2l/.*'
JANE_LOG_PATTERN: '\[backup2l\]'
'bind role':
<<: *test_role_2nd_deps
needs:
- 'apt_preferences role'
- 'ferm role'
- 'resolvconf role'
- 'cron role'
- 'logrotate role'
- 'keyring role'
- 'etc_services role'
- 'python role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'bind.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/bind.yml'
JANE_INVENTORY_GROUPS: 'debops_service_bind'
JANE_DIFF_PATTERN: '.*/roles/bind/.*'
JANE_LOG_PATTERN: '\[bind\]'
# At the moment BoxBackup role is broken, needs to be updated.
#'boxbackup role':
# <<: *test_role_1st_deps
# variables:
# JANE_TEST_FACT: 'boxbackup.fact'
# JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/boxbackup.yml'
# JANE_INVENTORY_GROUPS: 'debops_service_boxbackup'
# JANE_DIFF_PATTERN: '.*/roles/boxbackup/.*'
# JANE_LOG_PATTERN: '\[boxbackup\]'
# --- c --- [[[2
'common playbook':
<<: *test_role_4th_deps
needs:
- 'debops_fact role'
- 'environment role'
- 'resolvconf role'
- 'netbase role'
- 'secret role'
- 'fhs role'
- 'python role'
- 'apt_preferences role'
- 'apt_proxy role'
- 'apt role'
- 'tzdata role'
- 'etckeeper role'
- 'cron role'
- 'atd role'
- 'dhparam role'
- 'pki role'
- 'machine role'
- 'ldap role'
- 'keyring role'
- 'yadm role'
- 'sudo role'
- 'nsswitch role'
- 'root_account role'
- 'libuser role'
- 'system_groups role'
- 'system_users role'
- 'pam_access role'
- 'apt_listchanges role'
- 'apt_install role'
- 'etc_services role'
- 'logrotate role'
- 'auth role'
- 'users role'
- 'mount role'
- 'resources role'
- 'ferm role'
- 'tcpwrappers role'
- 'locales role'
- 'ntp role'
- 'proc_hidepid role'
- 'console role'
- 'sysctl role'
- 'nullmailer role'
- 'journald role'
- 'rsyslog role'
- 'unattended_upgrades role'
- 'authorized_keys role'
- 'sshd role'
- 'apt_mark role'
variables:
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/common.yml'
JANE_DIFF_PATTERN: '.*/playbooks\/common\.yml/.*'
JANE_LOG_PATTERN: '\[common playbook\]'
tags: [ 'shell', 'vagrant-vm' ]
'console role':
<<: *test_role_no_deps
variables:
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/console.yml'
JANE_DIFF_PATTERN: '.*/roles/console/.*'
JANE_LOG_PATTERN: '\[console\]'
'controller role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'python role'
- 'ansible role'
variables:
JANE_TEST_FACT: 'controller.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/controller.yml'
JANE_INVENTORY_GROUPS: 'debops_service_controller'
JANE_DIFF_PATTERN: '.*/roles/controller/.*'
JANE_LOG_PATTERN: '\[controller\]'
'core role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'core.fact tags.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/core.yml'
JANE_DIFF_PATTERN: '.*/roles/core/.*'
JANE_LOG_PATTERN: '\[core\]'
'cran role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'java role'
variables:
# The cran packages are not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'cran.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/cran.yml'
JANE_INVENTORY_GROUPS: 'debops_service_cran'
JANE_DIFF_PATTERN: '.*/roles/cran/.*'
JANE_LOG_PATTERN: '\[cran\]'
'cron role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'cron.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/cron.yml'
JANE_DIFF_PATTERN: '.*/roles/cron/.*'
JANE_LOG_PATTERN: '\[cron\]'
'cryptsetup role':
<<: *test_role_1st_deps
variables:
JANE_TEST_FACT: 'cryptsetup.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/cryptsetup.yml'
JANE_INVENTORY_GROUPS: 'debops_service_cryptsetup'
JANE_DIFF_PATTERN: '.*/roles/cryptsetup/.*'
JANE_LOG_PATTERN: '\[cryptsetup\]'
tags: [ 'shell', 'vagrant-vm' ]
'cryptsetup/persistent_paths role':
<<: *test_role_1st_deps
needs:
- 'persistent_paths role'
variables:
JANE_TEST_FACT: 'cryptsetup.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/cryptsetup-persistent_paths.yml'
JANE_INVENTORY_GROUPS: 'debops_service_cryptsetup_persistent_paths'
JANE_DIFF_PATTERN: '.*/roles/cryptsetup/.*'
JANE_LOG_PATTERN: '\[cryptsetup\]'
tags: [ 'shell', 'vagrant-vm' ]
# --- d --- [[[2
'debops_fact role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'debops_fact.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/debops_fact.yml'
JANE_DIFF_PATTERN: '.*/roles/debops_fact/.*'
JANE_LOG_PATTERN: '\[debops_fact\]'
'debops_legacy role':
<<: *test_role_no_deps
variables:
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/debops_legacy.yml'
JANE_DIFF_PATTERN: '.*/roles/debops_legacy/.*'
JANE_LOG_PATTERN: '\[debops_legacy\]'
'dhcp_probe role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'dhcp_probe.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/dhcp_probe.yml'
JANE_INVENTORY_GROUPS: 'debops_service_dhcp_probe'
JANE_DIFF_PATTERN: '.*/roles/dhcp_probe/.*'
JANE_LOG_PATTERN: '\[dhcp_probe\]'
'dhcpd role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'dhcpd.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/dhcpd.yml'
JANE_INVENTORY_GROUPS: 'debops_service_dhcpd'
JANE_DIFF_PATTERN: '.*/roles/dhcpd/.*'
JANE_LOG_PATTERN: '\[dhcpd\]'
'dhcrelay role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'dhcrelay.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/dhcrelay.yml'
JANE_INVENTORY_GROUPS: 'debops_service_dhcrelay'
JANE_DIFF_PATTERN: '.*/roles/dhcrelay/.*'
JANE_LOG_PATTERN: '\[dhcrelay\]'
'dhparam role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'dhparam.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/dhparam.yml'
JANE_DIFF_PATTERN: '.*/roles/dhparam/.*'
JANE_LOG_PATTERN: '\[dhparam\]'
'dnsmasq role':
<<: *test_role_3rd_deps
needs:
- 'resolvconf role'
- 'python role'
- 'kmod role'
- 'ferm role'
- 'sysctl role'
- 'tcpwrappers role'
- 'ifupdown role'
variables:
BASE_VAGRANT_BOX: 'debian/stretch64'
JANE_TEST_FACT: 'dnsmasq.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/ifupdown.yml ${DEBOPS_PLAYBOOKS}/service/dnsmasq.yml'
JANE_INVENTORY_DIRS: 'common dnsmasq'
JANE_INVENTORY_GROUPS: 'debops_service_ifupdown,debops_service_dnsmasq'
JANE_DIFF_PATTERN: '.*/roles/dnsmasq/.*'
JANE_LOG_PATTERN: '\[dnsmasq\]'
tags: [ 'shell', 'vagrant-vm' ]
'dnsmasq/persistent_paths role':
<<: *test_role_4th_deps
needs:
- 'resolvconf role'
- 'python role'
- 'kmod role'
- 'ferm role'
- 'sysctl role'
- 'tcpwrappers role'
- 'ifupdown role'
- 'dnsmasq role'
- 'persistent_paths role'
variables:
BASE_VAGRANT_BOX: 'debian/stretch64'
JANE_TEST_FACT: 'dnsmasq.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/ifupdown.yml ${DEBOPS_PLAYBOOKS}/service/dnsmasq-persistent_paths.yml'
JANE_INVENTORY_DIRS: 'common dnsmasq'
JANE_INVENTORY_GROUPS: 'debops_service_ifupdown,debops_service_dnsmasq_persistent_paths'
JANE_DIFF_PATTERN: '.*/roles/dnsmasq/.*'
JANE_LOG_PATTERN: '\[dnsmasq\]'
tags: [ 'shell', 'vagrant-vm' ]
'docker_gen role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'docker_gen.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/docker_gen.yml'
JANE_INVENTORY_GROUPS: 'debops_service_docker_gen'
JANE_DIFF_PATTERN: '.*/roles/docker_gen/.*'
JANE_LOG_PATTERN: '\[docker_gen\]'
'docker_registry role':
<<: *test_role_3rd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'etc_services role'
- 'python role'
- 'ldap role'
- 'sudo role'
- 'ferm role'
- 'nginx role'
- 'golang role'
variables:
JANE_TEST_FACT: 'docker_registry.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/docker_registry.yml'
JANE_INVENTORY_GROUPS: 'debops_service_docker_registry'
JANE_DIFF_PATTERN: '.*/roles/docker_registry/.*'
JANE_LOG_PATTERN: '\[docker_registry\]'
'docker_server role':
<<: *test_role_1st_deps
needs:
- 'resolvconf role'
- 'keyring role'
- 'etc_services role'
- 'ferm role'
- 'python role'
variables:
JANE_TEST_FACT: 'docker_server.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/docker_server.yml'
JANE_INVENTORY_GROUPS: 'debops_service_docker_server'
JANE_DIFF_PATTERN: '.*/roles/docker_server/.*'
JANE_LOG_PATTERN: '\[docker_server\]'
tags: [ 'shell', 'vagrant-vm' ]
'dokuwiki role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'logrotate role'
- 'php role'
- 'ferm role'
- 'python role'
- 'ldap role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'dokuwiki.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/dokuwiki.yml'
JANE_INVENTORY_GROUPS: 'debops_service_dokuwiki'
JANE_DIFF_PATTERN: '.*/roles/dokuwiki/.*'
JANE_LOG_PATTERN: '\[dokuwiki\]'
'dovecot role':
<<: *test_role_3rd_deps
needs:
- 'secret role'
- 'ferm role'
- 'postfix role'
- 'python role'
- 'ldap role'
variables:
JANE_TEST_FACT: 'dovecot.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/pki.yml ${DEBOPS_PLAYBOOKS}/service/dovecot.yml'
JANE_INVENTORY_GROUPS: 'debops_service_pki,debops_service_dovecot'
JANE_INVENTORY_HOSTVARS: 'dovecot'
JANE_DIFF_PATTERN: '.*/roles/dovecot/.*'
JANE_LOG_PATTERN: '\[dovecot\]'
# --- e --- [[[2
'elastic_co role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
- 'apt_preferences role'
variables:
# The elastic repository is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'elastic_co.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/elastic_co.yml'
JANE_INVENTORY_GROUPS: 'debops_service_elastic_co'
JANE_DIFF_PATTERN: '.*/roles/elastic_co/.*'
JANE_LOG_PATTERN: '\[elastic_co\]'
'elasticsearch role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'secret role'
- 'apt_preferences role'
- 'etc_services role'
- 'sysctl role'
- 'ferm role'
- 'java role'
- 'elastic_co role'
variables:
# The elastic repository is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'elasticsearch.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/elasticsearch.yml'
JANE_INVENTORY_GROUPS: 'debops_service_elasticsearch'
JANE_DIFF_PATTERN: '.*/roles/elasticsearch/.*'
JANE_LOG_PATTERN: '\[elasticsearch\]'
'environment role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'environment.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/environment.yml'
JANE_DIFF_PATTERN: '.*/roles/environment/.*'
JANE_LOG_PATTERN: '\[environment\]'
'etc_aliases role':
<<: *test_role_1st_deps
needs:
- 'secret role'
variables:
JANE_TEST_FACT: 'etc_aliases.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/etc_aliases.yml'
JANE_INVENTORY_GROUPS: 'debops_service_etc_aliases'
JANE_DIFF_PATTERN: '.*/roles/etc_aliases/.*'
JANE_LOG_PATTERN: '\[etc_aliases\]'
'etc_services role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'etc_services.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/etc_services.yml'
JANE_DIFF_PATTERN: '.*/roles/etc_services/.*'
JANE_LOG_PATTERN: '\[etc_services\]'
'etckeeper role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'etckeeper.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/etckeeper.yml'
JANE_INVENTORY_GROUPS: 'debops_service_etckeeper'
JANE_DIFF_PATTERN: '.*/roles/etckeeper/.*'
JANE_LOG_PATTERN: '\[etckeeper\]'
'etherpad role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'etc_services role'
- 'logrotate role'
- 'apt_preferences role'
- 'nodejs role'
- 'ferm role'
- 'python role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'etherpad.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/etherpad.yml'
JANE_INVENTORY_GROUPS: 'debops_service_etherpad'
JANE_DIFF_PATTERN: '.*/roles/etherpad/.*'
JANE_LOG_PATTERN: '\[etherpad\]'
'etherpad/mariadb role':
<<: *test_role_3rd_deps
needs:
- 'keyring role'
- 'etc_services role'
- 'logrotate role'
- 'apt_preferences role'
- 'nodejs role'
- 'ferm role'
- 'tcpwrappers role'
- 'python role'
- 'mariadb_server role'
- 'mariadb role'
- 'nginx role'
- 'etherpad role'
variables:
JANE_TEST_FACT: 'etherpad.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/mariadb_server.yml ${DEBOPS_PLAYBOOKS}/service/etherpad.yml'
JANE_INVENTORY_GROUPS: 'debops_service_mariadb_server,debops_service_etherpad'
JANE_DIFF_PATTERN: '.*/roles/etherpad/.*'
JANE_LOG_PATTERN: '\[etherpad\]'
JANE_IGNORE_IDEMPOTENCY: 'Issues with mysql_user Ansible module (https://github.com/ansible/ansible/issues/60567)'
'etherpad/postgresql role':
<<: *test_role_3rd_deps
needs:
- 'keyring role'
- 'etc_services role'
- 'logrotate role'
- 'apt_preferences role'
- 'nodejs role'
- 'ferm role'
- 'python role'
- 'locales role'
- 'postgresql_server role'
- 'postgresql role'
- 'nginx role'
- 'etherpad role'
variables:
JANE_TEST_FACT: 'etherpad.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/postgresql_server.yml ${DEBOPS_PLAYBOOKS}/service/etherpad.yml'
JANE_INVENTORY_GROUPS: 'debops_service_postgresql_server,debops_service_etherpad'
JANE_INVENTORY_HOSTVARS: 'postgresql_server__delegate_to=localhost postgresql__delegate_to=localhost'
JANE_DIFF_PATTERN: '.*/roles/etherpad/.*'
JANE_LOG_PATTERN: '\[etherpad\]'
'etesync role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'logrotate role'
- 'ferm role'
- 'python role'
- 'gunicorn role'
- 'nginx role'
variables:
JANE_TEST_FACT: 'etesync.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/etesync.yml'
JANE_INVENTORY_GROUPS: 'debops_service_etesync'
JANE_DIFF_PATTERN: '.*/roles/etesync/.*'
JANE_LOG_PATTERN: '\[etesync\]'
'extrepo role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'extrepo.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt.yml ${DEBOPS_PLAYBOOKS}/service/extrepo.yml'
JANE_INVENTORY_GROUPS: 'debops_service_extrepo'
JANE_DIFF_PATTERN: '.*/roles/extrepo/.*'
JANE_LOG_PATTERN: '\[extrepo\]'
# --- f --- [[[2
'fail2ban role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'fail2ban.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/fail2ban.yml'
JANE_INVENTORY_GROUPS: 'debops_service_fail2ban'
JANE_DIFF_PATTERN: '.*/roles/fail2ban/.*'
JANE_LOG_PATTERN: '\[fail2ban\]'
'fcgiwrap role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'fcgiwrap.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/fcgiwrap.yml'
JANE_INVENTORY_GROUPS: 'debops_service_fcgiwrap'
JANE_DIFF_PATTERN: '.*/roles/fcgiwrap/.*'
JANE_LOG_PATTERN: '\[fcgiwrap\]'
'ferm role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'ferm.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/ferm.yml'
JANE_DIFF_PATTERN: '.*/roles/ferm/.*'
JANE_LOG_PATTERN: '\[ferm\]'
'fhs role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'fhs.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/fhs.yml'
JANE_DIFF_PATTERN: '.*/roles/fhs/.*'
JANE_LOG_PATTERN: '\[fhs\]'
'filebeat role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'apt_preferences role'
- 'elastic_co role'
variables:
# The elastic repository is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'filebeat.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/filebeat.yml'
JANE_INVENTORY_GROUPS: 'debops_service_filebeat'
JANE_DIFF_PATTERN: '.*/roles/filebeat/.*'
JANE_LOG_PATTERN: '\[filebeat\]'
'freeradius role':
<<: *test_role_1st_deps
needs:
- 'ferm role'
- 'logrotate role'
variables:
JANE_TEST_FACT: 'freeradius.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt.yml ${DEBOPS_PLAYBOOKS}/service/freeradius.yml'
JANE_INVENTORY_GROUPS: 'debops_service_freeradius'
JANE_DIFF_PATTERN: '.*/roles/freeradius/.*'
JANE_LOG_PATTERN: '\[freeradius\]'
# --- g --- [[[2
'gitlab role':
<<: *test_role_3rd_deps
needs:
- 'keyring role'
- 'extrepo role'
- 'etc_services role'
- 'ferm role'
- 'python role'
- 'ldap role'
variables:
JANE_TEST_FACT: 'gitlab.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/pki.yml ${DEBOPS_PLAYBOOKS}/service/gitlab.yml'
JANE_INVENTORY_GROUPS: 'debops_service_gitlab'
JANE_DIFF_PATTERN: '.*/roles/gitlab/.*'
JANE_LOG_PATTERN: '\[gitlab\]'
VAGRANT_MASTER_MEMORY: '6144'
tags: [ 'shell', 'vagrant-vm', 'mem-6GB' ]
'gitlab_runner role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
variables:
# The gitlab-runner package is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'gitlab_runner.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/gitlab_runner.yml'
JANE_INVENTORY_GROUPS: 'debops_service_gitlab_runner'
JANE_DIFF_PATTERN: '.*/roles/gitlab_runner/.*'
JANE_LOG_PATTERN: '\[gitlab_runner\]'
'gitlab_runner/docker_server role':
<<: *test_role_2nd_deps
needs:
- 'resolvconf role'
- 'keyring role'
- 'etc_services role'
- 'ferm role'
- 'python role'
- 'docker_server role'
- 'gitlab_runner role'
variables:
# The gitlab-runner package is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'gitlab_runner.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/docker_server.yml ${DEBOPS_PLAYBOOKS}/service/gitlab_runner.yml'
JANE_INVENTORY_GROUPS: 'debops_service_docker_server,debops_service_gitlab_runner'
JANE_DIFF_PATTERN: '.*/roles/gitlab_runner/.*'
JANE_LOG_PATTERN: '\[gitlab_runner\]'
tags: [ 'shell', 'vagrant-vm' ]
'gitlab_runner/libvirt role':
<<: *test_role_2nd_deps
needs:
- 'keyring role'
- 'python role'
- 'libvirt role'
variables:
# The gitlab-runner package is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'gitlab_runner.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/libvirtd.yml ${DEBOPS_PLAYBOOKS}/service/gitlab_runner.yml'
JANE_INVENTORY_GROUPS: 'debops_service_libvirtd,debops_service_gitlab_runner'
JANE_DIFF_PATTERN: '.*/roles/gitlab_runner/.*'
JANE_LOG_PATTERN: '\[gitlab_runner\]'
tags: [ 'shell', 'vagrant-vm' ]
'gitlab_runner/lxc role':
<<: *test_role_2nd_deps
needs:
- 'resolvconf role'
- 'root_account role'
- 'apt_preferences role'
- 'ferm role'
- 'python role'
- 'sysctl role'
- 'lxc role'
- 'keyring role'
variables:
# The gitlab-runner package is not available in Bullseye
BASE_VAGRANT_BOX: 'debian/buster64'
JANE_TEST_FACT: 'gitlab_runner.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/lxc.yml ${DEBOPS_PLAYBOOKS}/service/gitlab_runner.yml'
JANE_INVENTORY_GROUPS: 'debops_service_lxc,debops_service_gitlab_runner'
JANE_DIFF_PATTERN: '.*/roles/gitlab_runner/.*'
JANE_LOG_PATTERN: '\[gitlab_runner\]'
tags: [ 'shell', 'vagrant-vm' ]
'gitusers role':
<<: *test_role_4th_deps
needs:
- 'system_groups role'
- 'authorized_keys role'
variables:
JANE_TEST_FACT: 'gitusers.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/gitusers.yml'
JANE_INVENTORY_GROUPS: 'debops_service_gitusers'
JANE_DIFF_PATTERN: '.*/roles/gitusers/.*'
JANE_LOG_PATTERN: '\[gitusers\]'
'golang role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
- 'apt_preferences role'
variables:
JANE_TEST_FACT: 'golang.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/golang.yml'
JANE_INVENTORY_GROUPS: 'debops_service_golang'
JANE_DIFF_PATTERN: '.*/roles/golang/.*'
JANE_LOG_PATTERN: '\[golang\]'
'grub role':
<<: *test_role_no_deps
variables:
JANE_TEST_FACT: 'grub.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/grub.yml'
JANE_INVENTORY_GROUPS: 'debops_service_grub'
JANE_DIFF_PATTERN: '.*/roles/grub/.*'
JANE_LOG_PATTERN: '\[grub\]'
tags: [ 'shell', 'vagrant-vm' ]
'gunicorn role':
<<: *test_role_1st_deps
needs:
- 'apt_preferences role'
- 'logrotate role'
- 'python role'
variables:
JANE_TEST_FACT: 'gunicorn.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/gunicorn.yml'
JANE_INVENTORY_GROUPS: 'debops_service_gunicorn'
JANE_DIFF_PATTERN: '.*/roles/gunicorn/.*'
JANE_LOG_PATTERN: '\[gunicorn\]'
# --- h --- [[[2
'hashicorp role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
variables:
JANE_TEST_FACT: 'hashicorp.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/hashicorp.yml'
JANE_INVENTORY_GROUPS: 'debops_service_hashicorp'
JANE_INVENTORY_HOSTVARS: 'hashicorp__applications=[\"consul\",\"consul-template\"]'
JANE_DIFF_PATTERN: '.*/roles/hashicorp/.*'
JANE_LOG_PATTERN: '\[hashicorp\]'
'hwraid role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
variables:
JANE_TEST_FACT: 'hwraid.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/hwraid.yml'
JANE_INVENTORY_GROUPS: 'debops_service_hwraid'
JANE_DIFF_PATTERN: '.*/roles/hwraid/.*'
JANE_LOG_PATTERN: '\[hwraid\]'
# --- i --- [[[2
'icinga role':
<<: *test_role_1st_deps
needs:
- 'keyring role'
- 'secret role'
- 'apt_preferences role'
- 'etc_services role'
- 'ferm role'
variables:
JANE_TEST_FACT: 'icinga.fact'
JANE_TEST_PLAY: '${DEBOPS_PLAYBOOKS}/service/apt.yml ${DEBOPS_PLAYBOOKS}/service/pki.yml ${DEBOPS_PLAYBOOKS}/service/icinga.yml'