Hi again,

Just a little nudge to see if anyone has attempted any of the prior mentioned, or if they may have ideas on how this is best achieved..

Kind regards,

David

On 27 March 2018 at 16:22, David Harvey <davidcharvey@googlemail.com> wrote:
Dear list,

I'm currently tinkering with adding host attributes (As custom attrs, or for the moment into the description field).  My intention is to then read these from the host in order to define some local behaviour for scripts or puppet.

Example - a concept of machine ownership, or device class for local scripts or puppet to know about.

The two ways I've thought of so far entail 
  • having the CLI tools installed to run IPA commands, or 
  • kinit -kt /etc/krb5.keytab followed by ldapsearch to read in the parts I'm interested in.
It occurred to me that sssd or some other components I understand less well might already be able to trivially read the host data IPA holds, or that the kinit might not be needed given the machine can already read out getent aprts direct from LDAP/IPA values with a non network account in use.

Any ideas or suggestion around this so I don't reinvent the wheel?

Kind regards,

David