Thank you very much guys, i created Userdata template as mentioned and it 
worked. Initially i tried with finish scripts + SSH but it use to hang.  
But now i am using userdata template without ssh and its working. 

On Wednesday, August 31, 2016 at 5:21:17 PM UTC+5:30, mso wrote:
>
> You need to configure
>
> In VMWARE
>
> - the template, i assume you have it
>
> in the template you need to have 
>
> - open-vm-tools install
> - ssh host keys cleaned out 
> - keys and certs for puppet clean out
>
> in foreman you need to have
>
> - the compute resource
> - the image
> - the compute profile 
> - the subnet
> - the provisioinng profile
>
> a provisioning template must include something like this 
>
> ----
> identity:
>   LinuxPrep:
>     domain: <%= @host.domain %>
>     hostName: <%= @host.shortname %>
>     hwClockUTC: true
>     timeZone: Europe/Berlin
>
> globalIPSettings:
>   dnsSuffixList: 
>     - <%= @host.domain %>
>   dnsServerList:
>     - <%= @host.subnet.dns_primary %>
>   
> nicSettingMap:
> <% @host.interfaces.each do |interface| %>
>   - adapter:
>       dnsDomain: <%= interface.domain %>
>       dnsServerList: 
>         - <%= interface.subnet.dns_primary %>
>       ip: <%= interface.ip %>
>       subnetMask: <%= interface.subnet.mask %>
>       gateway: 
>         - <%= interface.subnet.gateway %>
>
> fqdn: <%= @host %>
> manage_etc_hosts: true
>
> ----
>
> then  the foreman provides the IP address to VMWare and using the 
> open-vm-tools, the IP is injected into the machine similar to cloud-init 
> behaviour
>
> We have that running with CentOS and Ubuntu - but not with Debian ( look 
> at my post "Debian GNU/Linux 8 missing")
>
>
> Cheers
> Soeren
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to