GithubHelp home page GithubHelp logo

Comments (6)

rodjek avatar rodjek commented on September 25, 2024

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.

vStone avatar vStone commented on September 25, 2024

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.

rodjek avatar rodjek commented on September 25, 2024

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.

vStone avatar vStone commented on September 25, 2024

Still, that's not inside a module is it?

from puppet-lint.

llowder avatar llowder commented on September 25, 2024

I've written a check that does this. https://github.com/llowder/puppet-lint-resource_outside_class-check

from puppet-lint.

rnelson0 avatar rnelson0 commented on September 25, 2024

Thank you @llowder!

from puppet-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.