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

Adding Versioning, reflected in pillar.example #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

felix-russell
Copy link

No description provided.

@@ -5,5 +5,6 @@ include:
filebeat_install:
pkg.installed:
- name: filebeat
- version: {{ salt['pillar.get']('beats:filebeat:version', '6.1.2') }}
Copy link
Owner

Choose a reason for hiding this comment

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

Why not something like that?

[...]
{% if beats.filebeat.version is defined %}
- version: {{ salt['pillar.get']('beats:filebeat:version') }}
{% endif %}
[...]

If specified within the pillar, the version will be enforced. If not, the latest version of the package will be installed

@@ -5,5 +5,6 @@ include:
metricbeat_install:
pkg.installed:
- name: metricbeat
- version: {{ salt['pillar.get']('beats:metricbeat:version', '6.1.2') }}
Copy link
Owner

Choose a reason for hiding this comment

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

Why not something like that?

[...]
{% if beats.metricbeat.version is defined %}
- version: {{ salt['pillar.get']('beats:metricbeat:version') }}
{% endif %}
[...]

If specified within the pillar, the version will be enforced. If not, the latest version of the package will be installed

@@ -1,5 +1,6 @@
beats:
filebeat:
version: latest
Copy link
Owner

Choose a reason for hiding this comment

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

I think using latest as version could break pkg.installed state.

@@ -14,6 +15,7 @@ beats:
rotateeverybytes: 10485760
keepfiles: 7
metricbeat:
version: latest
Copy link
Owner

Choose a reason for hiding this comment

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

I think using latest as version could break pkg.installed state.

psmiraglia pushed a commit that referenced this pull request Apr 19, 2019
…ketbeat

Forgot to edit version and changelog file
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