Sha256: 0696f5eea730fef1fc81baa0b94c8a101bc0e39285f8c41bdd5c6ffb25e9c3ee
Contents?: true
Size: 950 Bytes
Versions: 1
Compression:
Stored size: 950 Bytes
Contents
#!/bin/bash # Fix for squeeze, el7, arch, opensuse12 and opensuse13 export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/bin:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin # Install latest version of facter gem install bundler --no-ri --no-rdoc bundle install --path vendor/bundler operatingsystem=$(bundle exec facter operatingsystem | tr '[:upper:]' '[:lower:]') operatingsystemmajrelease=$(bundle exec facter operatingsystemmajrelease) hardwaremodel=$(bundle exec facter hardwaremodel) for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0; do FACTER_GEM_VERSION="~> ${version}" bundle update minor_version=$(echo $version | cut -c1-3) output_dir="/vagrant/${minor_version}" mkdir -p $output_dir FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | tee "${output_dir}/${operatingsystem}-${operatingsystemmajrelease}-${hardwaremodel}.facts" done
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-puppet-facts-0.4.0 | facts/get_facts.sh |