puppet/cairo/manifests/init.pp
Ossi Salmi 24ecb51f6f Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
2012-09-05 17:29:36 +03:00

30 lines
557 B
Puppet

# Install cairo.
#
class cairo {
package { "cairo":
name => $::operatingsystem ? {
debian => "libcairo2",
ubuntu => "libcairo2",
default => "cairo",
},
ensure => installed,
}
}
# Install python bindings for cairo.
#
class cairo::python inherits cairo {
package { "pycairo":
name => $::operatingsystem ? {
debian => "python-cairo",
ubuntu => "python-cairo",
default => "pycairo",
},
ensure => installed,
}
}