First off, you should use data types with your class and then you won't
have to check--the compile won't even succeed unless you've got the right
data type.
class foo (
Integer $subsetting,
) {
# $subsetting is guaranteed to be numeric here
}
Second, you can use the is_a
Hi,
I want to check if a variable is numeric. The manpage says is_numeric
is deprectaed and I shall user validate_legacy. But
<% if validate_legacy(Numeric, 'validate_numeric', $subsetting) { -%>
Error: Could not retrieve catalog from remote server: Error 500 on
SERVER: Server Error: Evaluation
Hi,
I want to include hiera classes.
---
roles::webserver::apache::classes:
- my_apache
roles::backup::bacula::classes:
- bacula
roles::timeserver::ntpd::classes:
- ntpd
roles::databaseserver::mysql::classes:
- mysqld
I used to use the follwoing (ugly) code in nodes.pp to do so:
if