facter 2.5.7-x86-mingw32 → 3.9.6.cfacter.20180606-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/bin/facter.bat +8 -0
- data/bin/facter.exe +0 -0
- data/bin/facter_interactive.bat +6 -0
- data/bin/libfacter.so +0 -0
- data/bin/run_facter_interactive.bat +9 -0
- data/lib/facter.rb +45 -261
- data/lib/libfacter.so.a +0 -0
- metadata +23 -854
- data/COMMITTERS.md +0 -185
- data/CONTRIBUTING.md +0 -91
- data/Gemfile +0 -69
- data/LICENSE +0 -15
- data/README.md +0 -65
- data/Rakefile +0 -46
- data/bin/facter +0 -20
- data/etc/facter.conf +0 -5
- data/ext/build_defaults.yaml +0 -9
- data/ext/debian/changelog.erb +0 -59
- data/ext/debian/compat +0 -1
- data/ext/debian/control +0 -15
- data/ext/debian/copyright +0 -19
- data/ext/debian/docs +0 -1
- data/ext/debian/lintian-overrides +0 -0
- data/ext/debian/rules +0 -10
- data/ext/debian/source/format +0 -1
- data/ext/facter-diff +0 -74
- data/ext/ips/facter.p5m.erb +0 -10
- data/ext/ips/rules +0 -7
- data/ext/ips/transforms +0 -18
- data/ext/osx/file_mapping.yaml +0 -32
- data/ext/osx/preflight.erb +0 -33
- data/ext/osx/prototype.plist.erb +0 -38
- data/ext/project_data.yaml +0 -31
- data/ext/redhat/facter.spec.erb +0 -223
- data/ext/solaris/pkginfo +0 -7
- data/install.rb +0 -380
- data/lib/facter/Cfkey.rb +0 -42
- data/lib/facter/application.rb +0 -206
- data/lib/facter/architecture.rb +0 -50
- data/lib/facter/augeasversion.rb +0 -28
- data/lib/facter/blockdevices.rb +0 -105
- data/lib/facter/core/aggregate.rb +0 -220
- data/lib/facter/core/directed_graph.rb +0 -46
- data/lib/facter/core/execution.rb +0 -123
- data/lib/facter/core/execution/base.rb +0 -81
- data/lib/facter/core/execution/posix.rb +0 -50
- data/lib/facter/core/execution/windows.rb +0 -57
- data/lib/facter/core/logging.rb +0 -197
- data/lib/facter/core/resolvable.rb +0 -94
- data/lib/facter/core/suitable.rb +0 -113
- data/lib/facter/dhcp_servers.rb +0 -45
- data/lib/facter/domain.rb +0 -99
- data/lib/facter/ec2.rb +0 -68
- data/lib/facter/ec2/rest.rb +0 -137
- data/lib/facter/facterversion.rb +0 -15
- data/lib/facter/filesystems.rb +0 -45
- data/lib/facter/fqdn.rb +0 -24
- data/lib/facter/gce.rb +0 -16
- data/lib/facter/gce/metadata.rb +0 -87
- data/lib/facter/gid.rb +0 -25
- data/lib/facter/hardwareisa.rb +0 -20
- data/lib/facter/hardwaremodel.rb +0 -67
- data/lib/facter/hostname.rb +0 -31
- data/lib/facter/id.rb +0 -21
- data/lib/facter/interfaces.rb +0 -58
- data/lib/facter/ipaddress.rb +0 -169
- data/lib/facter/ipaddress6.rb +0 -82
- data/lib/facter/iphostnumber.rb +0 -29
- data/lib/facter/kernel.rb +0 -22
- data/lib/facter/kernelmajversion.rb +0 -23
- data/lib/facter/kernelrelease.rb +0 -45
- data/lib/facter/kernelversion.rb +0 -22
- data/lib/facter/ldom.rb +0 -51
- data/lib/facter/lsbdistcodename.rb +0 -20
- data/lib/facter/lsbdistdescription.rb +0 -21
- data/lib/facter/lsbdistid.rb +0 -20
- data/lib/facter/lsbdistrelease.rb +0 -20
- data/lib/facter/lsbmajdistrelease.rb +0 -22
- data/lib/facter/lsbminordistrelease.rb +0 -22
- data/lib/facter/lsbrelease.rb +0 -20
- data/lib/facter/macaddress.rb +0 -99
- data/lib/facter/macosx.rb +0 -56
- data/lib/facter/manufacturer.rb +0 -68
- data/lib/facter/memory.rb +0 -168
- data/lib/facter/netmask.rb +0 -43
- data/lib/facter/network.rb +0 -20
- data/lib/facter/operatingsystem.rb +0 -24
- data/lib/facter/operatingsystem/base.rb +0 -61
- data/lib/facter/operatingsystem/cumuluslinux.rb +0 -27
- data/lib/facter/operatingsystem/implementation.rb +0 -33
- data/lib/facter/operatingsystem/linux.rb +0 -511
- data/lib/facter/operatingsystem/osreleaselinux.rb +0 -28
- data/lib/facter/operatingsystem/sunos.rb +0 -54
- data/lib/facter/operatingsystem/vmkernel.rb +0 -11
- data/lib/facter/operatingsystem/windows.rb +0 -43
- data/lib/facter/operatingsystemmajrelease.rb +0 -31
- data/lib/facter/operatingsystemrelease.rb +0 -29
- data/lib/facter/os.rb +0 -98
- data/lib/facter/osfamily.rb +0 -18
- data/lib/facter/partitions.rb +0 -39
- data/lib/facter/path.rb +0 -14
- data/lib/facter/physicalprocessorcount.rb +0 -27
- data/lib/facter/processor.rb +0 -52
- data/lib/facter/processors.rb +0 -66
- data/lib/facter/processors/os.rb +0 -244
- data/lib/facter/ps.rb +0 -31
- data/lib/facter/puppetversion.rb +0 -20
- data/lib/facter/rackspace.rb +0 -37
- data/lib/facter/rubyplatform.rb +0 -12
- data/lib/facter/rubysitedir.rb +0 -15
- data/lib/facter/rubyversion.rb +0 -12
- data/lib/facter/selinux.rb +0 -154
- data/lib/facter/ssh.rb +0 -73
- data/lib/facter/system32.rb +0 -21
- data/lib/facter/system_uptime.rb +0 -44
- data/lib/facter/timezone.rb +0 -14
- data/lib/facter/uniqueid.rb +0 -4
- data/lib/facter/uptime.rb +0 -16
- data/lib/facter/uptime_days.rb +0 -13
- data/lib/facter/uptime_hours.rb +0 -13
- data/lib/facter/uptime_seconds.rb +0 -20
- data/lib/facter/util/architecture.rb +0 -19
- data/lib/facter/util/collection.rb +0 -161
- data/lib/facter/util/composite_loader.rb +0 -12
- data/lib/facter/util/config.rb +0 -88
- data/lib/facter/util/confine.rb +0 -66
- data/lib/facter/util/dhcp_servers.rb +0 -58
- data/lib/facter/util/directory_loader.rb +0 -88
- data/lib/facter/util/ec2.rb +0 -106
- data/lib/facter/util/fact.rb +0 -204
- data/lib/facter/util/file_read.rb +0 -37
- data/lib/facter/util/formatter.rb +0 -39
- data/lib/facter/util/ip.rb +0 -340
- data/lib/facter/util/ip/windows.rb +0 -215
- data/lib/facter/util/loader.rb +0 -155
- data/lib/facter/util/macaddress.rb +0 -43
- data/lib/facter/util/macosx.rb +0 -73
- data/lib/facter/util/manufacturer.rb +0 -99
- data/lib/facter/util/memory.rb +0 -228
- data/lib/facter/util/netmask.rb +0 -40
- data/lib/facter/util/normalization.rb +0 -94
- data/lib/facter/util/nothing_loader.rb +0 -12
- data/lib/facter/util/operatingsystem.rb +0 -21
- data/lib/facter/util/parser.rb +0 -168
- data/lib/facter/util/partitions.rb +0 -47
- data/lib/facter/util/partitions/linux.rb +0 -71
- data/lib/facter/util/partitions/openbsd.rb +0 -40
- data/lib/facter/util/plist.rb +0 -24
- data/lib/facter/util/plist/generator.rb +0 -228
- data/lib/facter/util/plist/parser.rb +0 -226
- data/lib/facter/util/posix.rb +0 -16
- data/lib/facter/util/processor.rb +0 -289
- data/lib/facter/util/registry.rb +0 -11
- data/lib/facter/util/resolution.rb +0 -160
- data/lib/facter/util/solaris_zones.rb +0 -158
- data/lib/facter/util/unix_root.rb +0 -5
- data/lib/facter/util/uptime.rb +0 -83
- data/lib/facter/util/values.rb +0 -109
- data/lib/facter/util/virtual.rb +0 -220
- data/lib/facter/util/vlans.rb +0 -21
- data/lib/facter/util/windows.rb +0 -10
- data/lib/facter/util/windows/api_types.rb +0 -135
- data/lib/facter/util/windows/dir.rb +0 -43
- data/lib/facter/util/windows/error.rb +0 -87
- data/lib/facter/util/windows/process.rb +0 -294
- data/lib/facter/util/windows/user.rb +0 -186
- data/lib/facter/util/windows_root.rb +0 -7
- data/lib/facter/util/wmi.rb +0 -49
- data/lib/facter/util/xendomains.rb +0 -28
- data/lib/facter/version.rb +0 -86
- data/lib/facter/virtual.rb +0 -339
- data/lib/facter/vlans.rb +0 -17
- data/lib/facter/xendomains.rb +0 -20
- data/lib/facter/zfs_version.rb +0 -14
- data/lib/facter/zonename.rb +0 -6
- data/lib/facter/zones.rb +0 -18
- data/lib/facter/zpool_version.rb +0 -10
- data/spec/fixtures/cpuinfo/amd64dual +0 -57
- data/spec/fixtures/cpuinfo/amd64dual-grep +0 -2
- data/spec/fixtures/cpuinfo/amd64quad +0 -79
- data/spec/fixtures/cpuinfo/amd64solo +0 -23
- data/spec/fixtures/cpuinfo/amd64tri +0 -86
- data/spec/fixtures/cpuinfo/amd64twentyfour +0 -600
- data/spec/fixtures/cpuinfo/amd64twentyfour-grep +0 -24
- data/spec/fixtures/cpuinfo/bbg3-armel +0 -12
- data/spec/fixtures/cpuinfo/beaglexm-armel +0 -12
- data/spec/fixtures/cpuinfo/panda-armel +0 -17
- data/spec/fixtures/cpuinfo/ppc64 +0 -19
- data/spec/fixtures/cpuinfo/ppc64le +0 -15
- data/spec/fixtures/cpuinfo/sparc +0 -10
- data/spec/fixtures/cpuinfo/two_multicore-grep +0 -4
- data/spec/fixtures/cpuinfo/two_singlecore-grep +0 -2
- data/spec/fixtures/hpux/machinfo/hppa-rp4440 +0 -26
- data/spec/fixtures/hpux/machinfo/ia64-rx2620 +0 -49
- data/spec/fixtures/hpux/machinfo/ia64-rx6600 +0 -26
- data/spec/fixtures/hpux/machinfo/ia64-rx8640 +0 -53
- data/spec/fixtures/hpux/machinfo/superdome-server-SD32B +0 -53
- data/spec/fixtures/hpux/machinfo/superdome2-16s +0 -31
- data/spec/fixtures/hpux/sched.models +0 -174
- data/spec/fixtures/hpux/unistd.h +0 -1534
- data/spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces +0 -18
- data/spec/fixtures/ifconfig/centos_5_5 +0 -17
- data/spec/fixtures/ifconfig/centos_5_5_eth0 +0 -8
- data/spec/fixtures/ifconfig/darwin_10_3_0 +0 -26
- data/spec/fixtures/ifconfig/darwin_10_3_0_en0 +0 -6
- data/spec/fixtures/ifconfig/darwin_10_6_4 +0 -28
- data/spec/fixtures/ifconfig/darwin_10_6_4_en1 +0 -6
- data/spec/fixtures/ifconfig/darwin_10_6_6_dualstack +0 -8
- data/spec/fixtures/ifconfig/darwin_10_6_6_dualstack_en1 +0 -7
- data/spec/fixtures/ifconfig/darwin_9_8_0 +0 -26
- data/spec/fixtures/ifconfig/darwin_9_8_0_en0 +0 -6
- data/spec/fixtures/ifconfig/darwin_ifconfig_all_with_multiple_interfaces +0 -23
- data/spec/fixtures/ifconfig/fedora_10 +0 -36
- data/spec/fixtures/ifconfig/fedora_10_eth0 +0 -9
- data/spec/fixtures/ifconfig/fedora_13 +0 -18
- data/spec/fixtures/ifconfig/fedora_13_eth0 +0 -9
- data/spec/fixtures/ifconfig/fedora_8 +0 -38
- data/spec/fixtures/ifconfig/fedora_8_eth0 +0 -9
- data/spec/fixtures/ifconfig/freebsd_6_0 +0 -12
- data/spec/fixtures/ifconfig/ifconfig_net_tools_1.60.txt +0 -19
- data/spec/fixtures/ifconfig/ifconfig_ubuntu_1204.txt +0 -16
- data/spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces +0 -19
- data/spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces_and_fe80 +0 -19
- data/spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces_and_no_public_ipv6 +0 -18
- data/spec/fixtures/ifconfig/linux_ifconfig_no_addr +0 -19
- data/spec/fixtures/ifconfig/linux_ifconfig_no_mac +0 -8
- data/spec/fixtures/ifconfig/linux_ifconfig_venet +0 -24
- data/spec/fixtures/ifconfig/open_solaris_10 +0 -12
- data/spec/fixtures/ifconfig/open_solaris_b132 +0 -20
- data/spec/fixtures/ifconfig/openbsd_bridge_rules +0 -11
- data/spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces +0 -10
- data/spec/fixtures/ifconfig/ubuntu_7_04 +0 -38
- data/spec/fixtures/ifconfig/ubuntu_7_04_eth0 +0 -9
- data/spec/fixtures/ldom/ldom_v1 +0 -6
- data/spec/fixtures/netstat/centos_5_5 +0 -5
- data/spec/fixtures/netstat/darwin_10_3_0 +0 -35
- data/spec/fixtures/netstat/darwin_10_6_4 +0 -29
- data/spec/fixtures/netstat/darwin_10_6_6_dualstack +0 -34
- data/spec/fixtures/netstat/darwin_9_8_0 +0 -28
- data/spec/fixtures/netstat/fedora_10 +0 -7
- data/spec/fixtures/netstat/open_solaris_10 +0 -16
- data/spec/fixtures/netstat/open_solaris_b132 +0 -17
- data/spec/fixtures/netstat/ubuntu_7_04 +0 -7
- data/spec/fixtures/processorcount/solaris-psrinfo +0 -24
- data/spec/fixtures/processorcount/solaris-sparc-kstat-cpu-info +0 -1216
- data/spec/fixtures/processorcount/solaris-x86_64-kstat-cpu-info +0 -225
- data/spec/fixtures/unit/dhcp_servers/nmcli_devices +0 -4
- data/spec/fixtures/unit/dhcp_servers/nmcli_devices_disconnected +0 -4
- data/spec/fixtures/unit/dhcp_servers/nmcli_eth0_dhcp +0 -36
- data/spec/fixtures/unit/dhcp_servers/nmcli_eth0_static +0 -24
- data/spec/fixtures/unit/dhcp_servers/nmcli_wlan0_dhcp +0 -49
- data/spec/fixtures/unit/dhcp_servers/nmcli_wlan0_static +0 -37
- data/spec/fixtures/unit/dhcp_servers/route +0 -3
- data/spec/fixtures/unit/dhcp_servers/route_nogw +0 -1
- data/spec/fixtures/unit/ec2/rest/meta-data/root +0 -20
- data/spec/fixtures/unit/filesystems/linux +0 -28
- data/spec/fixtures/unit/gce/metadata/metadata.json +0 -69
- data/spec/fixtures/unit/interfaces/ifconfig_net_tools_1.60.txt +0 -19
- data/spec/fixtures/unit/interfaces/ifconfig_net_tools_1.60.txt.em1 +0 -10
- data/spec/fixtures/unit/interfaces/ifconfig_net_tools_1.60.txt.lo +0 -8
- data/spec/fixtures/unit/interfaces/ifconfig_net_tools_1.60_v6.txt +0 -9
- data/spec/fixtures/unit/ipaddress/ifconfig_multiple_127_addresses.txt +0 -20
- data/spec/fixtures/unit/ipaddress/ifconfig_net_tools_1.60.txt +0 -19
- data/spec/fixtures/unit/ipaddress/ifconfig_non_english_locale.txt +0 -18
- data/spec/fixtures/unit/ipaddress/ifconfig_ubuntu_1204.txt +0 -16
- data/spec/fixtures/unit/kernelrelease/openbsd-5.3 +0 -2
- data/spec/fixtures/unit/kernelrelease/openbsd-5.3-current +0 -3
- data/spec/fixtures/unit/memory/aix-svmon +0 -9
- data/spec/fixtures/unit/memory/aix-swap_l +0 -2
- data/spec/fixtures/unit/memory/darwin-swapinfo-multiple +0 -3
- data/spec/fixtures/unit/memory/darwin-swapinfo-single +0 -2
- data/spec/fixtures/unit/memory/darwin-vm_stat +0 -13
- data/spec/fixtures/unit/memory/dragonfly-vmstat +0 -3
- data/spec/fixtures/unit/memory/freebsd-vmstat +0 -3
- data/spec/fixtures/unit/memory/linux-proc_meminfo +0 -10
- data/spec/fixtures/unit/memory/openbsd-vmstat +0 -3
- data/spec/fixtures/unit/memory/smartos_zone_swap_l-single +0 -2
- data/spec/fixtures/unit/memory/solaris-prtconf +0 -4
- data/spec/fixtures/unit/memory/solaris-swap_l-multiple +0 -3
- data/spec/fixtures/unit/memory/solaris-swap_l-single +0 -2
- data/spec/fixtures/unit/memory/solaris-vmstat +0 -3
- data/spec/fixtures/unit/netmask/darwin_10_8_5.txt +0 -30
- data/spec/fixtures/unit/netmask/ifconfig_aix_7.txt +0 -3
- data/spec/fixtures/unit/netmask/ifconfig_net_tools_1.60.txt +0 -19
- data/spec/fixtures/unit/netmask/ifconfig_ubuntu_1204.txt +0 -16
- data/spec/fixtures/unit/processors/os/darwin-system-profiler +0 -287
- data/spec/fixtures/unit/selinux/selinux_sestatus +0 -6
- data/spec/fixtures/unit/selinux/selinux_sestatus2 +0 -9
- data/spec/fixtures/unit/util/dhcp_servers/route +0 -3
- data/spec/fixtures/unit/util/dhcp_servers/route_nogw +0 -1
- data/spec/fixtures/unit/util/ec2/centos-arp-ec2.out +0 -1
- data/spec/fixtures/unit/util/ec2/linux-arp-ec2.out +0 -1
- data/spec/fixtures/unit/util/ec2/linux-arp-not-ec2.out +0 -5
- data/spec/fixtures/unit/util/ec2/solaris8_arp_a_not_ec2.out +0 -7
- data/spec/fixtures/unit/util/ec2/windows-2008-arp-a-not-ec2.out +0 -6
- data/spec/fixtures/unit/util/ec2/windows-2008-arp-a.out +0 -10
- data/spec/fixtures/unit/util/ip/6.0-STABLE_FreeBSD_ifconfig +0 -12
- data/spec/fixtures/unit/util/ip/Mac_OS_X_10.5.5_ifconfig +0 -26
- data/spec/fixtures/unit/util/ip/darwin_ifconfig_all_with_multiple_interfaces +0 -10
- data/spec/fixtures/unit/util/ip/darwin_ifconfig_single_interface +0 -6
- data/spec/fixtures/unit/util/ip/debian_kfreebsd_ifconfig +0 -40
- data/spec/fixtures/unit/util/ip/hpux_1111_ifconfig_lan0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1111_ifconfig_lan1 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1111_ifconfig_lo0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1111_lanscan +0 -5
- data/spec/fixtures/unit/util/ip/hpux_1111_netstat_in +0 -4
- data/spec/fixtures/unit/util/ip/hpux_1131_asterisk_ifconfig_lan0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_asterisk_ifconfig_lan1 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_asterisk_ifconfig_lo0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_asterisk_lanscan +0 -5
- data/spec/fixtures/unit/util/ip/hpux_1131_asterisk_netstat_in +0 -4
- data/spec/fixtures/unit/util/ip/hpux_1131_ifconfig_lan0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_ifconfig_lan1 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_ifconfig_lo0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_lanscan +0 -4
- data/spec/fixtures/unit/util/ip/hpux_1131_netstat_in +0 -4
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_ifconfig_lan1 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_ifconfig_lan4 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_ifconfig_lan4_1 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_ifconfig_lo0 +0 -2
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_lanscan +0 -9
- data/spec/fixtures/unit/util/ip/hpux_1131_nic_bonding_netstat_in +0 -6
- data/spec/fixtures/unit/util/ip/linux_2_6_35_proc_net_bonding_bond0 +0 -19
- data/spec/fixtures/unit/util/ip/linux_get_single_interface_eth0 +0 -10
- data/spec/fixtures/unit/util/ip/linux_get_single_interface_ib0 +0 -8
- data/spec/fixtures/unit/util/ip/linux_get_single_interface_ib0_centos7 +0 -8
- data/spec/fixtures/unit/util/ip/linux_get_single_interface_lo +0 -9
- data/spec/fixtures/unit/util/ip/linux_ifconfig_all_with_single_interface +0 -18
- data/spec/fixtures/unit/util/ip/linux_ifconfig_ib0 +0 -8
- data/spec/fixtures/unit/util/ip/linux_ifconfig_ib0_centos7 +0 -8
- data/spec/fixtures/unit/util/ip/solaris_ifconfig_all_with_multiple_interfaces +0 -8
- data/spec/fixtures/unit/util/ip/solaris_ifconfig_single_interface +0 -3
- data/spec/fixtures/unit/util/ip/windows_netsh_all_interfaces +0 -12
- data/spec/fixtures/unit/util/ip/windows_netsh_single_interface +0 -7
- data/spec/fixtures/unit/util/ip/windows_netsh_single_interface6 +0 -18
- data/spec/fixtures/unit/util/manufacturer/freebsd_dmidecode +0 -42
- data/spec/fixtures/unit/util/manufacturer/intel_linux_dmidecode +0 -549
- data/spec/fixtures/unit/util/manufacturer/linux_dmidecode_with_spaces +0 -60
- data/spec/fixtures/unit/util/manufacturer/opensolaris_smbios +0 -33
- data/spec/fixtures/unit/util/manufacturer/smartos_smbios +0 -533
- data/spec/fixtures/unit/util/manufacturer/solaris_sunfire_v120_prtdiag +0 -33
- data/spec/fixtures/unit/util/manufacturer/solaris_t5220_prtdiag +0 -136
- data/spec/fixtures/unit/util/operatingsystem/coreos.txt +0 -9
- data/spec/fixtures/unit/util/operatingsystem/cumuluslinux.txt +0 -8
- data/spec/fixtures/unit/util/operatingsystem/redhat-7.txt +0 -12
- data/spec/fixtures/unit/util/operatingsystem/sabayon.txt +0 -7
- data/spec/fixtures/unit/util/operatingsystem/wheezy.txt +0 -9
- data/spec/fixtures/unit/util/partitions/partitions/mount +0 -9
- data/spec/fixtures/unit/util/processor/solaris-i86pc +0 -28
- data/spec/fixtures/unit/util/processor/solaris-sun4u +0 -151
- data/spec/fixtures/unit/util/processor/x86-pentium2 +0 -41
- data/spec/fixtures/unit/util/uptime/kstat_boot_time +0 -1
- data/spec/fixtures/unit/util/uptime/sysctl_kern_boottime_darwin +0 -1
- data/spec/fixtures/unit/util/uptime/sysctl_kern_boottime_openbsd +0 -1
- data/spec/fixtures/unit/util/uptime/ubuntu_proc_uptime +0 -1
- data/spec/fixtures/unit/util/virtual/invalid_unicode_dmi_entries +0 -0
- data/spec/fixtures/unit/util/virtual/solaris10_proc_self_status1 +0 -0
- data/spec/fixtures/unit/util/vlans/centos-5-no-vlans +0 -2
- data/spec/fixtures/unit/util/vlans/linux_vlan_config +0 -6
- data/spec/fixtures/unit/util/xendomains/xendomains +0 -4
- data/spec/fixtures/unit/virtual/sysfs_dmi_entries_raw.txt +0 -0
- data/spec/fixtures/unit/zfs_version/freebsd_8.2 +0 -14
- data/spec/fixtures/unit/zfs_version/freebsd_9.0 +0 -13
- data/spec/fixtures/unit/zfs_version/linux-fuse_0.6.9 +0 -14
- data/spec/fixtures/unit/zfs_version/solaris_10 +0 -10
- data/spec/fixtures/unit/zfs_version/solaris_11 +0 -12
- data/spec/fixtures/unit/zfs_version/zfs_new +0 -61
- data/spec/fixtures/unit/zfs_version/zfs_old +0 -43
- data/spec/fixtures/unit/zfs_version/zfsonlinux_0.6.1 +0 -13
- data/spec/fixtures/unit/zpool_version/freebsd_8.2 +0 -26
- data/spec/fixtures/unit/zpool_version/freebsd_9.0 +0 -38
- data/spec/fixtures/unit/zpool_version/linux-fuse_0.6.9 +0 -35
- data/spec/fixtures/unit/zpool_version/solaris_10 +0 -31
- data/spec/fixtures/unit/zpool_version/solaris_11 +0 -43
- data/spec/fixtures/unit/zpool_version/zfsonlinux_0.6.1 +0 -48
- data/spec/fixtures/virtual/proc_1_cgroup/in_a_container +0 -9
- data/spec/fixtures/virtual/proc_1_cgroup/in_a_docker_container +0 -8
- data/spec/fixtures/virtual/proc_1_cgroup/in_a_docker_container_with_systemd_slices +0 -10
- data/spec/fixtures/virtual/proc_1_cgroup/not_in_a_container +0 -9
- data/spec/fixtures/virtual/proc_self_status/vserver_2_1/guest +0 -37
- data/spec/fixtures/virtual/proc_self_status/vserver_2_1/host +0 -36
- data/spec/fixtures/virtual/proc_self_status/vserver_2_3/guest +0 -39
- data/spec/fixtures/virtual/proc_self_status/vserver_2_3/host +0 -39
- data/spec/integration/facter_spec.rb +0 -39
- data/spec/integration/util/windows/user_spec.rb +0 -59
- data/spec/lib/facter_spec/cpuinfo.rb +0 -15
- data/spec/lib/facter_spec/windows_network.rb +0 -64
- data/spec/puppetlabs_spec/files.rb +0 -57
- data/spec/puppetlabs_spec/fixtures.rb +0 -49
- data/spec/puppetlabs_spec/matchers.rb +0 -87
- data/spec/puppetlabs_spec/verbose.rb +0 -9
- data/spec/puppetlabs_spec_helper.rb +0 -26
- data/spec/schema/validate_facter_schema.rb +0 -18
- data/spec/shared_contexts/platform.rb +0 -55
- data/spec/shared_formats/parses.rb +0 -3
- data/spec/spec_helper.rb +0 -68
- data/spec/unit/application_spec.rb +0 -110
- data/spec/unit/architecture_spec.rb +0 -63
- data/spec/unit/blockdevices_spec.rb +0 -109
- data/spec/unit/core/aggregate_spec.rb +0 -125
- data/spec/unit/core/directed_graph_spec.rb +0 -79
- data/spec/unit/core/execution/base_spec.rb +0 -130
- data/spec/unit/core/execution/posix_spec.rb +0 -96
- data/spec/unit/core/execution/windows_spec.rb +0 -106
- data/spec/unit/core/execution_spec.rb +0 -42
- data/spec/unit/core/logging_spec.rb +0 -223
- data/spec/unit/core/resolvable_spec.rb +0 -81
- data/spec/unit/core/suitable_spec.rb +0 -106
- data/spec/unit/dhcp_servers_spec.rb +0 -212
- data/spec/unit/domain_spec.rb +0 -310
- data/spec/unit/ec2/rest_spec.rb +0 -168
- data/spec/unit/ec2_spec.rb +0 -139
- data/spec/unit/facter_spec.rb +0 -108
- data/spec/unit/filesystems_spec.rb +0 -50
- data/spec/unit/fqdn_spec.rb +0 -16
- data/spec/unit/gce/metadata_spec.rb +0 -49
- data/spec/unit/gce_spec.rb +0 -34
- data/spec/unit/gid_spec.rb +0 -51
- data/spec/unit/hardwareisa_spec.rb +0 -41
- data/spec/unit/hardwaremodel_spec.rb +0 -58
- data/spec/unit/hostname_spec.rb +0 -40
- data/spec/unit/id_spec.rb +0 -29
- data/spec/unit/interfaces_spec.rb +0 -67
- data/spec/unit/ipaddress6_spec.rb +0 -180
- data/spec/unit/ipaddress_spec.rb +0 -114
- data/spec/unit/kernel_spec.rb +0 -24
- data/spec/unit/kernelmajversion_spec.rb +0 -22
- data/spec/unit/kernelrelease_spec.rb +0 -66
- data/spec/unit/kernelversion_spec.rb +0 -32
- data/spec/unit/ldom_spec.rb +0 -84
- data/spec/unit/lsbdistcodename_spec.rb +0 -30
- data/spec/unit/lsbdistdescription_spec.rb +0 -30
- data/spec/unit/lsbdistid_spec.rb +0 -30
- data/spec/unit/lsbdistrelease_spec.rb +0 -30
- data/spec/unit/lsbmajdistrelease_spec.rb +0 -30
- data/spec/unit/lsbminordistrelease_spec.rb +0 -31
- data/spec/unit/lsbrelease_spec.rb +0 -30
- data/spec/unit/macaddress_spec.rb +0 -76
- data/spec/unit/manufacturer_spec.rb +0 -115
- data/spec/unit/memory_spec.rb +0 -470
- data/spec/unit/netmask_spec.rb +0 -106
- data/spec/unit/operatingsystem/base_spec.rb +0 -76
- data/spec/unit/operatingsystem/cumuluslinux_spec.rb +0 -40
- data/spec/unit/operatingsystem/implementation_spec.rb +0 -50
- data/spec/unit/operatingsystem/linux_spec.rb +0 -559
- data/spec/unit/operatingsystem/sunos_spec.rb +0 -143
- data/spec/unit/operatingsystem/vmkernel_spec.rb +0 -13
- data/spec/unit/operatingsystem/windows_spec.rb +0 -77
- data/spec/unit/operatingsystem_spec.rb +0 -17
- data/spec/unit/operatingsystemmajrelease_spec.rb +0 -21
- data/spec/unit/operatingsystemrelease_spec.rb +0 -20
- data/spec/unit/os_spec.rb +0 -131
- data/spec/unit/osfamily_spec.rb +0 -17
- data/spec/unit/partitions_spec.rb +0 -88
- data/spec/unit/physicalprocessorcount_spec.rb +0 -13
- data/spec/unit/processor_spec.rb +0 -38
- data/spec/unit/processors/os_spec.rb +0 -469
- data/spec/unit/processors_spec.rb +0 -203
- data/spec/unit/ps_spec.rb +0 -42
- data/spec/unit/rackspace_spec.rb +0 -40
- data/spec/unit/rubyplatform_spec.rb +0 -7
- data/spec/unit/selinux_spec.rb +0 -119
- data/spec/unit/ssh_spec.rb +0 -77
- data/spec/unit/system32_spec.rb +0 -28
- data/spec/unit/system_uptime_spec.rb +0 -80
- data/spec/unit/uniqueid_spec.rb +0 -27
- data/spec/unit/uptime_spec.rb +0 -110
- data/spec/unit/util/collection_spec.rb +0 -258
- data/spec/unit/util/config_spec.rb +0 -120
- data/spec/unit/util/confine_spec.rb +0 -148
- data/spec/unit/util/dhcp_servers_spec.rb +0 -63
- data/spec/unit/util/directory_loader_spec.rb +0 -102
- data/spec/unit/util/ec2_spec.rb +0 -184
- data/spec/unit/util/fact_spec.rb +0 -142
- data/spec/unit/util/file_read_spec.rb +0 -29
- data/spec/unit/util/formatter_spec.rb +0 -55
- data/spec/unit/util/ip/windows_spec.rb +0 -80
- data/spec/unit/util/ip_spec.rb +0 -487
- data/spec/unit/util/loader_spec.rb +0 -286
- data/spec/unit/util/macaddress_spec.rb +0 -143
- data/spec/unit/util/macosx_spec.rb +0 -114
- data/spec/unit/util/manufacturer_spec.rb +0 -223
- data/spec/unit/util/normalization_spec.rb +0 -113
- data/spec/unit/util/operatingsystem_spec.rb +0 -107
- data/spec/unit/util/parser_spec.rb +0 -233
- data/spec/unit/util/partitions/partitions_spec.rb +0 -67
- data/spec/unit/util/partitions_spec.rb +0 -19
- data/spec/unit/util/posix_spec.rb +0 -11
- data/spec/unit/util/processor_spec.rb +0 -212
- data/spec/unit/util/registry_spec.rb +0 -76
- data/spec/unit/util/resolution_spec.rb +0 -129
- data/spec/unit/util/solaris_zones_spec.rb +0 -127
- data/spec/unit/util/uptime_spec.rb +0 -131
- data/spec/unit/util/values_spec.rb +0 -171
- data/spec/unit/util/virtual_spec.rb +0 -393
- data/spec/unit/util/vlans_spec.rb +0 -42
- data/spec/unit/util/wmi_spec.rb +0 -19
- data/spec/unit/util/xendomains_spec.rb +0 -114
- data/spec/unit/version_spec.rb +0 -42
- data/spec/unit/virtual_spec.rb +0 -585
- data/spec/unit/zfs_version_spec.rb +0 -87
- data/spec/unit/zonename_spec.rb +0 -14
- data/spec/unit/zones_spec.rb +0 -55
- data/spec/unit/zpool_version_spec.rb +0 -80
- data/spec/watchr.rb +0 -125
data/COMMITTERS.md
DELETED
@@ -1,185 +0,0 @@
|
|
1
|
-
Committing changes to Facter
|
2
|
-
====
|
3
|
-
|
4
|
-
We would like to make it easier for community members to contribute to facter
|
5
|
-
using pull requests, even if it makes the task of reviewing and committing
|
6
|
-
these changes a little harder. Pull requests are only ever based on a single
|
7
|
-
branch, however, we maintain more than one active branch. As a result
|
8
|
-
contributors should target their changes at the master branch. This makes the
|
9
|
-
process of contributing a little easier for the contributor since they don't
|
10
|
-
need to concern themselves with the question, "What branch do I base my changes
|
11
|
-
on?" This is already called out in the [CONTRIBUTING.md](http://goo.gl/XRH2J).
|
12
|
-
|
13
|
-
Therefore, it is the responsibility of the committer to re-base the change set
|
14
|
-
on the appropriate branch which should receive the contribution.
|
15
|
-
|
16
|
-
The rest of this document addresses the concerns of the committer. This
|
17
|
-
document will help guide the committer decide which branch to base, or re-base
|
18
|
-
a contribution on top of. This document also describes our branch management
|
19
|
-
strategy, which is closely related to the decision of what branch to commit
|
20
|
-
changes into.
|
21
|
-
|
22
|
-
Terminology
|
23
|
-
====
|
24
|
-
|
25
|
-
Many of these terms have more than one meaning. For the purposes of this
|
26
|
-
document, the following terms refer to specific things.
|
27
|
-
|
28
|
-
**contributor** - A person who makes a change to facter and submits a change
|
29
|
-
set in the form of a pull request.
|
30
|
-
|
31
|
-
**change set** - A set of discrete patches which combined together form a
|
32
|
-
contribution. A change set takes the form of Git commits and is submitted to
|
33
|
-
facter in the form of a pull request.
|
34
|
-
|
35
|
-
**committer** - A person responsible for reviewing a pull request and then
|
36
|
-
making the decision what base branch to merge the change set into.
|
37
|
-
|
38
|
-
**base branch** - A branch in Git that contains an active history of changes
|
39
|
-
and will eventually be released using semantic version guidelines. The branch
|
40
|
-
named master will always exist as a base branch. All other base branches will
|
41
|
-
be associated with a specific released version of facter, e.g. 1.6.x and 1.7.x.
|
42
|
-
|
43
|
-
Committer Guide
|
44
|
-
====
|
45
|
-
|
46
|
-
This section provides a guide to follow while committing change sets to facter
|
47
|
-
base branches.
|
48
|
-
|
49
|
-
How to decide what release(s) should be patched
|
50
|
-
---
|
51
|
-
|
52
|
-
This section provides a guide to help a committer decide the specific base
|
53
|
-
branch that a change set should be merged into.
|
54
|
-
|
55
|
-
The latest minor release of a major release is the only base branch that should
|
56
|
-
be patched. Older minor releases in a major release do not get patched. Before
|
57
|
-
the switch to [semantic versions](http://semver.org/) committers did not have
|
58
|
-
to think about the difference between minor and major releases. Committing to
|
59
|
-
the latest minor release of a major release is a policy intended to limit the
|
60
|
-
number of active base branches that must be managed.
|
61
|
-
|
62
|
-
Security patches are handled as a special case. Security patches may be
|
63
|
-
applied to earlier minor releases of a major release.
|
64
|
-
|
65
|
-
How to commit a change set to multiple base branches
|
66
|
-
---
|
67
|
-
|
68
|
-
A change set may apply to multiple releases. In this situation the change set
|
69
|
-
needs to be committed to multiple base branches. This section provides a guide
|
70
|
-
for how to merge patches across releases, e.g. 2.7 is patched, how should the
|
71
|
-
changes be applied to 3.0?
|
72
|
-
|
73
|
-
First, merge the change set into the lowest numbered base branch, e.g. 2.7.
|
74
|
-
Next, merge the changed base branch up through all later base branches by using
|
75
|
-
the `--no-ff --log` git merge options. We commonly refer to this as our "merge
|
76
|
-
up process" because we merge in once, then merge up multiple times.
|
77
|
-
|
78
|
-
When a new minor release branch is created (e.g. 3.1.x) then the previous one
|
79
|
-
is deleted (e.g. 3.0.x). Any security or urgent fixes that might have to be
|
80
|
-
applied to the older code line is done by creating an ad-hoc branch from the
|
81
|
-
tag of the last patch release of the old minor line.
|
82
|
-
|
83
|
-
Code review checklist
|
84
|
-
---
|
85
|
-
|
86
|
-
This section aims to provide a checklist of things to look for when reviewing a
|
87
|
-
pull request and determining if the change set should be merged into a base
|
88
|
-
branch:
|
89
|
-
|
90
|
-
* All tests pass
|
91
|
-
* Are there any platform gotchas? (Does a change make an assumption about
|
92
|
-
platform specific behavior that is incompatible with other platforms? e.g.
|
93
|
-
Windows paths vs. POSIX paths.)
|
94
|
-
* Is the change backwards compatible? (It should be)
|
95
|
-
* Are there YARD docs for API changes?
|
96
|
-
* Does the change set also require documentation changes? If so is the
|
97
|
-
documentation being kept up to date?
|
98
|
-
* Does the change set include clean code? (software code that is formatted
|
99
|
-
correctly and in an organized manner so that another coder can easily read
|
100
|
-
or modify it.) HINT: `git diff master --check`
|
101
|
-
* Does the change set conform to the contributing guide?
|
102
|
-
|
103
|
-
|
104
|
-
Commit citizen guidelines:
|
105
|
-
---
|
106
|
-
|
107
|
-
This section aims to provide guidelines for being a good commit citizen by
|
108
|
-
paying attention to our automated build tools.
|
109
|
-
|
110
|
-
* Don’t push on a broken build. (A broken build is defined as a failing job
|
111
|
-
in the [Facter](https://jenkins.puppetlabs.com/view/Facter/)
|
112
|
-
page.)
|
113
|
-
* Watch the build until your changes have gone through green
|
114
|
-
* Update the ticket status and target version. The target version field in
|
115
|
-
our issue tracker should be updated to be the next release of facter. For
|
116
|
-
example, if the most recent release of facter is 1.6.17 and you merge a
|
117
|
-
backwards compatible change set into master, then the target version should
|
118
|
-
be 1.7.0 in the issue tracker.)
|
119
|
-
* Ensure the pull request is closed (Hint: amend your merge commit to contain
|
120
|
-
the string `closes #123` where 123 is the pull request number.
|
121
|
-
|
122
|
-
Example Procedure
|
123
|
-
====
|
124
|
-
|
125
|
-
This section helps a committer rebase a contribution onto an earlier base
|
126
|
-
branch, then merge into the base branch and up through all active base
|
127
|
-
branches.
|
128
|
-
|
129
|
-
Suppose a contributor submits a pull request based on master. The change set
|
130
|
-
fixes a bug reported against facter 1.7.1 which is the most recently released
|
131
|
-
version of facter.
|
132
|
-
|
133
|
-
In this example the committer should rebase the change set onto the 1.7.x
|
134
|
-
branch since this is a bug rather than new functionality.
|
135
|
-
|
136
|
-
First, the committer pulls down the branch using the `hub` gem. This tool
|
137
|
-
automates the process of adding the remote repository and creating a local
|
138
|
-
branch to track the remote branch.
|
139
|
-
|
140
|
-
$ hub checkout https://github.com/puppetlabs/facter/pull/1234
|
141
|
-
Branch jeffmccune-fix_foo_error set up to track remote branch fix_foo_error from jeffmccune.
|
142
|
-
Switched to a new branch 'jeffmccune-fix_foo_error'
|
143
|
-
|
144
|
-
At this point the topic branch is a descendant of master, but we want it to
|
145
|
-
descend from 1.7.x. The committer creates a new branch then re-bases the
|
146
|
-
change set:
|
147
|
-
|
148
|
-
$ git branch bug/1.7.x/fix_foo_error
|
149
|
-
$ git rebase --onto 1.7.x master bug/1.7.x/fix_foo_error
|
150
|
-
First, rewinding head to replay your work on top of it...
|
151
|
-
Applying: (#23456) Fix FooError that always bites users in 1.7.1
|
152
|
-
|
153
|
-
The `git rebase` command may be interpreted as, "First, check out the branch
|
154
|
-
named `bug/1.7.x/fix_foo_error`, then take the changes that were previously
|
155
|
-
based on `master` and re-base them onto `1.7.x`.
|
156
|
-
|
157
|
-
Now that we have a topic branch containing the change set based on the correct
|
158
|
-
release branch, the committer merges in:
|
159
|
-
|
160
|
-
$ git checkout 1.7.x
|
161
|
-
Switched to branch '1.7.x'
|
162
|
-
$ git merge --no-ff --log bug/1.7.x/fix_foo_error
|
163
|
-
Merge made by the 'recursive' strategy.
|
164
|
-
foo | 0
|
165
|
-
1 file changed, 0 insertions(+), 0 deletions(-)
|
166
|
-
create mode 100644 foo
|
167
|
-
|
168
|
-
Once merged into the first base branch, the committer merges up:
|
169
|
-
|
170
|
-
$ git checkout master
|
171
|
-
Switched to branch 'master'
|
172
|
-
$ git merge --no-ff --log 1.7.x
|
173
|
-
Merge made by the 'recursive' strategy.
|
174
|
-
foo | 0
|
175
|
-
1 file changed, 0 insertions(+), 0 deletions(-)
|
176
|
-
create mode 100644 foo
|
177
|
-
|
178
|
-
Once the change set has been merged "in and up." the committer pushes. (Note,
|
179
|
-
the checklist should be complete at this point.) Note that both the 1.7.x and
|
180
|
-
master branches are being pushed at the same time.
|
181
|
-
|
182
|
-
$ git push puppetlabs master:master 1.7.x:1.7.x
|
183
|
-
|
184
|
-
That's it! The committer then updates the pull request, updates the issue in
|
185
|
-
our issue tracker, and keeps an eye on the build status.
|
data/CONTRIBUTING.md
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
# How to contribute
|
2
|
-
|
3
|
-
Third-party patches are essential for keeping facter great. We simply can't
|
4
|
-
access the huge number of platforms and myriad configurations for running
|
5
|
-
facter. We want to keep it as easy as possible to contribute changes that
|
6
|
-
get things working in your environment. There are a few guidelines that we
|
7
|
-
need contributors to follow so that we can have a chance of keeping on
|
8
|
-
top of things.
|
9
|
-
|
10
|
-
## Getting Started
|
11
|
-
|
12
|
-
* Make sure you have a [Jira account](http://tickets.puppetlabs.com)
|
13
|
-
* Make sure you have a [GitHub account](https://github.com/signup/free)
|
14
|
-
* Submit a ticket for your issue, assuming one does not already exist.
|
15
|
-
* Clearly describe the issue including steps to reproduce when it is a bug.
|
16
|
-
* Make sure you fill in the earliest version that you know has the issue.
|
17
|
-
* Fork the repository on GitHub
|
18
|
-
|
19
|
-
## New Facts
|
20
|
-
|
21
|
-
All new facts should also be included in `schema/facter.json`. Without this facts won't pass acceptance tests.
|
22
|
-
|
23
|
-
## Making Changes
|
24
|
-
|
25
|
-
* Create a topic branch from where you want to base your work.
|
26
|
-
* This is usually the master branch.
|
27
|
-
* Only target release branches if you are certain your fix must be on that
|
28
|
-
branch.
|
29
|
-
* To quickly create a topic branch based on master; `git branch
|
30
|
-
fix/master/my_contribution master` then checkout the new branch with `git
|
31
|
-
checkout fix/master/my_contribution`. Please avoid working directly on the
|
32
|
-
`master` branch.
|
33
|
-
* Make commits of logical units.
|
34
|
-
* Check for unnecessary whitespace with `git diff --check` before committing.
|
35
|
-
* Make sure your commit messages are in the proper format.
|
36
|
-
|
37
|
-
````
|
38
|
-
(#99999) Make the example in CONTRIBUTING imperative and concrete
|
39
|
-
|
40
|
-
Without this patch applied the example commit message in the CONTRIBUTING
|
41
|
-
document is not a concrete example. This is a problem because the
|
42
|
-
contributor is left to imagine what the commit message should look like
|
43
|
-
based on a description rather than an example. This patch fixes the
|
44
|
-
problem by making the example concrete and imperative.
|
45
|
-
|
46
|
-
The first line is a real life imperative statement with a ticket number
|
47
|
-
from our issue tracker. The body describes the behavior without the patch,
|
48
|
-
why this is a problem, and how the patch fixes the problem when applied.
|
49
|
-
````
|
50
|
-
|
51
|
-
* Make sure you have added the necessary tests for your changes.
|
52
|
-
* Run _all_ the tests to assure nothing else was accidentally broken.
|
53
|
-
|
54
|
-
## Making Trivial Changes
|
55
|
-
|
56
|
-
### Documentation
|
57
|
-
|
58
|
-
For changes of a trivial nature to comments and documentation, it is not
|
59
|
-
always necessary to create a new ticket in Jira. In this case, it is
|
60
|
-
appropriate to start the first line of a commit with '(doc)' instead of
|
61
|
-
a ticket number.
|
62
|
-
|
63
|
-
````
|
64
|
-
(doc) Add documentation commit example to CONTRIBUTING
|
65
|
-
|
66
|
-
There is no example for contributing a documentation commit
|
67
|
-
to the Facter repository. This is a problem because the contributor
|
68
|
-
is left to assume how a commit of this nature may appear.
|
69
|
-
|
70
|
-
The first line is a real life imperative statement with '(doc)' in
|
71
|
-
place of what would have been the ticket number in a
|
72
|
-
non-documentation related commit. The body describes the nature of
|
73
|
-
the new documentation or comments added.
|
74
|
-
````
|
75
|
-
|
76
|
-
## Submitting Changes
|
77
|
-
|
78
|
-
* Sign the [Contributor License Agreement](http://links.puppetlabs.com/cla).
|
79
|
-
* Push your changes to a topic branch in your fork of the repository.
|
80
|
-
* Submit a pull request to the repository in the puppetlabs organization.
|
81
|
-
* Update your ticket to mark that you have submitted code and are ready for it to be reviewed.
|
82
|
-
* Include a link to the pull request in the ticket
|
83
|
-
|
84
|
-
# Additional Resources
|
85
|
-
|
86
|
-
* [More information on contributing](http://links.puppetlabs.com/contribute-to-puppet)
|
87
|
-
* [Bug tracker (Jira)](http://tickets.puppetlabs.com)
|
88
|
-
* [Contributor License Agreement](http://links.puppetlabs.com/cla)
|
89
|
-
* [General GitHub documentation](http://help.github.com/)
|
90
|
-
* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
|
91
|
-
* #puppet-dev IRC channel on freenode.org
|
data/Gemfile
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
source ENV['GEM_SOURCE'] || 'https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/'
|
2
|
-
|
3
|
-
def location_for(place, fake_version = nil)
|
4
|
-
if place =~ /^(git[:@][^#]*)#(.*)/
|
5
|
-
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
|
6
|
-
elsif place =~ /^file:\/\/(.*)/
|
7
|
-
['>= 0', { :path => File.expand_path($1), :require => false }]
|
8
|
-
else
|
9
|
-
[place, { :require => false }]
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# C Ruby (MRI) or Rubinius, but NOT Windows
|
14
|
-
platforms :ruby do
|
15
|
-
gem 'watchr', :group => :development
|
16
|
-
gem 'pry', :group => :development
|
17
|
-
gem 'yard', :group => :development
|
18
|
-
gem 'redcarpet', '<= 2.3.0', :group => :development
|
19
|
-
end
|
20
|
-
|
21
|
-
group :development, :test do
|
22
|
-
gem 'yarjuf', "~> 1.0"
|
23
|
-
gem 'rake', "~> 10.1.0"
|
24
|
-
gem 'rspec', "~> 2.11.0"
|
25
|
-
gem 'mocha', "~> 0.10.5"
|
26
|
-
gem 'json', "~> 1.7", :platforms => :ruby
|
27
|
-
gem 'json-schema', "~> 2.6.2", :platforms => :ruby
|
28
|
-
gem 'puppetlabs_spec_helper'
|
29
|
-
end
|
30
|
-
|
31
|
-
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.99') if RUBY_VERSION.to_f >= 2.3
|
32
|
-
|
33
|
-
require 'yaml'
|
34
|
-
data = YAML.load_file(File.join(File.dirname(__FILE__), 'ext', 'project_data.yaml'))
|
35
|
-
bundle_platforms = data['bundle_platforms']
|
36
|
-
data['gem_platform_dependencies'].each_pair do |gem_platform, info|
|
37
|
-
next if gem_platform =~ /mingw/
|
38
|
-
if bundle_deps = info['gem_runtime_dependencies']
|
39
|
-
bundle_platform = bundle_platforms[gem_platform] or raise "Missing bundle_platform"
|
40
|
-
platform(bundle_platform.intern) do
|
41
|
-
bundle_deps.each_pair do |name, version|
|
42
|
-
gem(name, version, :require => false)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
mingw = [:mingw]
|
49
|
-
mingw << :x64_mingw if Bundler::Dsl::VALID_PLATFORMS.include?(:x64_mingw)
|
50
|
-
|
51
|
-
platform(*mingw) do
|
52
|
-
# FFI dropped 1.9.3 support in 1.9.16, and 1.9.15 was an incomplete release.
|
53
|
-
# 1.9.18 is required to support Ruby 2.4
|
54
|
-
if RUBY_VERSION.to_f < 2.0
|
55
|
-
gem 'ffi', '<= 1.9.14', :require => false
|
56
|
-
elsif RUBY_VERSION.to_f < 2.6
|
57
|
-
gem 'ffi', '~> 1.9.18', :require => false
|
58
|
-
else
|
59
|
-
gem 'ffi', '~> 1.10', :require => false
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
gem 'facter', ">= 1.0.0", :path => File.expand_path("..", __FILE__)
|
64
|
-
|
65
|
-
if File.exists? "#{__FILE__}.local"
|
66
|
-
eval(File.read("#{__FILE__}.local"), binding)
|
67
|
-
end
|
68
|
-
|
69
|
-
# vim:ft=ruby
|
data/LICENSE
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
Facter - Host Fact Detection and Reporting
|
2
|
-
|
3
|
-
Copyright 2005-2014 Puppet Labs Inc
|
4
|
-
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
you may not use this file except in compliance with the License.
|
7
|
-
You may obtain a copy of the License at
|
8
|
-
|
9
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
|
11
|
-
Unless required by applicable law or agreed to in writing, software
|
12
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
See the License for the specific language governing permissions and
|
15
|
-
limitations under the License.
|
data/README.md
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
Facter
|
2
|
-
======
|
3
|
-
|
4
|
-
This package is largely meant to be a library for collecting facts about your
|
5
|
-
system. These facts are mostly strings (i.e., not numbers), and are things
|
6
|
-
like the output of `uname`, public ssh keys, the number of processors, etc.
|
7
|
-
|
8
|
-
See `bin/facter` for an example of the interface.
|
9
|
-
|
10
|
-
Installation
|
11
|
-
------------
|
12
|
-
|
13
|
-
Generally, you need the following things installed:
|
14
|
-
|
15
|
-
* A supported Ruby version. Ruby 1.8.7, 1.9.3, and 2.0.0 (at least p195) are fully supported.
|
16
|
-
|
17
|
-
Running Facter
|
18
|
-
--------------
|
19
|
-
|
20
|
-
Run the `facter` binary on the command for a full list of facts supported on
|
21
|
-
your host.
|
22
|
-
|
23
|
-
Adding your own facts
|
24
|
-
---------------------
|
25
|
-
|
26
|
-
See the [Adding Facts](http://docs.puppetlabs.com/guides/custom_facts.html)
|
27
|
-
page for details of how to add your own custom facts to Facter.
|
28
|
-
|
29
|
-
Running Specs
|
30
|
-
-------------
|
31
|
-
|
32
|
-
* bundle install --path .bundle/gems
|
33
|
-
* bundle exec rake spec
|
34
|
-
|
35
|
-
Note: external facts in the system facts.d directory can cause spec failures.
|
36
|
-
|
37
|
-
Further Information
|
38
|
-
-------------------
|
39
|
-
|
40
|
-
See http://www.puppetlabs.com/puppet/related-projects/facter for more details.
|
41
|
-
|
42
|
-
Support
|
43
|
-
-------
|
44
|
-
Please log tickets and issues at our [JIRA tracker](http://tickets.puppetlabs.com). A [mailing
|
45
|
-
list](https://groups.google.com/forum/?fromgroups#!forum/puppet-users) is
|
46
|
-
available for asking questions and getting help from others. In addition there
|
47
|
-
is an active #puppet channel on Freenode.
|
48
|
-
|
49
|
-
We use semantic version numbers for our releases, and recommend that users stay
|
50
|
-
as up-to-date as possible by upgrading to patch releases and minor releases as
|
51
|
-
they become available.
|
52
|
-
|
53
|
-
Bugfixes and ongoing development will occur in minor releases for the current
|
54
|
-
major version. Security fixes will be backported to a previous major version on
|
55
|
-
a best-effort basis, until the previous major version is no longer maintained.
|
56
|
-
|
57
|
-
|
58
|
-
For example: If a security vulnerability is discovered in Facter 2.1.0, we
|
59
|
-
would fix it in the 2 series, most likely as 2.1.1. Maintainers would then make
|
60
|
-
a best effort to backport that fix onto the latest Facter 1.7 release.
|
61
|
-
|
62
|
-
Long-term support, including security patches and bug fixes, is available for
|
63
|
-
commercial customers. Please see the following page for more details:
|
64
|
-
|
65
|
-
[Puppet Enterprise Support Lifecycle](http://puppetlabs.com/misc/puppet-enterprise-lifecycle)
|
data/Rakefile
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
# We need access to the Puppet.version method
|
2
|
-
$LOAD_PATH.unshift(File.expand_path("lib"))
|
3
|
-
require 'facter/version'
|
4
|
-
|
5
|
-
RAKE_ROOT = File.expand_path(File.dirname(__FILE__))
|
6
|
-
|
7
|
-
$LOAD_PATH << File.join(RAKE_ROOT, 'tasks')
|
8
|
-
|
9
|
-
require 'rake'
|
10
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
11
|
-
|
12
|
-
['rubygems', 'rspec', 'rspec/core/rake_task','rcov', 'packaging'].each do |lib|
|
13
|
-
begin
|
14
|
-
require lib
|
15
|
-
rescue LoadError
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
#load packaging tasks
|
20
|
-
Pkg::Util::RakeUtils.load_packaging_tasks if defined?(Pkg)
|
21
|
-
|
22
|
-
namespace :package do
|
23
|
-
task :bootstrap do
|
24
|
-
puts 'Bootstrap is no longer needed, using packaging-as-a-gem'
|
25
|
-
end
|
26
|
-
task :implode do
|
27
|
-
puts 'Implode is no longer needed, using packaging-as-a-gem'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
if defined?(RSpec::Core::RakeTask)
|
32
|
-
desc "Run all specs"
|
33
|
-
RSpec::Core::RakeTask.new do |t|
|
34
|
-
t.pattern ='spec/{unit,integration}/**/*_spec.rb'
|
35
|
-
t.fail_on_error = true
|
36
|
-
end
|
37
|
-
|
38
|
-
RSpec::Core::RakeTask.new('spec:rcov') do |t|
|
39
|
-
t.pattern ='spec/{unit,integration}/**/*_spec.rb'
|
40
|
-
t.fail_on_error = true
|
41
|
-
if defined?(Rcov)
|
42
|
-
t.rcov = true
|
43
|
-
t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*,gems/*']
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|