user3272380
user3272380

Reputation: 35

Can top.sls be changed using any salt commands/modules

or it can only be edited manually using text editor?

Upvotes: 0

Views: 79

Answers (1)

Utah_Dave
Utah_Dave

Reputation: 4581

There are no internal functions to modify your top.sls

The top file is yaml, so you could dynamically create a data structure in python or your favorite programming language and output that structure to your top.sls.

There is also the master tops system, which allows you to dynamically create your top data.

http://docs.saltstack.com/en/latest/topics/master_tops/index.html

Upvotes: 0

Related Questions