Hacker News new | ask | show | jobs
by xenophonf 1366 days ago
Stuff like this is how I created a very quick-and-dirty SaltStack module for AD Federation Services:

https://github.com/irtnog/salt-states/blob/production/_modul...

The SaltStack module starts out empty except for a function that runs at module load time. The initialization function queries PowerShell for all AD FS-related cmdlets and creates Python wrapper functions for them. It even copies the cmdlet's help to the function's docstring.