`
**host_vars/server1**
`
``users:``
``- name: iwhite``
``comment: 'Ian White'``
``shell: /bin/bash``
``groups: wheel``
`
The usecase for this is some users should only have access to a few servers while other users have access to all etc. I also dont want to duplicate users in many yaml files.
If the above dictionary was merged then if my inventory looks like this
`
[postgres]
sererp
[haproxy]
server1
[nonprod]
serverd
`
jsmith will haev access to serverp/1/d
tdoe will have access to serverp
iwhite will have access to server1
I have found similar question on the internet, but most were a few years old. I hoping something has changed.
An Simple example from Puppet that we have working. We have a firewall manifest that applies rules based on a hash. We simply lookup all hashes and create resources.