benburkert/razor-vagrant-demo — pull request #4 by ChrisLundquist (2012-06-27 07:45:27+00:00)
Title: Feature redhat

NOTE: this builds on my other pull request.

Makes centos_6 example work. I ran into issues with the ubuntu example. Things like the installer not finding kernels or not partitioning the disks correctly. as discussed
https://github.com/puppetlabs/Razor/issues/88

-----
```

$ rake centos
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 321M 100 321M 0 0 1394k 0 0:03:56 0:03:56 --:--:-- 1010k
Attempting to add, please wait...

New image added successfully
Added Image:
UUID => 7heF69c3hApMqxgzOWEmxd
Type => OS Install
ISO Filename => CentOS-6.2-x86_64-minimal.iso
Path => /opt/razor/image/os/7heF69c3hApMqxgzOWEmxd
Status => Valid
OS Name => centos
OS Version => 6.2
```
----
```
root@gold:/opt/razor# bin/razor model add template="centos_6" label="install_centos_6" image_uuid="7heF69c3hApMqxgzOWEmxd"
--- Building Model (centos_6):

Please enter node hostname prefix (will append node number) (example: node)
default: node
(QUIT to cancel)
> centos
Please enter root password (> 8 characters) (example: P@ssword!)
default: test1234
(QUIT to cancel)
> qwert123
Model created
Label => install_centos_6
Template => linux_deploy
Description => CentOS 6 Model
UUID => o7UK2SV4B5CBZFHYZOSdl
Image UUID => 7heF69c3hApMqxgzOWEmxd

root@gold:/opt/razor# bin/razor policy add --template=linux_deploy --tags=virtualbox_vm --enabled --label="centos_6" --model=o7UK2SV4B5CBZFHYZOSdl
Policy created
UUID => 2kMiVmLjgj1nnMwvfLJvkX
Line Number => 0
Label => centos_6
Enabled => true
Template => linux_deploy
Description => Policy for deploying a Linux-based operating system.
Tags => [virtualbox_vm]
Model Label => install_centos_6
Broker Target => none
Currently Bound => 0
Maximum Bound => 0
Bound Counter => 0

root@gold:/opt/razor# bin/razor node
Discovered Nodes
UUID Last Checkin Status Tags
3R5ouQeb58DBlI5kcPX8s5 35 sec A [memsize_500MiB,nics_1,virtualbox_vm]
root@gold:/opt/razor# bin/razor node 3R5ouQeb58DBlI5kcPX8s5
UUID => 3R5ouQeb58DBlI5kcPX8s5
Last Checkin => 06-27-12 06:57:33
Status => active
Tags => [memsize_500MiB,nics_1,virtualbox_vm]
Hardware IDs => [0800277E2501]

root@gold:/opt/razor# bin/razor node
Discovered Nodes
UUID Last Checkin Status Tags
3R5ouQeb58DBlI5kcPX8s5 3 sec B [memsize_500MiB,nics_1,virtualbox_vm]
```