saltstack/salt — Issue #634: /srv/salt/_grains/ not documented
Author: loupgaroublond
Created: 2012-02-03 00:55:14+00:00
State: open

Re: IRC conversation comment from archtaku:

(01.47.17) ( archtaku) if you look at grains/core.py, you'll get an idea of how to write a grain, then you can put your custom grains in a dir called _grains in the
root of your "base" file environment and those grains will go out to the minions
(01.47.27) ( loupgaroublond) ah, thank you
(01.47.31) ( loupgaroublond) that's what i was trying to figure out too
(01.47.52) ( loupgaroublond) base meaning something in the pythonpath?
(01.48.01) ( archtaku) no, in the file_roots
(01.48.05) ( loupgaroublond) oh ok
(01.48.06) ( archtaku) see the salt-master config
(01.48.23) ( archtaku) /srv/salt I believe is the default
(01.48.29) ( archtaku) so it'd be /srv/salt/_grains

Please document how to add custom grains to the server.