Issue #10538 has been updated by Ian Brandt.
Josh Cooper wrote: > `puppet apply` without any arguments will use the environment and modulepath > from puppet.conf: Hi Josh, I've since seen that the environment and modulepath are being used, and that's great. > It does not use the `manifest` property as that is a puppet master setting. > And since a manifest was not specified on the command line, `puppet apply` > will block reading from stdin for a manifest to be entered interactively. > This behavior has been this way for a long time, at least since 2.6.0. If > you'd really like to be able to specify the manifest n the configuration > file, I recommend bringing it up on the puppet users group. Understood, I'll take it up on the mailing list. I did bring it up on IRC, and the feedback was to use a command line flag as opposed to changing the default behavior. That way there would be no surprises for those used to the current behavior. I can't argue with that: `puppet apply --conf-manifest` is better than `puppet apply ~/long/path/to/the/manifest/in/my/vcs/working/copy.pp`. The advantage to the flag is a recursive Puppet module can be used to distribute changes to puppet.conf that repoint the manifest being used. That beats an e-mail to all developers to change the manifest path in their Bash aliases or what have you upon their next VCS update. ---------------------------------------- Feature #10538: Puppet apply should use settings from puppet.conf in lieu command line arguments https://projects.puppetlabs.com/issues/10538 Author: Ian Brandt Status: Rejected Priority: Normal Assignee: Category: executables Target version: Affected Puppet version: 2.7.6 Keywords: Branch: It would be great if "puppet apply" would use the environment, modulepath and manifest settings from puppet.conf instead of having to specify them on the command line each time. I know puppet.conf is being read from the default config dir when running puppet apply because the command fails if I introduce a syntax error in the file, but if I don't specify a manifest file as a command line argument puppet apply just sits there without returning or producing any output. My puppet.conf looks like: [user] environment = development [development] modulepath = /path/to/my/modules manifest = /path/to/my/manifests/site.pp -- 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.
