Comments (6)
Should it? Declaring resources outside the scope of a class or define is valid (and a trick I tend to use to great effect).
from puppet-lint.
It might catch some people that placed their closing } too early.
How do you use them within your modules? Have an example? I'm always interested in new tricks ;)
from puppet-lint.
I don't use an ENC, so I have a file per node that looks roughly like this
@pxe::client { 'mynode.example.com':
mac => '01:23:45:67:89:AB',
os => 'lenny',
}
node 'mynode.example.com' {
...
}
This allows me to keep my PXE client config with my node definition. Exported resources aren't an option here as we need the PXE config in place before the node has an OS, let alone run Puppet.
from puppet-lint.
Still, that's not inside a module is it?
from puppet-lint.
I've written a check that does this. https://github.com/llowder/puppet-lint-resource_outside_class-check
from puppet-lint.
Thank you @llowder!
from puppet-lint.
Related Issues (20)
- Changing parenthesis to braces with -f HOT 1
- Wrong warrning: "variable contains an uppercase"
- Array operations on parameters confuse puppet-lint
- Heredoc syntax error HOT 2
- NoMethodError: undefined method `next_token' for nil:NilClass HOT 2
- False positive on when using a method on a variable
- Crash when fixing ensure_first_param HOT 1
- fix for ensure_first_param breaks heredocs
- heredoc prematurely terminated HOT 1
- make a new release? HOT 1
- Unexpected error
- False positive "Single Quoted String Containing Variables" in single quoted strings.
- Certain characters in strings suppressing legit warnings
- [2.4.2] Mistaken variable format crashes puppet-lint HOT 1
- Syntax error when using Unicode characters in heredoc
- [2.4.2] Security problem CVE-2012-6708 HOT 1
- Puppet-lint does not report hash rocket alignment inside a hash definition HOT 1
- double_quoted_strings does not permit space escape sequence HOT 1
- 2.5.0 available on rubygems.org but not tagged HOT 2
- add PyYAML to package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-lint.