[foreman-users] Re: Compatibility vmware 6.5

2017-03-02 Thread Robert Foreman
Did you ever get an answer to this question? We are about to do the same 
thing. It looks like everything should work. We have the new vcsa 
configured as a new compute resource, but until we actually make the esx 
cut-over and see how things end up I'm still a little nervous. I am 
assuming we'll just need to re-associate the VM's.

On Wednesday, January 11, 2017 at 4:21:30 AM UTC-5, Vainqueur Tony-greg 
wrote:
>
> We are currently using foreman for vm provisioning on our vmware infra which 
> is in version 6.0.
> My question is: Is there an impact or things to change if we upgrade the 
> infra vmware to 6.5 (vcenter + esxi)?
>
>

-- 
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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] Re: Vmware image-based provisioning issue

2016-11-29 Thread Robert Foreman
I ran into that exact same error just today and it ended up being a format 
error in my user data template. It rendered fine in the web UI, but vmware 
didn't like it for some reason. Here is the one I am currently using (in 
Sat 6.2) which is working for me.

identity:
  LinuxPrep:
domain: <%= @host.domain%>
hostName: <%= @host.shortname%>

globalIPSettings:
  dnsServerList: [<%= @host.primary_interface.subnet.dns_primary %>, <%= 
@host.primary_interface.subnet.dns_secondary %>]
  dnsSuffixList: [<%= @host.domain %>]

nicSettingMap:
<% @host.interfaces.each do |interface| %>
  - adapter:
  ip: <%= interface.ip %>
  subnetMask: <%= interface.subnet.mask %>
  <% if interface.primary -%>gateway: [<%= interface.subnet.gateway 
%>]<% end %>
<% 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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] Re: Image Provisioning using VMware template

2016-11-29 Thread Robert Foreman
I got the following user data template to work for vmware image based 
provisioning without SSH:

identity:
  LinuxPrep:
domain: <%= @host.domain%>
hostName: <%= @host.shortname%>

globalIPSettings:
  dnsServerList: [<%= @host.primary_interface.subnet.dns_primary %>, <%= 
@host.primary_interface.subnet.dns_secondary %>]
  dnsSuffixList: [<%= @host.domain %>]

nicSettingMap:
<% @host.interfaces.each do |interface| %>
  - adapter:
  ip: <%= interface.ip %>
  subnetMask: <%= interface.subnet.mask %>
  <% if interface.primary -%>gateway: [<%= interface.subnet.gateway 
%>]<% end %>
<% end %>

However, the thing to know is that image based provisioning against vmware 
without ssh is very limited when compared with traditional cloud-init. You 
are basically limited to the following properties:
https://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wssdk.smssdk.doc%2Fvim.vm.customization.Specification.html

Which means you can pass basic network settings to bootstrap the box, but 
little more. Windows clients can do a little more sysprep related activity, 
but Linux is limited. This means you will almost certainly need to design 
some form of "firstboot" process to handle things like re-registration to 
foreman, initial puppet run, etc. So far the only thing I haven't figured 
out is how to "phone_home" to complete the build. All I've been able to do 
is cancel the build in the web UI once it is done.

-- 
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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] enable rebuild for image based deployment

2016-11-24 Thread Robert Foreman
For hosts provisioned via image based provisioning using a vmware compute 
resource the Build button at the top for "enable rebuild on next host boot" 
is grayed. I'm not sure if this is by design or something I'm doing wrong. 
It seems rebuilding an image based deployment would be desirable: delete vm 
and re-clone from template.

-- 
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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


[foreman-users] unattended/built issue for vsphere image based provisioning without ssh

2016-11-24 Thread Robert Foreman
I was able to get image based provisioning without SSH working for a 
vsphere compute resource:
https://theforeman.org/manuals/1.11/index.html#5.2ComputeResources

But I'm having issues automating the build completion. The VMware 
CustomizationSpec 

 
is very limited in what it can do for Linux so I've been working on a 
firstboot process to complete the provisioning and hopefully call 
unattended/built?hostname= from the client, but that does not 
appear to work without authentication. It looks like token is what I should 
be using, but it's impossible to get a token to the client using vmware 
user data.

Any idea on how to best automate the build completion?

-- 
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 foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.