Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add top_scope_facts and legacy_facts linters #62

Merged
merged 1 commit into from
Aug 25, 2016

Conversation

mmckinst
Copy link
Contributor

useful to take advantage of the structured facts and $facts hash in
puppet 4 but puppet 3 users can also make use of them if they've
configured puppet correctly or are running a new version of facter

  • top_scope_facts - lints for facts like $::operatingsystem and
    replaces them with $facts['operatingsystem'] .
  • legacy_facts - lints for so called legacy facts like
    $facts['operatingsystemmajrelease'] or $::operatingsystemmajrelease
    and replaces them with the new fancy structured fact like
    $facts['os']['release']['major']

ref voxpupuli/plumbing#21

useful to take advantage of the structured facts and `$facts` hash in
puppet 4 but puppet 3 users can also make use of them if they've
configured puppet correctly or are running a new version of facter

* top_scope_facts - lints for facts like `$::operatingsystem` and
replaces them with `$facts['operatingsystem']` .

* legacy_facts - lints for so called legacy facts like
`$facts['operatingsystemmajrelease']` or `$::operatingsystemmajrelease`
and replaces them with the new fancy structured fact like
`$facts['os']['release']['major']`

ref voxpupuli/plumbing#21
@daenney daenney merged commit 77680b6 into voxpupuli:master Aug 25, 2016
@daenney
Copy link
Member

daenney commented Aug 25, 2016

Thanks @mmckinst!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants