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,
El 13/03/2014 01:42, "Jared Curtis" <[email protected]> escribió:
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
Here's a link to the fact https://gist.github.com/jaredcurtis/9519725
Anyone have any suggestions on how to make it work correctly?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6dbcfbd6-2e06-43c6-b7fe-a51febcc3997%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/6dbcfbd6-2e06-43c6-b7fe-a51febcc3997%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--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
Here's a link to the fact https://gist.github.com/jaredcurtis/9519725
Anyone have any suggestions on how to make it work correctly?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6dbcfbd6-2e06-43c6-b7fe-a51febcc3997%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/6dbcfbd6-2e06-43c6-b7fe-a51febcc3997%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3ddrm2%2B71OscCJrLProDa%2B81v0MnQCW3uSN9XXNY4RPT9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.