Fixes #8289 - cloudinit from rhev/ovirt support

so this is the foreman part to handle cloud-init from rhev and as such user_data templates
it relies on the following pending PR
https://github.com/abenari/rbovirt/pull/48
and
https://github.com/fog/fog/pull/3250
i used the following user_data sample
```json
#cloud-config
hostname: <%= @host.name %>
nicname: eth0
netmask: <%= @host.subnet.mask %>
gateway: <%= @host.subnet.gateway %> 
ip: <%= @host.ip %>
dns:
 - <%= @host.subnet.dns_primary %>
domain: <%= @host.domain %>
password: <%= root_pass %> 
ssh_authorized_keys:
 - ssh-rsa XXXX federer@bumblefoot
runcmd:
 - echo superbien > /tmp/prout1
 - echo 2280 > /tmp/prout2
```






no for ovirt , cloudinit is passed upon start, not when creating the vm.
El 23/12/2014 10:12, "Ohad Levy" <notifications@github.com> escribió:

> In app/models/concerns/orchestration/compute.rb
> <https://github.com/theforeman/foreman/pull/1939#discussion-diff-22207903>
> :
>
> > @@ -150,7 +150,12 @@ def delCompute
> >
> >    def setComputePowerUp
> >      logger.info "Powering up Compute instance for #{name}"
> > -    compute_resource.start_vm uuid
> > +    if compute_resource.provider == 'Ovirt'
>
> not sure i follow, this was not needed for others? cant we just eval if we
> have an image with user_data enabled and pass it when creating the vm in
> ovirt class?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/theforeman/foreman/pull/1939/files#r22207903>.
>