Hello all.
I have this defined in one hiera file:
application::user:
someusername:
uid: 3428
managehome: true
comment: Application User
shell: /bin/bash
gid: 1203
and in another hiera file i have this:
apache::vhosts :
user-vhost:
docroot:
docroot_owner:
log_level: debug
ip_based: true
The question is (and i don't know whether it's possible) can i get the "someusername" value and use it in the docroot_owner bit? i've tried:
docroot_owner: "%{hiera('application::user[$title]')}"
but that doesn't work. any other ideas? is this even possible? I'm on 2016.1
Thanks!
↧