Facter facts and sudo

204 views
Skip to first unread message

Jared Curtis

unread,
Mar 12, 2014, 8:42:25 PM3/12/14
to puppet...@googlegroups.com
Hi everyone,

I currently have a custom fact that pulls some config settings from our postgres servers. It seems that these facts work fine when I run facter or puppet manually; but when the puppet daemon itself does a run the facts are not created.

I'm doing two things differently in this fact when compared to others I've written.
  • It returns multiple facts
  • I'm using sudo

Anyone have any suggestions on how to make it work correctly?

José Luis Ledesma

unread,
Mar 13, 2014, 2:25:03 AM3/13/14
to puppet...@googlegroups.com

Hi,

   Have you reviewed the system logs? Perhaps you have the "requiretty" option in the sudoers.

Anyway, why do you use sudo? Agent runs as root, so you can use just su.

Regards,

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6dbcfbd6-2e06-43c6-b7fe-a51febcc3997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages