8月 012017
 

默认情况下,pillar信息是维护在文件中的,虽然方便,如果要自动化的话,就不太方便,如果能存到数据库会方便维护一些。

相关salt模块:https://docs.saltstack.com/en/latest/ref/pillar/all/index.html

将pillar信息存入mysql:

https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.mysql.html

其实,还有现成的模块可以将pillar信息存储mongodb、ldap、redis等

https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.pillar_ldap.html

 

https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.redismod.html

 

https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.postgres.html

https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.git_pillar.html

 Posted by at 上午 11:32