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

exclude grafana-4.6.* in tendrl_unit_test_setup.yml #168

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

dahorak
Copy link
Contributor

@dahorak dahorak commented Jan 9, 2018

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/)

because tendrl-monitoring-integration depends on "grafana < 4.5.3"
@dahorak dahorak changed the title WORKAROUND: exclude grafana-4.6.* in tendrl_unit_test_setup.yml exclude grafana-4.6.* in tendrl_unit_test_setup.yml Jan 9, 2018
Copy link
Contributor

@fbalak fbalak left a 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.*'
Copy link
Contributor

@fbalak fbalak Jan 9, 2018

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

Copy link
Contributor Author

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...

Copy link
Contributor Author

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.

Copy link
Contributor

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.*'
Copy link
Contributor

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.

@dahorak dahorak merged commit 714aa34 into usmqe:master Jan 9, 2018
@dahorak dahorak deleted the workaround-exclude-grafana-4.6 branch January 9, 2018 14:27
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.

3 participants