Puppet Class: lsys::python
- Defined in:
- manifests/python.pp
Summary
Python installationOverview
Python installation
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'manifests/python.pp', line 7
class lsys::python (
Boolean $python2_install = true,
Boolean $python3_install = true,
) {
case $facts['os']['family'] {
'RedHat': {
case $facts['os']['release']['major'] {
'7': {
if $python2_install { package { 'python': ensure => present } }
if $python3_install { package { 'python3': ensure => present } }
}
default: {
if $python2_install { package { 'python2': ensure => present } }
if $python3_install {
package { 'python3':
ensure => present,
allow_virtual => true,
}
}
}
}
}
default: {
if $python2_install { package { 'python2': ensure => present } }
if $python3_install {
package { 'python3':
ensure => present,
allow_virtual => true,
}
}
}
}
}
|