Issue #2557 has been updated by Larry Ludwig.
Well in my example above it's definitely running the include class from the output generated. So what you are telling me if you add -e a file should not be included? If so then puppet should error out if -e is included with a file so this is obvious. Though personally I like the idea of using the -e parameter, as you can do much more interactive things with your puppet manifests via the command line and was how you (luke) explained it to me. It's time to document this puppy :-) ---------------------------------------- Bug #2557: -e with puppet appears to execute first http://projects.reductivelabs.com/issues/2557 Author: Larry Ludwig Status: Needs design decision Priority: Normal Assigned to: Category: executables Target version: Complexity: Unknown Affected version: 0.24.8 Keywords: In the code example <pre> $myvar='foo' class test { alert ("myvar: ${myvar}") } include test </pre> Yields the result: lludwig$ puppet test.pp alert: Scope(Class[test]): myvar: foo </pre> Yet, if your remove the 'include test' and execute it via the command line yields a different result. <pre> lludwig$ puppet test.pp -e 'include test' alert: Scope(Class[test]): myvar: </pre> It appears from other tests that the 'include test' via the command line is executed first. Shouldn't load all .pp files and execute last? -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
