Skip to content

Repository URL in pillar#9

Open
SndR85 wants to merge 4 commits into
saltstack-formulas:masterfrom
SndR85:master
Open

Repository URL in pillar#9
SndR85 wants to merge 4 commits into
saltstack-formulas:masterfrom
SndR85:master

Conversation

@SndR85

@SndR85 SndR85 commented May 30, 2016

Copy link
Copy Markdown

No description provided.

@wwentland

Copy link
Copy Markdown

I like your commit, but could you translate your commit message to English? As a native German speaker I can read it, but other people might not be so furtunate :)

@SndR85

SndR85 commented May 30, 2016

Copy link
Copy Markdown
Author

I have changed my commit. I also updated the example.pillar.

@wwentland

Copy link
Copy Markdown

Thank you for your changes! One thing met my eye, though.

Where do you set the defaults for logstash_forwarder.repo.gpgurl and logstash_forwarder.repo.url ? It looks as if users would have to set it in their pillar in order to keep using the state.

It would be nice if users were given the ability to override those values in, for example, logstash_forwarder:lookup:repo_url and logstash_forwarder:lookup:repo_key_url (with a lookup for logstash_forwarder:repo_url and logstash_formwarder:repo_key_url in the state). You might therefore like to set these in the map.jinja file.

Furthermore this change might make sense for both Debian and RedHat type repositories.

Thanks a lot for your effort, much appreciated!

@SndR85

SndR85 commented May 30, 2016

Copy link
Copy Markdown
Author

You're right. I did set the defaults in map.jinja. Also I added gpgname to be variable.

'repo':
{
'gpgurl': 'http://packages.elasticsearch.org/GPG-KEY-elasticsearch',
'url': 'http://packages.elasticsearch.org/logstashforwarder/centos/',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indented differently unfortunately :(

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it's an added comma.

@wwentland

wwentland commented May 30, 2016

Copy link
Copy Markdown

Cool, thank you.. I found two other things (see my comments) of which I am not sure if they constitute a problem or not.

I'll look at this later.

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

Successfully merging this pull request may close these issues.

2 participants