Use define blocks to shorten the node definitions in site.pp
Bug #1090337 reported by
Ian Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cisco Openstack |
Fix Committed
|
Undecided
|
Unassigned | ||
Folsom |
Fix Released
|
Wishlist
|
Ian Wells |
Bug Description
Create define block in cobbler-node.pp or site.pp thus:
define cobbler_node($ip, $power_ip, $mac) {
cobbler::node { ... }
}
The definition may need adjusting when people use non-UCS hardware (ipmitool is not always the right answer, for instance) so it does need to be somewhere it's checked and tweaked by an end-user. But there's no point in copying and pasting 10 lines per cobbler::node definition in site.pp when one line will do.
To post a comment you must log in.
https:/ /github. com/CiscoSystem s/folsom- manifests/ commit/ 0426be2ceed7963 069e365475cf40c bce47f85e9