user - A user name or user ID that we should change to before running this command.flags - command line flags to pass to the interpreter when invoking.cwd - current working directory to run the command from.creates - a file this command creates - if the file exists, the command will not be run.code - quoted string of code to execute.Use the not_if or only_if meta parameters to guard the resource for idempotence. ![]() By their nature, Script resources are not idempotent, as they are completely up to the user's imagination. A temporary file is created and executed like other script resources, rather than run inline. Chef >= 11.6.0 includes a built-in batch resource.Įxecute a batch script using the cmd.exe interpreter (much like the script resources for bash, csh, powershell, perl, python and ruby). This resource is now deprecated and will be removed in a future version of this cookbook. program - The program to be run at loginĪrgs ' \' C:/Sysinternals/Config.bgi \' /NOLICPROMPT /TIMER:0 '.The name of the value to be stored in the registry :remove - Remove an item that was previously setup to run at login.:create - Create an item to be run at login.Resource/Provider windows_auto_run Actions The value of this attribute only has an effect if the windows::reboot_handler is in a node's run list. default is false (ie reboot only after successful runs). node - used to register the WindowsRebootHandler (via the windows::reboot_handler recipe) as an exception handler too to act on reboots not only at the end of successful Chef runs, but even at the end of failed runs. ![]() default is true (ie act on pending reboots). node - used to configure the WindowsRebootHandler (via the windows::reboot_handler recipe) to act on pending reboots. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |