Hello,
i have problem with vmware image based deploy without ssh (no dhcp). 
I use user_data template for setup network for vmware and its works very 
well.
But I need also setup puppet and use callhome function, to inform foreman 
about succesfull deploy. 
I tried to use runcmd function in template but it doesn't work. 



I use  AIO foreman  1.12.1.
Here is my template: 


<%#
kind: user_data
name: Centos7
oses:

- CentOS 6
- CentOS 7

-%>
, Case sensistive timezone, valid values can be found at 
https://pubs.vmware.com/vsphere-51/topic/com.vmware.wssdk.apiref.doc/timezone.html
identity:
  LinuxPrep:
    domain: <%= @host.domain %>
    hostName: <%= @host.shortname%>
    hwClockUTC: true
    timeZone: <%= @host.params['time-zone'] || 'UTC' %>
ay> - Optional, List of name resolution suffixes - Example: 
["dev.example.com", "example.com"]
globalIPSettings:
  dnsSuffixList: [<%= @host.domain %>]
  dnsServerList: ["10.0.0.51", "10.0.0.52"]

runcmd:
  - yum -y install vim
  - yum -y install puppet
  - /usr/bin/wget --quiet --output-document=/dev/null 
--no-check-certificate http://10.0.0.10/
nicSettingMap:
<% @host.interfaces.each do |interface| %>
  - adapter:
      dnsDomain: <%= interface.domain %>
      dnsServerList: [<%= interface.subnet.dns_primary %>, <%= 
interface.subnet.dns_secondary %>]
      gateway: [<%= interface.subnet.gateway %>]
      ip: <%= interface.ip %>
      subnetMask: <%= interface.subnet.mask %>
<% end %>

-- 
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