I couldn't find anything in documentation about having multiple includes under the same key, but when I tried it, I ended up with only that last include keys under the root key.
For example:
/srv/pillar/top.sls
base:
'*':
- ports
cat /srv/pillar/ports/init.sls
include:
- ports.frontend:
key: ports
- ports.backend:
key: ports
/srv/pillar/ports/backend.sls
service1: 10000
service2: 10001
/srv/pillar/ports/frontend.sls
web1: 8000
web2: 8001
The result of salt '*' pillar.items
devoid of other keys looks like this:
ports:
----------
service1:
10000
service2:
10001
Desired result would look like this:
ports:
web1:
8000
web2:
8001
service1:
10000
service2:
10001