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- pkg = Puppet ::Type . type ( :package ) . new ( :name => "python-pip" , :allow_virtual => 'false' )
4+ pkg = Puppet ::Type . type ( :package ) . new ( :name => "python-pip" )
55Facter . add ( "pip_version" ) do
66 has_weight 100
77 setcode do
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- pkg = Puppet ::Type . type ( :package ) . new ( :name => "python" , :allow_virtual => 'false' )
4+ pkg = Puppet ::Type . type ( :package ) . new ( :name => "python" )
55
66Facter . add ( "system_python_version" ) do
77 setcode do
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- pkg = Puppet ::Type . type ( :package ) . new ( :name => "virtualenv" , :allow_virtual => 'false' )
4+ pkg = Puppet ::Type . type ( :package ) . new ( :name => "virtualenv" )
55Facter . add ( "virtualenv_version" ) do
66 has_weight 100
77 setcode do
You can’t perform that action at this time.
0 commit comments