File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Make pip version available as a fact
22# Works with pip loaded and without, pip installed using pip and package installed
33require 'puppet'
4+ require 'rubygems'
45if Gem ::Version . new ( Facter . value ( :puppetversion ) ) >= Gem ::Version . new ( '3.6' )
56 pkg = Puppet ::Type . type ( :package ) . new ( :name => 'python-pip' , :allow_virtual => 'false' )
67else
Original file line number Diff line number Diff line change 11# Make python versions available as facts
22# In lists default python and system python versions
33require 'puppet'
4+ require 'rubygems'
45if Gem ::Version . new ( Facter . value ( :puppetversion ) ) >= Gem ::Version . new ( '3.6' )
56 pkg = Puppet ::Type . type ( :package ) . new ( :name => 'python' , :allow_virtual => 'false' )
67else
Original file line number Diff line number Diff line change 11# Make virtualenv version available as a fact
22# Works with virualenv loaded and without, pip installed and package installed
33require 'puppet'
4+ require 'rubygems'
45if Gem ::Version . new ( Facter . value ( :puppetversion ) ) >= Gem ::Version . new ( '3.6' )
56 pkg = Puppet ::Type . type ( :package ) . new ( :name => 'virtualenv' , :allow_virtual => 'false' )
67else
You can’t perform that action at this time.
0 commit comments