Finish script not running on provisioning(Network based)

Hi All,

I've foreman 1.10 running on CentOS6.7

When trying to install new CentOS 6\7 the installation is finish
successfully but the finish script is not being run at all.

<https://lh3.googleusercontent.com/-oAqTKWtrbVM/Vup-jUfrvZI/AAAAAAAAhKk/CwwNPcZ8HkkPSL-xlExPIEeO2ZV3Wslzw/s1600/image.GIF>

In my case this is "Send mail" but even using the default finish script or
just some bash script it's not working.
How can I debug it? What can be the issue here?

Thanks,
EddieM

Finish scripts are usually only used in image based provisioning with
SSH (not user data) and preseed network installations. Note that they
run on the provisioned host, not Foreman.

Typically though, you'd put those steps straight into the kickstart
%post section.

You could extend the kickstart to download and run the finish script in
a similar way to preseed if you like, see
https://github.com/theforeman/community-templates/blob/develop/preseed/provision.erb#L153
for the preseed equivalent.

··· On 17/03/16 09:55, Eddie Mashayev wrote: > Hi All, > > I've foreman 1.10 running on CentOS6.7 > > When trying to install new CentOS 6\7 the installation is finish > successfully but the finish script is not being run at all. > > > > In my case this is "Send mail" but even using the default finish script > or just some bash script it's not working. > How can I debug it? What can be the issue here?


Dominic Cleal
dominic@cleal.org

Thank for the clarification.

EddieM

··· On Thursday, March 17, 2016 at 11:59:55 AM UTC+2, Dominic Cleal wrote: > > On 17/03/16 09:55, Eddie Mashayev wrote: > > Hi All, > > > > I've foreman 1.10 running on CentOS6.7 > > > > When trying to install new CentOS 6\7 the installation is finish > > successfully but the finish script is not being run at all. > > > > < > https://lh3.googleusercontent.com/-oAqTKWtrbVM/Vup-jUfrvZI/AAAAAAAAhKk/CwwNPcZ8HkkPSL-xlExPIEeO2ZV3Wslzw/s1600/image.GIF> > > > > > In my case this is "Send mail" but even using the default finish script > > or just some bash script it's not working. > > How can I debug it? What can be the issue here? > > Finish scripts are usually only used in image based provisioning with > SSH (not user data) and preseed network installations. Note that they > run on the provisioned host, not Foreman. > > Typically though, you'd put those steps straight into the kickstart > %post section. > > You could extend the kickstart to download and run the finish script in > a similar way to preseed if you like, see > > https://github.com/theforeman/community-templates/blob/develop/preseed/provision.erb#L153 > for the preseed equivalent. > > -- > Dominic Cleal > dom...@cleal.org >