Scheduled Jobs for scripts available?


#1

Hi there,

Complete noobie here. If this post does not belong here please feel free to remove it.

Does Habitat have the capabilities of running scripts during scheduled times? Like a job scheduler?

For example would it be possible to have a script scheduled to run every week on lets say Monday at 12 noon. This script would be ran on a windows server, written in powershell, and uses a service account to access some SQL databases to perform queries.

The purpose is to avoid using a scheduled task on a windows server and have it ran on said server, but instead a server used by the chef suite (if possible).


#2

Habitat doesn’t have anything built into itself to do this, but you could create a simple service (think cron in a Habitat package) that could do this.