-
Notifications
You must be signed in to change notification settings - Fork 6
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
exclude grafana-4.6.* in tendrl_unit_test_setup.yml #168
Conversation
because tendrl-monitoring-integration depends on "grafana < 4.5.3"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I have just a question.
- name: "WORKAROUND - exclude=grafana-4.6.*" | ||
lineinfile: | ||
path: '/etc/yum.conf' | ||
line: 'exclude=grafana-4.6.*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to preserve content of exclude
variable so it would not break any usage with other playbooks that also set this variable (maybe for future work, we don't have anything like that now)? Maybe something like:
lineinfile:
path: '/etc/yum.conf'
regexp: '^exclude=(.*)'
line: 'exclude=\1 grafana-4.6.*'
backrefs=True
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fbalak Good point, let me try if it will do what we expect...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be not so easy to accomplish this request, so I would keep it in the original shape, as it shouldn't break anything in this particular scenario (it is used on each time freshly installed machine). And still I'm considering it just as a Workaround.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then I approve it.
- name: "WORKAROUND - exclude=grafana-4.6.*" | ||
lineinfile: | ||
path: '/etc/yum.conf' | ||
line: 'exclude=grafana-4.6.*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then I approve it.
because tendrl-monitoring-integration depends on "grafana < 4.5.3"
Fixing issue with preparation of test server for package validation (for example: https://ci.centos.org/view/tendrl-build-release/job/tendrl-pkgval-X-release-prepare/)