fuel-library/deployment/puppet/operatingsystem/manifests/checksupported.pp
Sergey Vasilenko 92c653bf33 Revert "add Limits module for Puppet"
This reverts commit 98cedba41e.

* remove limit set.
* this settings broke deploy
* Revert "rising file limits" 11a7c94cdd.
2013-07-18 14:32:12 +04:00

22 lines
638 B
Puppet

#
# This class is being used to check for compatibility with different operating systems
# If the operating system is not supported, it will fail early
#
class operatingsystem::checksupported (
) {
case $::operatingsystem {
centos, redhat, ubuntu : { }
default : { fail("Operating system $::operatingsystem is not supported") }
}
case $::architecture {
x86_64, amd64 : { }
default : { fail("Architecture $::architecture is not supported. 64-bit architecture is required") }
}
notify { 'operatingsystem':
message => "Detected OS $::operatingsystem, architecture $::architecture"
}
}