Displaying 1 result from an estimated 1 matches for "abstract_ntp_client".
2006 Nov 03
1
Reusable definitions
...}
class ntp_client {
package { ntp ... }
file { "/etc/ntp.conf" :
content => template( "ntp.conf" ) ... <= Template using <%= ntp_server
%>
}
service { ntpd ...
}
}
node node1 {
include ntp_client
}
}
3. Maybe using inheritance? Kind of:
class abstract_ntp_client {
$ntp_server = "es.pool.ntp.org"
package { ntp ... }
file { "/etc/ntp.conf" :
content => template( "ntp.conf" ) ... <= Template using <%= ntp_server
%>
}
service { ntpd ...
}
}
class ntp_client_domain1 inherits abstract_ntp_client {
$ntp_ser...