Pre-create ad computer object prior to domain join?

Good day,
We are working on provisioning from foreman. We can successfully create a
vm guest in Vsphere 6, join our active directory domain and within run once
install puppet agent on machine.

The problem we are having is we need to create the computer object in a
non-default ou as that ou is used by workstations in our environment.
Any suggestions to pre-create the computer object prior to join domain
through customization?

Unfortunately we realized run once occurs after customization which has
domain join as part of it so that will not work.
We will be using this for our Linux and Windows machines.

Any help or suggestions is appreciated.
Thank you

Jason

Have you looked at foreman-hooks?

https://github.com/theforeman/foreman_hooks

ยทยทยท On Thursday, February 23, 2017 at 7:55:21 AM UTC-5, Jason McMahan wrote: > > Good day, > We are working on provisioning from foreman. We can successfully create a > vm guest in Vsphere 6, join our active directory domain and within run once > install puppet agent on machine. > > The problem we are having is we need to create the computer object in a > non-default ou as that ou is used by workstations in our environment. > Any suggestions to pre-create the computer object prior to join domain > through customization? > > Unfortunately we realized run once occurs after customization which has > domain join as part of it so that will not work. > We will be using this for our Linux and Windows machines. > > Any help or suggestions is appreciated. > Thank you > > Jason >