- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Windows Reboots
- Date: Mon, 30 Mar 2015 07:42:50 -0700
Recent versions of Chef Client have a built-in reboot resource.
http://docs.chef.io/resource_reboot.html
--
Daniel DeLeo
On Monday, March 30, 2015 at 7:40 AM,
wrote:
>
Hi Simon.
>
>
What I see at the moment is to run recipe which creates scheduled 1 time
>
task which will run after reboot.
>
And in this task you will feed some batch file for changing PC name and
>
adding it into domain.
>
>
Regards,
>
Taras.
>
>
--- Оригінальне повідомлення ---
>
Від кого: "Simon Hawkins"
>
<
>
>
(mailto:
)>
>
Дата: 30 березня 2015, 17:19:12
>
>
> All,
>
>
>
>
>
>
>
>
>
> I have a recipe run as the following:
>
>
>
>
>
>
>
>
>
>
>
> 1. Change the machine name using a powershell script (which only applies
>
> the name after a reboot L)
>
>
>
>
>
>
>
>
>
> 2. Recipe to join the machine to the domain using the window_ad cookbook.
>
>
>
>
>
>
>
>
>
>
>
> Because both these recipes reboot, how do I get chef to wait for the box
>
> to have restarted before it runs the join domain recipe? Currently at the
>
> moment it tries to run it during the reboot and fails.
>
>
>
>
>
>
>
>
>
> Cheers,
>
>
>
>
>
> Simon.
>
>
>
>
>
>
>
> Disclaimer
>
> This message is intended only for the use of the person(s) ("Intended
>
> Recipient") to whom it is addressed. It may contain information which is
>
> privileged and confidential. Accordingly any dissemination, distribution,
>
> copying or other use of this message or any of its content by any person
>
> other than the Intended Recipient may constitute a breach of civil or
>
> criminal law and is strictly prohibited. If you are not the Intended
>
> Recipient, please contact the sender as soon as possible.
>
>
>
> Totaljobs Group Limited Registered Office: Bluefin Building, 110
>
> Southwark Street, London, SE1 0TA, UK Registered in England and Wales
>
> under company no. 4269861
Archive powered by MHonArc 2.6.16.