access matrix via authorized_keys
I have a number of servers that can be accessed only by ssh keys, defined in authorized_keys. User accessibility varies across the cluster, therefore I have an access matrix. E.g. user1 can access only server2 and user2 can access only server1.
user1 x user2 x server1 server2
I was wondering, is it possible to achieve such access strategy with Puppet? More specifically, I could not find a way to explicitly specify servers accessible to a user.
If this is doable with Puppet, do you have any suggestions on the right solution?