Issue #7802 has been updated by Daniel Pittman.
>> # lib/puppet/application/face_base, line 6 >> class Puppet::Application::FaceBase < Puppet::Application >> should_parse_config >> run_mode :agent > > So to me, that looks like any app inheriting from FaceBase ought to have a > default run mode of agent, right? But they default to user instead. Nick0 > was looking at this with me, and we thought it might just be setting run > mode for FaceBase, not any of its children. Not sure, though. Looks that way, and theoretically it *should* end up evaluating into that run-mode... > What’s the spec? SHOULD we be running as user most of the time? ...but isn't 'user' the internal name for :agent mode anyhow? Regardless, the answer is "unclear, ask again later", in that we don't really have a coherent answer even within the simple scope of the CLI, let alone when using these things from Ruby code. They *should* operate with the correct settings for what the user wants to do, which can be *both* user and master on the same system, at different times. ---------------------------------------- Bug #7802: Despite evidence that face apps are supposed to default to the :agent run mode, they default to :user https://projects.puppetlabs.com/issues/7802 Author: Nick Fagerlund Status: Needs More Information Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: # lib/puppet/application/face_base, line 6 class Puppet::Application::FaceBase < Puppet::Application should_parse_config run_mode :agent So to me, that looks like any app inheriting from FaceBase ought to have a default run mode of agent, right? But they default to user instead. Nick0 was looking at this with me, and we thought it might just be setting run mode for FaceBase, not any of its children. Not sure, though. What's the spec? SHOULD we be running as user most of the time? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
