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

Documentation doesn't clearly explain how to create a custom salt state. #1634

Closed
raulillo82 opened this issue Jun 29, 2022 · 8 comments
Closed
Labels
docs backlog In the docs backlog

Comments

@raulillo82
Copy link
Contributor

https://documentation.suse.com/suma/4.3/en/suse-manager/specialized-guides/salt/salt-custom-states.html
(applies to the similar url for Uyuni).

Following the procedure didn't allow to run a custom salt state.

@vzhestkov
Copy link
Contributor

Not sure if I understand right what you mean. What did you try to do?

@raulillo82
Copy link
Contributor Author

Most of my knowledge of salt (or at least what it is needed to create a custom state) is forgotten. As I needed to test one quickly, I tried to follow the steps in this documentation, but it ended with errors. Will try to post more after hackweek.

@juliogonzalez
Copy link
Member

@vzhestkov TBH, I was not able to understand it either.

At step 6 there is:

In the SLS Contents field, type the contents of your init.sls state. If you want to reference file templates in this configuration channel, ensure your file starts by specifying the source of the managed file, using this syntax:

As we didn't want any file templates, we just wrote:

file.managed:
  - name: /tmp/blah
  - content:
    - blah

But that didn't work, the highstate crashed.

I hope @raulillo82 can still provide the error. I don't have it.

@keichwa keichwa added the docs backlog In the docs backlog label Jul 18, 2022
@keichwa
Copy link
Contributor

keichwa commented Oct 17, 2022

Can one of you provide positive feedback? @raulillo82 or @vzhestkov .

@vzhestkov
Copy link
Contributor

For me it was not clear what was the problem @raulillo82 found, I would check first what was the error. The documentation section looks fine for me, but the customers always complain that it's not clear what should they write as a state. Not sure how to give the proper answer for it: any valid state will work :-)

@0rnela
Copy link
Contributor

0rnela commented Dec 22, 2022

@raulillo82 -- can you please confirm if this is still an issue?

@raulillo82
Copy link
Contributor Author

I'm afraid I can't follow up on this, should I have something more detailed about this, I'll come back but meanwhile feel free to close it.

@0rnela
Copy link
Contributor

0rnela commented Mar 18, 2024

Closing as per previous comment.

@0rnela 0rnela closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs backlog In the docs backlog
Projects
None yet
Development

No branches or pull requests

5 participants