Merge lp:~suligap/canonical-identity-provider/charm-ansible-become-instead-of-sudo into lp:~ubuntuone-pqm-team/canonical-identity-provider/charm

Proposed by Przemysław Suliga
Status: Merged
Approved by: Daniel Manrique
Approved revision: 93
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: lp:~suligap/canonical-identity-provider/charm-ansible-become-instead-of-sudo
Merge into: lp:~ubuntuone-pqm-team/canonical-identity-provider/charm
Diff against target: 13 lines (+2/-1)
1 file modified
charm.mk (+2/-1)
To merge this branch: bzr merge lp:~suligap/canonical-identity-provider/charm-ansible-become-instead-of-sudo
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+384500@code.launchpad.net

Commit message

Move to become and become_user Ansible directives

To post a comment you must log in.
Revision history for this message
Przemysław Suliga (suligap) wrote :

I don't really have experience with Ansible.

But looking at the failing job:

> ERROR! conflicting action statements: sudo_user, sudo

And the fact that is uses Ansible 2.9.9 to run the tests, I assume we are on this recent version of Ansible (not just for the tests). I've looked at https://docs.ansible.com/ansible/latest/user_guide/become.html to find that sudo* directives are deprecated and become and become_user are now in place.

Revision history for this message
Daniel Manrique (roadmr) wrote :

+1, let's try with the pinning in place.

review: Approve
Revision history for this message
Otto Co-Pilot (otto-copilot) wrote :
93. By Przemysław Suliga

Pin setuptools to the last Python 2 compatible version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charm.mk'
2--- charm.mk 2019-08-15 21:49:05 +0000
3+++ charm.mk 2020-05-25 15:21:39 +0000
4@@ -130,7 +130,8 @@
5 # consistently after April 2018 due to
6 # https://packaging.python.org/guides/migrating-to-pypi-org/.
7 @$(PIP) install --upgrade pip
8- @$(PIP) install cryptography==2.0 ansible flake8
9+ # Pin setuptools to the last Python 2 compatible version.
10+ @$(PIP) install cryptography==2.0 ansible==2.0.0.2 flake8 "setuptools<45"
11 @[ -f requirements.txt ] && $(PIP) install -r requirements.txt || true
12
13 $(CHARM_HELPERS_SYNC):

Subscribers

People subscribed via source and target branches