facter 3.11.0.cfacter.20180319 → 3.11.2.cfacter.20180606

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/ext/facter/facter/CMakeLists.txt +1 -1
  3. data/ext/facter/facter/acceptance/Gemfile +4 -3
  4. data/ext/facter/facter/acceptance/Rakefile +2 -342
  5. data/ext/facter/facter/acceptance/config/aio/options.rb +0 -6
  6. data/ext/facter/facter/acceptance/config/git/options.rb +1 -5
  7. data/ext/facter/facter/lib/Doxyfile +1 -1
  8. data/ext/facter/facter/lib/inc/internal/facts/aix/networking_resolver.hpp +7 -0
  9. data/ext/facter/facter/lib/inc/internal/facts/bsd/networking_resolver.hpp +2 -0
  10. data/ext/facter/facter/lib/inc/internal/facts/freebsd/networking_resolver.hpp +7 -0
  11. data/ext/facter/facter/lib/inc/internal/facts/linux/networking_resolver.hpp +7 -0
  12. data/ext/facter/facter/lib/inc/internal/facts/openbsd/networking_resolver.hpp +7 -0
  13. data/ext/facter/facter/lib/inc/internal/facts/osx/networking_resolver.hpp +7 -0
  14. data/ext/facter/facter/lib/inc/internal/facts/posix/networking_resolver.hpp +7 -0
  15. data/ext/facter/facter/lib/inc/internal/facts/resolvers/networking_resolver.hpp +3 -2
  16. data/ext/facter/facter/lib/inc/internal/facts/solaris/networking_resolver.hpp +7 -0
  17. data/ext/facter/facter/lib/src/facts/aix/disk_resolver.cc +11 -2
  18. data/ext/facter/facter/lib/src/facts/aix/networking_resolver.cc +5 -0
  19. data/ext/facter/facter/lib/src/facts/bsd/networking_resolver.cc +60 -4
  20. data/ext/facter/facter/lib/src/facts/freebsd/networking_resolver.cc +10 -1
  21. data/ext/facter/facter/lib/src/facts/linux/networking_resolver.cc +10 -1
  22. data/ext/facter/facter/lib/src/facts/openbsd/networking_resolver.cc +10 -1
  23. data/ext/facter/facter/lib/src/facts/osx/networking_resolver.cc +10 -1
  24. data/ext/facter/facter/lib/src/facts/posix/networking_resolver.cc +2 -1
  25. data/ext/facter/facter/lib/src/facts/resolvers/networking_resolver.cc +23 -7
  26. data/ext/facter/facter/lib/src/facts/solaris/networking_resolver.cc +5 -0
  27. data/ext/facter/facter/locales/FACTER.pot +32 -1
  28. data/ext/facter/leatherman/CHANGELOG.md +9 -0
  29. data/ext/facter/leatherman/CMakeLists.txt +2 -1
  30. data/ext/facter/leatherman/cmake/FindICU.cmake +690 -0
  31. data/ext/facter/leatherman/locale/CMakeLists.txt +7 -0
  32. metadata +4 -9
  33. data/ext/facter/facter/acceptance/setup/aio/pre-suite/010_Install.rb +0 -22
  34. data/ext/facter/facter/acceptance/setup/aio/pre-suite/021_InstallAristaModule.rb +0 -12
  35. data/ext/facter/facter/acceptance/setup/aio/pre-suite/022_Remove_LD_PRELOAD.rb +0 -11
  36. data/ext/facter/facter/acceptance/setup/common/00_EnvSetup.rb +0 -64
  37. data/ext/facter/facter/acceptance/setup/common/pre-suite/000-delete-puppet-when-none.rb +0 -11
  38. data/ext/facter/facter/acceptance/setup/git/pre-suite/01_TestSetup.rb +0 -31
@@ -1,5 +1,8 @@
1
1
  if (LEATHERMAN_USE_LOCALES)
2
2
  find_package(Boost 1.54 REQUIRED COMPONENTS locale system)
3
+ if (BOOST_STATIC AND LEATHERMAN_USE_ICU)
4
+ find_package(ICU COMPONENTS i18n uc)
5
+ endif()
3
6
  else()
4
7
  find_package(Boost 1.54 REQUIRED regex)
5
8
  endif()
@@ -7,6 +10,10 @@ endif()
7
10
  add_leatherman_includes(${Boost_INCLUDE_DIRS})
8
11
  add_leatherman_deps(${Boost_LIBRARIES})
9
12
 
13
+ if (ICU_LIBRARIES)
14
+ add_leatherman_deps(${ICU_LIBRARIES})
15
+ endif()
16
+
10
17
  if (LEATHERMAN_USE_LOCALES AND BOOST_STATIC AND APPLE)
11
18
  # Boost.Locale relies on libiconv; if not using shared boost libraries
12
19
  # we need to include the dependency ourselves. So far this is only a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0.cfacter.20180319
4
+ version: 3.11.2.cfacter.20180606
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-19 00:00:00.000000000 Z
12
+ date: 2018-06-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: info@puppet.com
@@ -202,12 +202,6 @@ files:
202
202
  - ext/facter/facter/acceptance/lib/puppet/acceptance/common_utils.rb
203
203
  - ext/facter/facter/acceptance/lib/puppet/acceptance/git_utils.rb
204
204
  - ext/facter/facter/acceptance/lib/puppet/acceptance/install_utils.rb
205
- - ext/facter/facter/acceptance/setup/aio/pre-suite/010_Install.rb
206
- - ext/facter/facter/acceptance/setup/aio/pre-suite/021_InstallAristaModule.rb
207
- - ext/facter/facter/acceptance/setup/aio/pre-suite/022_Remove_LD_PRELOAD.rb
208
- - ext/facter/facter/acceptance/setup/common/00_EnvSetup.rb
209
- - ext/facter/facter/acceptance/setup/common/pre-suite/000-delete-puppet-when-none.rb
210
- - ext/facter/facter/acceptance/setup/git/pre-suite/01_TestSetup.rb
211
205
  - ext/facter/facter/acceptance/tests/custom_facts/custom_fact_with_10001_weight_overrides_external_fact.rb
212
206
  - ext/facter/facter/acceptance/tests/custom_facts/having_multiple_facts_in_one_file.rb
213
207
  - ext/facter/facter/acceptance/tests/custom_facts/using_win32ole_should_not_hang.rb
@@ -851,6 +845,7 @@ files:
851
845
  - ext/facter/leatherman/README.md
852
846
  - ext/facter/leatherman/appveyor.yml
853
847
  - ext/facter/leatherman/catch/CMakeLists.txt
848
+ - ext/facter/leatherman/cmake/FindICU.cmake
854
849
  - ext/facter/leatherman/cmake/GetGitRevisionDescription.cmake
855
850
  - ext/facter/leatherman/cmake/GetGitRevisionDescription.cmake.in
856
851
  - ext/facter/leatherman/cmake/cflags.cmake
@@ -1081,7 +1076,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1081
1076
  version: 1.3.1
1082
1077
  requirements: []
1083
1078
  rubyforge_project:
1084
- rubygems_version: 2.2.5
1079
+ rubygems_version: 2.6.14.1
1085
1080
  signing_key:
1086
1081
  specification_version: 4
1087
1082
  summary: Facter gem wrapper
@@ -1,22 +0,0 @@
1
- require 'puppet/acceptance/common_utils'
2
- require 'beaker/dsl/install_utils'
3
- extend Beaker::DSL::InstallUtils
4
-
5
- test_name "Install Packages"
6
-
7
- step "Install puppet-agent..." do
8
- opts = {
9
- :puppet_collection => 'PC1',
10
- :puppet_agent_sha => ENV['SHA'],
11
- :puppet_agent_version => ENV['SUITE_VERSION'] || ENV['SHA']
12
- }
13
- install_puppet_agent_dev_repo_on(hosts, opts)
14
- end
15
-
16
- # make sure install is sane, beaker has already added puppet and ruby
17
- # to PATH in ~/.ssh/environment
18
- agents.each do |agent|
19
- on agent, puppet('--version')
20
- ruby = Puppet::Acceptance::CommandUtils.ruby_command(agent)
21
- on agent, "#{ruby} --version"
22
- end
@@ -1,12 +0,0 @@
1
- platforms = hosts.map{|val| val[:platform]}
2
- skip_test "No arista hosts present" unless platforms.any? { |val| /^eos-/ =~ val }
3
- test_name 'Arista Switch Pre-suite' do
4
- switchs = select_hosts({:platform => ['eos-4-i386']})
5
-
6
- step 'add puppet user to switch' do
7
- switchs.each do |switch|
8
- on(switch, "/opt/puppetlabs/bin/puppet config --confdir /etc/puppetlabs/puppet set user root")
9
- on(switch, "/opt/puppetlabs/bin/puppet config --confdir /etc/puppetlabs/puppet set group root")
10
- end
11
- end
12
- end
@@ -1,11 +0,0 @@
1
- platforms = hosts.map{|val| val[:platform]}
2
- skip_test "No Cisco XR hosts present" unless platforms.any? { |val| /^cisco_ios_xr-/ =~ val }
3
- test_name 'Cisco XR Switch Pre-suite' do
4
- switchs = select_hosts({:platform => ['cisco_ios_xr-6-x86_64']})
5
-
6
- step 'remove LD_PRELOAD setting from switch' do
7
- switchs.each do |switch|
8
- on(switch, "echo 'unset LD_PRELOAD' >> /etc/profile")
9
- end
10
- end
11
- end
@@ -1,64 +0,0 @@
1
- test_name "Setup environment"
2
-
3
- step "Ensure Git and Ruby"
4
-
5
- require 'puppet/acceptance/install_utils'
6
- extend Puppet::Acceptance::InstallUtils
7
- require 'puppet/acceptance/git_utils'
8
- extend Puppet::Acceptance::GitUtils
9
- require 'beaker/dsl/install_utils'
10
- extend Beaker::DSL::InstallUtils
11
-
12
- PACKAGES = {
13
- :redhat => [
14
- 'git',
15
- 'ruby',
16
- 'rubygem-json',
17
- ],
18
- :debian => [
19
- ['git', 'git-core'],
20
- 'ruby',
21
- ],
22
- :debian_ruby18 => [
23
- 'libjson-ruby',
24
- ],
25
- :solaris => [
26
- ['git', 'developer/versioning/git'],
27
- ['ruby', 'runtime/ruby-18'],
28
- # there isn't a package for json, so it is installed later via gems
29
- ],
30
- :windows => [
31
- 'git',
32
- # there isn't a need for json on windows because it is bundled in ruby 1.9
33
- ],
34
- }
35
-
36
- install_packages_on(hosts, PACKAGES, :check_if_exists => true)
37
-
38
- hosts.each do |host|
39
- case host['platform']
40
- when /windows/
41
- step "#{host} Install ruby from git"
42
- ruby_arch = host[:ruby_arch] || 'x86'
43
- revision = if ruby_arch == 'x64'
44
- '2.0.0-x64'
45
- else
46
- '1.9.3-x86'
47
- end
48
-
49
- install_from_git(host, "/opt/puppet-git-repos",
50
- :name => 'puppet-win32-ruby',
51
- :path => build_giturl('puppet-win32-ruby'),
52
- :rev => revision)
53
- on host, 'cd /opt/puppet-git-repos/puppet-win32-ruby; cp -r ruby/* /'
54
- on host, 'cd /lib; icacls ruby /grant "Everyone:(OI)(CI)(RX)"'
55
- on host, 'cd /lib; icacls ruby /reset /T'
56
- on host, 'cd /; icacls bin /grant "Everyone:(OI)(CI)(RX)"'
57
- on host, 'cd /; icacls bin /reset /T'
58
- on host, 'ruby --version'
59
- on host, 'cmd /c gem list'
60
- when /solaris/
61
- step "#{host} Install json from rubygems"
62
- on host, 'gem install json'
63
- end
64
- end
@@ -1,11 +0,0 @@
1
- test_name "Expunge puppet bits if hypervisor is none"
2
-
3
- # Ensure that the any previous installations of puppet
4
- # are removed from the host if it is not managed by a
5
- # provisioning hypervisor.
6
-
7
- hosts.each do |host|
8
- if host[:hypervisor] == "none"
9
- remove_puppet_on(host)
10
- end
11
- end
@@ -1,31 +0,0 @@
1
- test_name "Install packages and repositories on target machines..." do
2
- extend Beaker::DSL::InstallUtils
3
-
4
- SourcePath = Beaker::DSL::InstallUtils::SourcePath
5
- GitURI = Beaker::DSL::InstallUtils::GitURI
6
- GitHubSig = Beaker::DSL::InstallUtils::GitHubSig
7
-
8
- tmp_repositories = []
9
- options[:install].each do |uri|
10
- raise(ArgumentError, "#{uri} is not recognized.") unless(uri =~ GitURI)
11
- tmp_repositories << extract_repo_info_from(uri)
12
- end
13
-
14
- repositories = order_packages(tmp_repositories)
15
-
16
- versions = {}
17
- hosts.each_with_index do |host, index|
18
- on host, "echo #{GitHubSig} >> $HOME/.ssh/known_hosts"
19
-
20
- repositories.each do |repository|
21
- step "Install #{repository[:name]}"
22
- install_from_git host, SourcePath, repository
23
-
24
- if index == 1
25
- versions[repository[:name]] = find_git_repo_versions(host,
26
- SourcePath,
27
- repository)
28
- end
29
- end
30
- end
31
- end