]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
safcm: group_order: higher priority for listed groups over remaining groups
authorSimon Ruderich <simon@ruderich.org>
Wed, 28 Apr 2021 05:32:37 +0000 (07:32 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 28 Apr 2021 05:53:19 +0000 (07:53 +0200)
commit20686d0d25d7d22f577fc80df31c192b6a88d318
tree90bae99790b55b4e475138c37b5969a403208b65
parent4ce09b6e6f7056883af10c3207aed6866657f9f9
safcm: group_order: higher priority for listed groups over remaining groups

The priority for all groups listed in `group_order` was properly
respected: Early entries had the highest priority. However, groups which
were not listed in `group_order` had a higher priority and overwrote
files from all groups configured in `group_order`.

The priority is now as expected (from high to low): host itself, groups
in group_order (from high to low), remaining groups.
cmd/safcm/sync_sync.go
cmd/safcm/sync_sync_test.go
cmd/safcm/testdata/project-group_order-single/config.yaml [new file with mode: 0644]
cmd/safcm/testdata/project-group_order-single/group-a/files/file.txt [new file with mode: 0644]
cmd/safcm/testdata/project-group_order-single/group-b/files/file.txt [new file with mode: 0644]
cmd/safcm/testdata/project-group_order-single/groups.yaml [new file with mode: 0644]
cmd/safcm/testdata/project-group_order-single/hosts.yaml [new file with mode: 0644]