Use define blocks to shorten the node definitions in site.pp

Bug #1090337 reported by Ian Wells
6
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.

Tags: 2012.2.2
Revision history for this message
Ian Wells (ijw-ubuntu) wrote :
Changed in openstack-cisco:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.