summaryrefslogtreecommitdiff
path: root/manifests/package.pp
blob: 4562e79a4b3b3029dbd9c367fcff7187a29105f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define python::package ( $ensure = 'present' )
{
  if $ensure == 'present' { require python }

  case $operatingsystem {
    'debian','ubuntu': {
      package {"python-${name}": ensure => $ensure }
    }
    default: {
      package {"python-${name}": ensure => $ensure }
    }
  }
}