File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Make pip version available as a fact
2
2
# Works with pip loaded and without, pip installed using pip and package installed
3
3
require 'puppet'
4
- pkg = Puppet ::Type . type ( :package ) . new ( :name => "python-pip" )
4
+ pkg = Puppet ::Type . type ( :package ) . new ( :name => "python-pip" , :allow_virtual => 'false' )
5
5
Facter . add ( "pip_version" ) do
6
6
has_weight 100
7
7
setcode do
Original file line number Diff line number Diff line change 1
1
# Make python versions available as facts
2
2
# In lists default python and system python versions
3
3
require 'puppet'
4
- pkg = Puppet ::Type . type ( :package ) . new ( :name => "python" )
4
+ pkg = Puppet ::Type . type ( :package ) . new ( :name => "python" , :allow_virtual => 'false' )
5
5
6
6
Facter . add ( "system_python_version" ) do
7
7
setcode do
You can’t perform that action at this time.
0 commit comments