/usr/include/facter/facts/fact.hpp is in facter-dev 3.10.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | /**
* @file
* Declares the fact name constants.
*/
#pragma once
#include "../export.h"
namespace facter { namespace facts {
/**
* Stores the constant fact names.
*/
struct LIBFACTER_EXPORT fact
{
/**
* The fact for kernel name.
*/
constexpr static char const* kernel = "kernel";
/**
* The fact for kernel version.
*/
constexpr static char const* kernel_version = "kernelversion";
/**
* The fact for kernel release.
*/
constexpr static char const* kernel_release = "kernelrelease";
/**
* The fact for kernel major version.
*/
constexpr static char const* kernel_major_version = "kernelmajversion";
/**
* The structured operating system fact.
*/
constexpr static char const* os = "os";
/**
* The fact for operating system name.
*/
constexpr static char const* operating_system = "operatingsystem";
/**
* The fact for operating system family name.
*/
constexpr static char const* os_family = "osfamily";
/**
* The fact for operating system release.
*/
constexpr static char const* operating_system_release = "operatingsystemrelease";
/**
* The fact for operating system major release.
*/
constexpr static char const* operating_system_major_release = "operatingsystemmajrelease";
/**
* The fact for LSB distro id.
*/
constexpr static char const* lsb_dist_id = "lsbdistid";
/**
* The fact for LSB distro release.
*/
constexpr static char const* lsb_dist_release = "lsbdistrelease";
/**
* The fact for LSB distro codename.
*/
constexpr static char const* lsb_dist_codename = "lsbdistcodename";
/**
* The fact for LSB distro description.
*/
constexpr static char const* lsb_dist_description = "lsbdistdescription";
/**
* The fact for LSB distro major release.
*/
constexpr static char const* lsb_dist_major_release = "lsbmajdistrelease";
/**
* The fact for LSB distro minor release.
*/
constexpr static char const* lsb_dist_minor_release = "lsbminordistrelease";
/**
* The fact for LSB release.
*/
constexpr static char const* lsb_release = "lsbrelease";
/**
* The structured fact for networking.
*/
constexpr static char const* networking = "networking";
/**
* The fact for network hostname.
*/
constexpr static char const* hostname = "hostname";
/**
* The fact for IPv4 address.
*/
constexpr static char const* ipaddress = "ipaddress";
/**
* The fact for IPv6 address.
*/
constexpr static char const* ipaddress6 = "ipaddress6";
/**
* The fact for interface MTU.
*/
constexpr static char const* mtu = "mtu";
/**
* The fact for IPv4 netmask.
*/
constexpr static char const* netmask = "netmask";
/**
* The fact for IPv6 netmask.
*/
constexpr static char const* netmask6 = "netmask6";
/**
* The fact for IPv4 network.
*/
constexpr static char const* network = "network";
/**
* The fact for IPv6 network.
*/
constexpr static char const* network6 = "network6";
/**
* The fact for interface MAC address.
*/
constexpr static char const* macaddress = "macaddress";
/**
* The fact for interface names.
*/
constexpr static char const* interfaces = "interfaces";
/**
* The fact for domain name.
*/
constexpr static char const* domain = "domain";
/**
* The fact for fully-qualified domain name (FQDN).
*/
constexpr static char const* fqdn = "fqdn";
/**
* The fact for DHCP servers.
*/
constexpr static char const* dhcp_servers = "dhcp_servers";
/**
* The fact for block device.
*/
constexpr static char const* block_device = "blockdevice";
/**
* The fact for the list of block devices.
*/
constexpr static char const* block_devices = "blockdevices";
/**
* The structured processor fact
*/
constexpr static char const* processors = "processors";
/**
* The fact for processor descriptions.
*/
constexpr static char const* processor = "processor";
/**
* The fact for logical processor count.
*/
constexpr static char const* processor_count = "processorcount";
/**
* The fact for physical processor count.
*/
constexpr static char const* physical_processor_count = "physicalprocessorcount";
/**
* The fact for processor instruction set architecture.
*/
constexpr static char const* hardware_isa = "hardwareisa";
/**
* The fact for processor hardware model.
*/
constexpr static char const* hardware_model = "hardwaremodel";
/**
* The fact for hardware architecture.
*/
constexpr static char const* architecture = "architecture";
/**
* The structured fact for DMI data.
*/
constexpr static char const* dmi = "dmi";
/**
* The fact for BIOS vendor.
*/
constexpr static char const* bios_vendor = "bios_vendor";
/**
* The fact for BIOS version.
*/
constexpr static char const* bios_version = "bios_version";
/**
* The fact for BIOS release date.
*/
constexpr static char const* bios_release_date = "bios_release_date";
/**
* The fact for motherboard asset tag.
*/
constexpr static char const* board_asset_tag = "boardassettag";
/**
* The fact for motherboard manufacturer.
*/
constexpr static char const* board_manufacturer = "boardmanufacturer";
/**
* The fact for motherboard product name.
*/
constexpr static char const* board_product_name = "boardproductname";
/**
* The fact for motherboard serial number.
*/
constexpr static char const* board_serial_number = "boardserialnumber";
/**
* The fact for chassis asset tag.
*/
constexpr static char const* chassis_asset_tag = "chassisassettag";
/**
* The fact for hardware manufacturer.
*/
constexpr static char const* manufacturer = "manufacturer";
/**
* The fact for hardware product name.
*/
constexpr static char const* product_name = "productname";
/**
* The fact for hardware serial number.
*/
constexpr static char const* serial_number = "serialnumber";
/**
* The fact for hardware UUID.
*/
constexpr static char const* uuid = "uuid";
/**
* The fact for hardware chassis type.
*/
constexpr static char const* chassis_type = "chassistype";
/**
* The structured uptime fact
*/
constexpr static char const* system_uptime = "system_uptime";
/**
* The fact for system uptime.
*/
constexpr static char const* uptime = "uptime";
/**
* The fact for system uptime, in days.
*/
constexpr static char const* uptime_days = "uptime_days";
/**
* The fact for system uptime, in hours.
*/
constexpr static char const* uptime_hours = "uptime_hours";
/**
* The fact for system uptime, in seconds.
*/
constexpr static char const* uptime_seconds = "uptime_seconds";
/**
* The fact for selinux state.
*/
constexpr static char const* selinux = "selinux";
/**
* The fact for selinux enforcement state.
*/
constexpr static char const* selinux_enforced = "selinux_enforced";
/**
* The fact for selinux policy version.
*/
constexpr static char const* selinux_policyversion = "selinux_policyversion";
/**
* The fact for current selinux mode.
*/
constexpr static char const* selinux_current_mode = "selinux_current_mode";
/**
* The fact for selinux config mode.
*/
constexpr static char const* selinux_config_mode = "selinux_config_mode";
/**
* The fact for selinux config policy.
*/
constexpr static char const* selinux_config_policy = "selinux_config_policy";
/**
* The structured fact for SSH.
*/
constexpr static char const* ssh = "ssh";
/**
* The fact for SSH DSA public key.
*/
constexpr static char const* ssh_dsa_key = "sshdsakey";
/**
* The fact for SSH RSA public key.
*/
constexpr static char const* ssh_rsa_key = "sshrsakey";
/**
* The fact for SSH ECDSA public key.
*/
constexpr static char const* ssh_ecdsa_key = "sshecdsakey";
/**
* The fact for SSH ED25519 public key.
*/
constexpr static char const* ssh_ed25519_key = "sshed25519key";
/**
* The fact for SSH fingerprint of the DSA public key.
*/
constexpr static char const* sshfp_dsa = "sshfp_dsa";
/**
* The fact for SSH fingerprint of the RSA public key.
*/
constexpr static char const* sshfp_rsa = "sshfp_rsa";
/**
* The fact for SSH fingerprint of the ECDSA public key.
*/
constexpr static char const* sshfp_ecdsa = "sshfp_ecdsa";
/**
* The fact for SSH fingerprint of the ED25519 public key.
*/
constexpr static char const* sshfp_ed25519 = "sshfp_ed25519";
/**
* The structured fact for OSX system profiler facts.
*/
constexpr static char const* system_profiler = "system_profiler";
/**
* The fact for OSX system profiler boot mode.
*/
constexpr static char const* sp_boot_mode = "sp_boot_mode";
/**
* The fact for OSX system profiler boot ROM version.
*/
constexpr static char const* sp_boot_rom_version = "sp_boot_rom_version";
/**
* The fact for OSX system profiler boot volume.
*/
constexpr static char const* sp_boot_volume = "sp_boot_volume";
/**
* The fact for OSX system profiler CPU type (processor name).
*/
constexpr static char const* sp_cpu_type = "sp_cpu_type";
/**
* The fact for OSX system profiler current CPU speed.
*/
constexpr static char const* sp_current_processor_speed = "sp_current_processor_speed";
/**
* The fact for OSX system profiler kernel version.
*/
constexpr static char const* sp_kernel_version = "sp_kernel_version";
/**
* The fact for OSX system profiler L2 cache (per core).
*/
constexpr static char const* sp_l2_cache_core = "sp_l2_cache_core";
/**
* The fact for OSX system profiler L3 cache.
*/
constexpr static char const* sp_l3_cache = "sp_l3_cache";
/**
* The fact for OSX system profiler local host name (computer name).
*/
constexpr static char const* sp_local_host_name = "sp_local_host_name";
/**
* The fact for OSX system profiler machine model (model identifier).
*/
constexpr static char const* sp_machine_model = "sp_machine_model";
/**
* The fact for OSX system profiler machine name (model name).
*/
constexpr static char const* sp_machine_name = "sp_machine_name";
/**
* The fact for OSX system profiler number of processors (total number of cores).
*/
constexpr static char const* sp_number_processors = "sp_number_processors";
/**
* The fact for OSX system profiler OS version (system version).
*/
constexpr static char const* sp_os_version = "sp_os_version";
/**
* The fact for OSX system profiler number of CPU packages (number of physical processors).
*/
constexpr static char const* sp_packages = "sp_packages";
/**
* The fact for OSX system profiler physical memory.
*/
constexpr static char const* sp_physical_memory = "sp_physical_memory";
/**
* The fact for OSX system profiler platform UUID (hardware UUID).
*/
constexpr static char const* sp_platform_uuid = "sp_platform_uuid";
/**
* The fact for OSX system profiler secure virtual memory.
*/
constexpr static char const* sp_secure_vm = "sp_secure_vm";
/**
* The fact for OSX system profiler serial number (system).
*/
constexpr static char const* sp_serial_number = "sp_serial_number";
/**
* The fact for OSX system profiler SMC version (system).
*/
constexpr static char const* sp_smc_version_system = "sp_smc_version_system";
/**
* The fact for OSX system profiler uptime (since boot).
*/
constexpr static char const* sp_uptime = "sp_uptime";
/**
* The fact for OSX system profiler user name.
*/
constexpr static char const* sp_user_name = "sp_user_name";
/**
* The fact for OSX build version.
*/
constexpr static char const* macosx_buildversion = "macosx_buildversion";
/**
* The fact for OSX product name.
*/
constexpr static char const* macosx_productname = "macosx_productname";
/**
* The fact for OSX product version.
*/
constexpr static char const* macosx_productversion = "macosx_productversion";
/**
* The fact for OSX build major version.
*/
constexpr static char const* macosx_productversion_major = "macosx_productversion_major";
/**
* The fact for OSX build minor version.
*/
constexpr static char const* macosx_productversion_minor = "macosx_productversion_minor";
/**
* The fact for Windows native system32 directory.
*/
constexpr static char const* windows_system32 = "system32";
/**
* The fact for virtualization hypervisor.
*/
constexpr static char const* virtualization = "virtual";
/**
* The fact for whether or not the machine is virtual or physical.
*/
constexpr static char const* is_virtual = "is_virtual";
/**
* The fact for all detected hypervisors
*/
constexpr static char const* hypervisors = "hypervisors";
/**
* The fact for the cloud info, including provider, for a node.
*/
constexpr static char const* cloud = "cloud";
/**
* The structured fact for identity information.
*/
constexpr static char const* identity = "identity";
/**
* The fact for the running user ID
*/
constexpr static char const* id = "id";
/**
* The fact for the running group ID
*/
constexpr static char const* gid = "gid";
/**
* The fact for the system timezone
*/
constexpr static char const* timezone = "timezone";
/**
* The fact for mountpoints.
*/
constexpr static char const* mountpoints = "mountpoints";
/**
* The fact for filesystems.
*/
constexpr static char const* filesystems = "filesystems";
/**
* The fact for disks.
*/
constexpr static char const* disks = "disks";
/**
* The fact for partitions.
*/
constexpr static char const* partitions = "partitions";
/**
* The fact for system memory.
*/
constexpr static char const* memory = "memory";
/**
* The fact for free system memory.
*/
constexpr static char const* memoryfree = "memoryfree";
/**
* The fact for free system memory in megabytes.
*/
constexpr static char const* memoryfree_mb = "memoryfree_mb";
/**
* The fact for total system memory.
*/
constexpr static char const* memorysize = "memorysize";
/**
* The fact for total system memory in megabytes.
*/
constexpr static char const* memorysize_mb = "memorysize_mb";
/**
* The fact for free swap.
*/
constexpr static char const* swapfree = "swapfree";
/**
* The fact for free swap in megabytes.
*/
constexpr static char const* swapfree_mb = "swapfree_mb";
/**
* The fact for total swap.
*/
constexpr static char const* swapsize = "swapsize";
/**
* The fact for total swap in megabytes.
*/
constexpr static char const* swapsize_mb = "swapsize_mb";
/**
* The fact for the swap being encrypted or not.
*/
constexpr static char const* swapencrypted = "swapencrypted";
/**
* The ZFS version fact.
*/
constexpr static char const* zfs_version = "zfs_version";
/**
* The ZFS supported version numbers.
*/
constexpr static char const* zfs_versionnumbers = "zfs_featurenumbers";
/**
* The ZFS storage pool (zpool) version fact.
*/
constexpr static char const* zpool_version = "zpool_version";
/**
* The ZFS storage pool supported feature flags.
*/
constexpr static char const* zpool_featureflags = "zpool_featureflags";
/**
* The ZFS storage pool supported version numbers.
*/
constexpr static char const* zpool_versionnumbers = "zpool_featurenumbers";
/**
* The fact for number of Solaris zones.
*/
constexpr static char const* zones = "zones";
/**
* The fact for the current Solaris zone name.
*/
constexpr static char const* zonename = "zonename";
/**
* The fact for Solaris zone brand.
*/
constexpr static char const* zone_brand = "brand";
/**
* The fact for Solaris zone iptype.
*/
constexpr static char const* zone_iptype = "iptype";
/**
* The fact for Solaris zone uuid.
*/
constexpr static char const* zone_uuid = "uuid";
/**
* The fact for Solaris zone id.
*/
constexpr static char const* zone_id = "id";
/**
* The fact for Solaris zone path.
*/
constexpr static char const* zone_path = "path";
/**
* The fact for Solaris zone status.
*/
constexpr static char const* zone_status = "status";
/**
* The fact for Solaris zone name.
*/
constexpr static char const* zone_name = "name";
/**
* The fact for the structured Solaris zone data.
*/
constexpr static char const* solaris_zones = "solaris_zones";
/**
* The fact for EC2 metadata.
*/
constexpr static char const* ec2_metadata = "ec2_metadata";
/**
* The fact for EC2 user data.
*/
constexpr static char const* ec2_userdata = "ec2_userdata";
/**
* The fact for GCE instance metadata.
*/
constexpr static char const* gce = "gce";
/**
* The fact for Ruby metadata.
*/
constexpr static char const* ruby = "ruby";
/**
* The fact for ruby platform.
*/
constexpr static char const* rubyplatform = "rubyplatform";
/**
* The fact for ruby sitedir.
*/
constexpr static char const* rubysitedir = "rubysitedir";
/**
* The fact for ruby version.
*/
constexpr static char const* rubyversion = "rubyversion";
/**
* The fact for the PATH environment variable.
*/
constexpr static char const* path = "path";
/**
* The fact for cpu load average.
*/
constexpr static char const* load_averages = "load_averages";
/**
* The fact for augeas metadata.
*/
constexpr static char const* augeas = "augeas";
/**
* The fact for augeas version.
*/
constexpr static char const* augeasversion = "augeasversion";
/**
* The fact for Xen metadata.
*/
constexpr static char const* xen = "xen";
/**
* The fact for Xen domains.
*/
constexpr static char const* xendomains = "xendomains";
/**
* The structured fact for Solaris LDom facts.
*/
constexpr static char const* ldom = "ldom";
/**
* The fips mode fact for RHEL/Linux* facts.
*/
constexpr static char const* fips_enabled = "fips_enabled";
};
}} // namespace facter::facts
|