-
Notifications
You must be signed in to change notification settings - Fork 135
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
PMM-12530 run supervisor as non root #2643
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v3 #2643 +/- ##
==========================================
+ Coverage 43.30% 43.32% +0.01%
==========================================
Files 361 361
Lines 42323 42323
==========================================
+ Hits 18329 18337 +8
+ Misses 22447 22440 -7
+ Partials 1547 1546 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
65d5f14
to
71e32c6
Compare
eff2e66
to
b6acd98
Compare
29cd3cc
to
dbfa806
Compare
ba3abef
to
9958160
Compare
9958160
to
f9ada73
Compare
@@ -179,8 +179,8 @@ | |||
} | |||
|
|||
# Swagger UI | |||
rewrite ^/swagger/swagger.json$ /swagger.json permanent; | |||
rewrite ^(/swagger)/(.*)$ /swagger permanent; | |||
rewrite ^/swagger/swagger.json$ $scheme://$http_host/swagger.json permanent; |
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.
nginx was trying to connect to port :8080 otherwise :)
- name: Remove the default nginx config files | ||
file: | ||
path: /etc/nginx/*.default | ||
path: "{{ item }}" |
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.
Ansible's file
module doesn't work with patterns :|
ff6bc21
to
769479a
Compare
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.
Outstanding work!
docker run --rm -v ${HOME}/.aws:/root/.aws -v `pwd`:/build -w /build hashicorp/packer:${PACKER_VERSION} \ | ||
build -var 'pmm_client_repos=original testing' \ | ||
-var 'pmm_client_repo_name=percona-testing-x86_64' \ | ||
sed -i 's|become_method: su|become_method: sudo|g' ./roles/postgres/tasks/main.yml && \ |
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.
not related to PR: why do we need these seds? don't we have this kind of logic in ansible?
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.
nevermind, anyway it will be dropped
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.
I didn't much know what to do with the seds, so just ended up updating the paths.
We needed these seds because in AMI we have to use sudo
instead of su
.
Now it will be a totally different story, as you mentioned )
check: ## Run required checkers and linters | ||
ansible-playbook --syntax-check ansible/pmm-docker/update.yml | ||
ansible-playbook --check ansible/pmm-docker/update.yml | ||
ansible-lint ansible/pmm-docker/update.yml |
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.
👍🏼
PMM-12530
Link to the Feature Build: SUBMODULES-3462
With this PR we:
/build/ansible
directory located in the root of this repopmm
user (it has a number of implications, we'll detail them in the documentation when releasing)