Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install & use your formulas #3

Open
Tracked by #2
mcassuto opened this issue Jul 2, 2015 · 6 comments
Open
Tracked by #2

Unable to install & use your formulas #3

mcassuto opened this issue Jul 2, 2015 · 6 comments
Assignees
Labels

Comments

@mcassuto
Copy link

mcassuto commented Jul 2, 2015

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:
- /srv/salt
- /srv/formulas/fail2ban
- /srv/formulas/postgres-formula
- /srv/formulas/elasticsearch-formula
- /srv/formulas/kibana-formula
- /srv/formulas/logstash-formula

Thanks a lot,
Marc

@mcassuto
Copy link
Author

mcassuto commented Jul 2, 2015

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

@arnisoph
Copy link
Owner

arnisoph commented Jul 2, 2015

@mcassuto
Copy link
Author

mcassuto commented Jul 2, 2015

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:
- /srv/salt
- /srv/formulas/elasticsearch-formula
- /srv/formulas/kibana-formula
- /srv/formulas/logstash-formula
- /srv/formulas/rsyslog-formula
- /srv/formulas/bechtoldt-utils

@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
Copy link
Owner

arnisoph commented Jul 4, 2015

@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
Copy link
Author

Still no chance:

  • update saltstack to the very last version
  • gitfs setup and repo added in gitfs_remotes
  • tried also to clone the repo and add the directory into file_roots: base:
  • tried also to simply copy the _modules in the main file_root

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

@arnisoph
Copy link
Owner

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.. :)

saltstack/salt#24896 (PR)
saltstack/salt#25210
saltstack/salt#25211

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants