Sha256: dd2ea00d875255788de3935f8ac3ed6afa901d80708c6a56871b800bb9777d76
Contents?: true
Size: 790 Bytes
Versions: 8
Compression:
Stored size: 790 Bytes
Contents
#!/bin/bash # Fix for squeeze and el7 export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/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; do FACTER_GEM_VERSION="~> ${version}" bundle update minor_version=$(echo $version | cut -c1-3) output_dir="/vagrant/facts/${minor_version}" mkdir -p $output_dir FACTER_GEM_VERSION="~> ${version}" bundle exec facter | tee "${output_dir}/${operatingsystem}-${operatingsystemmajrelease}-${hardwaremodel}.facts" done
Version data entries
8 entries across 8 versions & 1 rubygems