Host class: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Host classes for each host may be set in <code>[[hostlist.csv]]</code> or may be set in <code>[[config.inc]]</code>. | A '''host class''' is an attribute assigned to the specification of a host which determines aspects of its configuration. | ||
Host classes for each host may be set in <code>[[hostlist.csv]]</code> or may be set through inheritance in <code>[[config.inc]]</code>. | |||
Host classes set in <code>hostlist.csv</code> are available to both [[host generator]] scripts and to [[cfengine]] [[promises]]. | Host classes set in <code>hostlist.csv</code> are available to both [[host generator]] scripts and to [[cfengine]] [[promises]]. | ||
Host classes set in <code>config.inc</code> are NOT available to host generator scripts. | Host classes set in <code>config.inc</code> are NOT available to host generator scripts but ONLY TO [[cfengine]] [[promises]]. | ||
{| | {| | ||
Line 9: | Line 11: | ||
!Where specified | !Where specified | ||
!Description | !Description | ||
|- | |||
|mon* | |||
|<code>hostlist.csv</code> | |||
|Classes used to configure the [[monitoring]] system: | |||
* mondisk - sample each host disk's sector (512 byte) read and write counts and save for graphing | |||
* moneth[0-9] - sample the network interface transmit and receive byte counts and save for graphing | |||
* monload - sample the host's load average and save for graphing | |||
* monping - ping the hosts | |||
|- | |- | ||
|userlogin | |userlogin | ||
|<code>config.inc</code> | |<code>config.inc</code> | ||
|Indicates that ordinary users will log in to this host. Typically set for [[lab computer]]s, [[login server]]s and [[VLAB]] servers. | |Indicates that ordinary users will log in to this host. Typically set for [[lab computer]]s, [[login server]]s and [[VLAB]] servers. Membership of this class causes [[LDAP]], [[Kerberos]] and [[home directories]] to be set up, as well as copying in the appropriate [[CSG]]-managed [[Debian]] [[package lists]] and setting up the [[extra packages]] and [[extra files]] "features" | ||
|- | |||
|ldap | |||
|<code>config.inc</code> | |||
|Typically set for all "userlogin" hosts, this class causes the necessary packages and configuration files to be installed on a hosts so that LDAP is automatically used against CSE's own LDAP service for most Name Service Switch (NSS) operations such as [[UID]], [[GID]], and user name lookups. See also <code>/etc/nsswitch.conf</code>. | |||
|- | |||
|automounter | |||
|<code>config.inc</code> | |||
|Typically set for all "userlogin" hosts, this class causes the necessary packages and configuration files to be installed on a hosts so [[home directories]] mount automatically when referenced. | |||
|- | |||
|localstorage | |||
|<code>hostlist.csv</code> | |||
|See [[Local storage|local storage]] | |||
|- | |||
|vlabserver | |||
|<code>hostlist.csv</code> | |||
|Configure host as a VLAB server | |||
|- | |||
|noextras | |||
|<code>hostlist.csv</code> | |||
|Prevents [[extra files]] and [[extra packages]] being installed on a user-loginable host. Primarily used for testing as it maintains main platform functionality and speeds installation at the cost of not installing teaching-specific files and packages | |||
|- | |||
|physicallabhost | |||
|<code>hostlist.csv</code> | |||
|Sets host class userlogin and causes host to be configures as a physical lab computer with GUI login but, obviously, no VLAB-type multi-login functionality | |||
|} | |} | ||
[[Category:Pages needing work]] | [[Category:Pages needing work]] |
Latest revision as of 10:54, 5 September 2023
A host class is an attribute assigned to the specification of a host which determines aspects of its configuration.
Host classes for each host may be set in hostlist.csv
or may be set through inheritance in config.inc
.
Host classes set in hostlist.csv
are available to both host generator scripts and to cfengine promises.
Host classes set in config.inc
are NOT available to host generator scripts but ONLY TO cfengine promises.
Class name | Where specified | Description |
---|---|---|
mon* | hostlist.csv
|
Classes used to configure the monitoring system:
|
userlogin | config.inc
|
Indicates that ordinary users will log in to this host. Typically set for lab computers, login servers and VLAB servers. Membership of this class causes LDAP, Kerberos and home directories to be set up, as well as copying in the appropriate CSG-managed Debian package lists and setting up the extra packages and extra files "features" |
ldap | config.inc
|
Typically set for all "userlogin" hosts, this class causes the necessary packages and configuration files to be installed on a hosts so that LDAP is automatically used against CSE's own LDAP service for most Name Service Switch (NSS) operations such as UID, GID, and user name lookups. See also /etc/nsswitch.conf .
|
automounter | config.inc
|
Typically set for all "userlogin" hosts, this class causes the necessary packages and configuration files to be installed on a hosts so home directories mount automatically when referenced. |
localstorage | hostlist.csv
|
See local storage |
vlabserver | hostlist.csv
|
Configure host as a VLAB server |
noextras | hostlist.csv
|
Prevents extra files and extra packages being installed on a user-loginable host. Primarily used for testing as it maintains main platform functionality and speeds installation at the cost of not installing teaching-specific files and packages |
physicallabhost | hostlist.csv
|
Sets host class userlogin and causes host to be configures as a physical lab computer with GUI login but, obviously, no VLAB-type multi-login functionality |