Page MenuHomeDevCentral

Compile and dump a Pure python state file
ClosedPublic

Authored by dereckson on Oct 17 2018, 16:37.
Tags
None
Referenced Files
F6607161: D1938.id4905.diff
Sat, Apr 5, 08:23
F6607094: D1938.id4906.diff
Sat, Apr 5, 08:18
F6601343: D1938.diff
Sat, Apr 5, 01:00
Unknown Object (File)
Fri, Apr 4, 02:08
Unknown Object (File)
Fri, Apr 4, 01:08
Unknown Object (File)
Fri, Apr 4, 01:08
Unknown Object (File)
Fri, Apr 4, 00:43
Unknown Object (File)
Fri, Mar 28, 05:49
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 Passed
Unit
No Test Coverage
Branch
dumper (branched from master)
Build Status
Buildable 3022
Build 3270: arc lint + arc unit

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.