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

Add extension .sls or .yml to pillar.example #61

Open
myii opened this issue Feb 28, 2019 · 11 comments
Open

Add extension .sls or .yml to pillar.example #61

myii opened this issue Feb 28, 2019 · 11 comments

Comments

@myii
Copy link
Member

myii commented Feb 28, 2019

Suggested by @getSurreal on our Slack/IRC/Matrix room from here:

22:47onslack
@myii With all the changes going on in template-formula, has anyone discussed renaming pillare.example to something like pillare_example.sls or .yml or something that will be recognized in an IDE?
22:48myii[m]
No-one has discussed that.
22:49myii[m]
Usually, you can set your IDE to recognise the file type.
22:53onslack
Of course that's true, just seems like an unnecessary workaround
22:58onslack
never even considered it :P_if_ you decide that it's worth, then I'd vote for pillar.example.yaml?
23:17onslack
@getSurreal Having thought about it, I think you're absolutely right. Why should anyone have to make any changes from their end? It should work out of the box.
23:17onslack
@javierbertoli Since all of the pillars end up as .sls files, shouldn't that be pillar.example.sls?
23:18onslack
@getSurreal Can you submit a PR or even an issue? You've got my backing and @javierbertoli's -- it's really just a matter of .yaml vs. .yml vs. .sls.
23:30onslack
@myii didn't thought about the pillars' extension, just the content of the file :-)Any extension that make sense has my vote, so I'm ok with pillar.example.sls too

@getSurreal
Copy link

@myii sorry I dropped off the slack feed and missed your request to create an issue.

I did have another thought on this. Isn't a '.' in the name bad form because salt interprets that as a directory. I prefer .sls since that's the correct extension for pillar files.

pillarexample.sls
pillar_example.sls
pillar-example.sls ( I'm leaning towards this one )

@myii
Copy link
Member Author

myii commented Feb 28, 2019

@getSurreal Since this file isn't processed by Salt, I'm easy either way. This is a file rename in any case, so the final naming can be locked down when reviewing the PR. I'm good with pillar-example.sls as well. Are you happy to submit the PR?

@getSurreal
Copy link

I understand the file isn't processed by Salt, but if it's bad form it sets a bad example.
I have no problem submitting a PR. I just thought I would wait a little for additional comments

@myii
Copy link
Member Author

myii commented Feb 28, 2019

We've already got some "bad examples" in the repo, albeit configuration files... commitlint.config.js and release.config.js, I'm looking at you! I know they're not directly related to Salt but just saying.

Anyway, a PR will definitely get more attention than an issue and it'll get out there quicker. This is a simple change so I propose that we collect the discussions there, if that's OK with you.

@getSurreal
Copy link

would docs(pillar): be the correct title?

@myii
Copy link
Member Author

myii commented Feb 28, 2019

Yes, that sounds right in this situation.

@myii
Copy link
Member Author

myii commented Feb 28, 2019

@getSurreal Hmm, we might have a problem renaming this file. As I was writing the last comment, I started out by writing refactor. It reminded me that I'd seen pillar.example used in Kitchen tests. So I did a little search:

So we've got it used in Kitchen tests but also in Dockerfile files and some shell scripts. It appears to be a convention that's relied upon. So at least we can cover that discussion point.

If you prefer to do that here rather than a PR, that's fine as well.

@getSurreal
Copy link

getSurreal commented Feb 28, 2019

@myii I was aware of the change needed in kitchen.yml and included it in my PR, but I was not aware of the Docker changes needed. #62

@myii
Copy link
Member Author

myii commented Feb 28, 2019

@getSurreal Not a problem, it would be good to have this discussion in any case. Nothing is set in stone and it will give us a chance to explore moving towards the future with SaltStack Formulas. Thanks for the PR, we'll continue the discussion there.

@aboe76
Copy link
Member

aboe76 commented Feb 28, 2019 via email

@noelmcloughlin
Copy link
Member

Could it be renamed from pillar.example to user.example as well? Some more friendly terminology.

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

No branches or pull requests

4 participants