arnisoph / formula-docs

Documentation and Standardisation of SaltStack formulas
19 stars 1 forks source link

Unable to install & use your formulas #3

Open mcassuto opened 9 years ago

mcassuto commented 9 years ago

Hi @bechtoldt ,

thx for these formuals ! Could you provide some guidances on how to use them:

1/ unable to find the logstash state unless I rename the state directory to logstash

2/ unable to get salt to know about formhelper; I get the error: "Rendering SLS 'base:logstash' failed: Jinja variable 'LazyLoader' object has no attribute 'formhelper.get_defaults' "

Here my salt config: gitfs_remotes:

file_roots: base:

Thanks a lot, Marc

mcassuto commented 9 years ago

@bechtoldt just for the record : his there an easy way to get it work quickly rather than waiting for the documentation enhancement ?

arnisoph commented 9 years ago

@mcassuto read https://github.com/bechtoldt/saltstack-sysctl-formula/issues/1 :)

mcassuto commented 9 years ago

for the records (any who will may encounter this issue), I ended up by renaming the states directory. and in my /etc/salt/master: file_roots: base:

@bechtoldt : I still get the error "Rendering SLS 'base:logstash' failed: Jinja variable 'LazyLoader' object has no attribute 'formhelper.get_defaults' "

What am I doing wrong ? (this was not cover in the other thread)

arnisoph commented 9 years ago

@mcassuto You need to make the directory _modules/ (from https://github.com/bechtoldt/salt-modules) available to Salt. Use Gitfs to mount the Git repository.

mcassuto commented 9 years ago

Still no chance:

restarted salt-master each time.... any idea ?

arnisoph commented 8 years ago

The Salt Package Manager might be a solution for this issue in the future. I think it's still in a very early state. I'll file some feature requests.. :)

https://github.com/saltstack/salt/issues/24896 (PR) https://github.com/saltstack/salt/issues/25210 https://github.com/saltstack/salt/issues/25211

https://docs.saltstack.com/en/develop/topics/spm/