Page MenuHomeDevCentral

Compile and dump a Pure python state file
ClosedPublic

Authored by dereckson on Oct 17 2018, 16:37.
Tags
None
Referenced Files
F2964155: D1938.id4905.diff
Sat, May 18, 22:08
Unknown Object (File)
Tue, May 14, 13:12
Unknown Object (File)
Tue, May 14, 13:12
Unknown Object (File)
Mon, May 13, 23:31
Unknown Object (File)
Mon, May 13, 07:55
Unknown Object (File)
Sat, May 11, 10:36
Unknown Object (File)
Fri, May 10, 09:21
Unknown Object (File)
Fri, May 10, 02:48
Subscribers
None

Details

Summary

Salt allows to write formula files in different format,
including pure Python (#!py) code.

This code must have a run method, which returns a dictionary
of the states to execute.

This script allows to print a YAML representation of such dictionary.

Known issues

It only loads the pillar, other __ variables would cause the script to fail.

Test Plan

See D1937 for a sample run.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
dereckson edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Oct 17 2018, 16:41
This revision was automatically updated to reflect the committed changes.