Hey! Great question. The "Build Token" is (to my understanding) essentially there to keep your servers from boot-looping when you PXE/network boot them. At the end of your provisioning script (user data, kickstart, etc), there should be a bit that makes an HTTP request to your foreman server with the build token, essentially telling Foreman that you're not in build mode anymore! For example, if you're using CloudInit, the default userdata for it has these [1] lines to (as it says) "phone home" and inform Foreman the instance is built. If you were using Kickstart, it'd be a curl command to do the same thing.
If you're using custom userdata/kickstart scripts, I would bet you might've ommited this part, which is why you have to manually cancel the build on these machines. If you want, post your userdata/kickstart on something like github gist [2] or pastebin [3] and we can probably help you identify where you're missing it. [1] https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/user_data/userdata_default.erb#L79-L83 [2] https://gist.github.com/ [3] https://pastebin.com/ Best, Neil On Thu, Nov 16, 2017 at 7:38 AM andpk <[email protected]> wrote: > Good evening together, > > when provisioning server (Windows or CentOS) over foreman-vmware, the > "Build Token" expired after a while. I always have to "cancel build" on > each host if i want to change the red icon to a green icon, because in fact > the "build" of a new host - from compute resources to the last puppet apply > - works great. So i dont know what is the "Build Token" for and what takes > affect on it. The Foreman 1.15 documentation have 0 matches when searching > for "build token" and only a few matches on "token" where iam not sure if > its about the build token or something else, for example, > setting token_duration. > > So my main questions is what is the build token for and how to configure > it? > Iam thanksful for any help. > > Best Regards > > > -- > 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. > -- 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.
