Score:0

Calling an externally stored pillar from inside a pillar_root or sls file (top.sls or pillar_file_name.sls)

jp flag

I'm working on storing some sensitive data stored in my salt pillar files away, into an external DB (possibly Redis).

I could not help wondering if it is possible to request the externally stored data from within the pillar files, so that I can use the benefits of globbing in pillars.

Example, in my Redis DB, I store a key_value pair: mysql_pass: superSecretPassword

And inside my salt master, under pillar/top.sls, I do the following:

'minion_1':
  - mysql_pass: redis_db.get('mysql_pass')

This will return the value and assign it to mysql_pass, which will go on becoming an active pillar for minion_1.

Is this above all, possible? And if it is, is this a good idea to go this way (considering the fact that I have a lot of globbing being done in my pillar files)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.