def boot_device(name='default', **kwargs):
 ret = {'name': name, 'result': False, 'comment': '', 'changes': {}}
 org = __salt__['ipmi.get_bootdev'](**kwargs)
 if ('bootdev' in org):
  org = org['bootdev']
 if (org == name):
  ret['result'] = True
  ret['comment'] = 'system already in this state'
  return ret
 if __opts__['test']:
  ret['comment'] = 'would change boot device'
  ret['result'] = None
  ret['changes'] = {'old': org, 'new': name}
  return ret
 outdddd = __salt__['ipmi.set_bootdev'](bootdev=name, **kwargs)
 ret['comment'] = 'changed boot device'
 ret['result'] = True
 ret['changes'] = {'old': org, 'new': name}
 return ret

def boot_device ( name = 'default' , ** kwargs ) : ret = { 'name' : name , 'result' : False , 'comment' : '' , 'changes' : { } } org = __salt__ [ 'ipmi.get_bootdev' ] ( ** kwargs ) if ( 'bootdev' in org ) : org = org [ 'bootdev' ] if ( org == name ) : ret [ 'result' ] = True ret [ 'comment' ] = 'system already in this state' return ret if __opts__ [ 'test' ] : ret [ 'comment' ] = 'would change boot device' ret [ 'result' ] = None ret [ 'changes' ] = { 'old' : org , 'new' : name } return ret outdddd = __salt__ [ 'ipmi.set_bootdev' ] ( bootdev = name , ** kwargs ) ret [ 'comment' ] = 'changed boot device' ret [ 'result' ] = True ret [ 'changes' ] = { 'old' : org , 'new' : name } return ret
request power state change name = default * network -- request network boot * hd -- boot from hard drive * safe -- boot from hard drive .