|
17 | 17 |
|
18 | 18 | PuppetLint.new_check(:top_scope_facts) do |
19 | 19 | def check |
20 | | - whitelist = ['trusted', 'facts'] + (PuppetLint.configuration.top_scope_variables || []) |
| 20 | + whitelist = ['trusted', 'facts', 'architecture', 'augeasversion', 'bios_release_date', 'bios_vendor', 'bios_version', |
| 21 | + 'boardassettag', 'boardmanufacturer', 'boardproductname', 'boardserialnumber', 'chassisassettag', 'chassistype', 'domain', |
| 22 | + 'fqdn', 'gid', 'hardwareisa', 'hardwaremodel', 'hostname', 'id', 'ipaddress', 'ipaddress6', 'lsbdistcodename', |
| 23 | + 'lsbdistdescription', 'lsbdistid', 'lsbdistrelease', 'lsbmajdistrelease', 'lsbminordistrelease', 'lsbrelease', |
| 24 | + 'macaddress', 'macosx_buildversion', 'macosx_productname', 'macosx_productversion', 'macosx_productversion_major', |
| 25 | + 'macosx_productversion_minor', 'manufacturer', 'memoryfree', 'memorysize', 'netmask', 'netmask6', 'network', 'network6', |
| 26 | + 'operatingsystem', 'operatingsystemmajrelease', 'operatingsystemrelease', 'osfamily', 'physicalprocessorcount', |
| 27 | + 'processorcount', 'productname', 'rubyplatform', 'rubysitedir', 'rubyversion', 'selinux', 'selinux_config_mode', |
| 28 | + 'selinux_config_policy', 'selinux_current_mode', 'selinux_enforced', 'selinux_policyversion', 'serialnumber', |
| 29 | + 'swapencrypted', 'swapfree', 'swapsize', 'system32', 'uptime', 'uptime_days', 'uptime_hours', 'uptime_seconds', |
| 30 | + 'uuid', 'xendomains', 'zonename'] + (PuppetLint.configuration.top_scope_variables || []) |
21 | 31 | whitelist = whitelist.join('|') |
22 | 32 | tokens.select { |x| TOP_SCOPE_FACTS_VAR_TYPES.include?(x.type) }.each do |token| |
23 | 33 | next unless %r{^::}.match?(token.value) |
|
0 commit comments