~verterok/canonical-identity-provider/sso_keystone_v3

« back to all changes in this revision

Viewing changes to playbook.yaml

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Daniel Manrique
  • Date: 2022-07-20 11:26:43 UTC
  • mfrom: (104.1.2 sso-charm-virtualenv-galore)
  • Revision ID: otto-copilot@canonical.com-20220720112643-gl2tkcpq8tgkumuk
  Tweaks to make virtual environment provisioning work.
  
  - Specify virtualenv command with --no-download (avoids updating pip and setuptools on creation)
  - Update pip to use --no-index (does not support --no-download)
  - Use system packages (needed for e.g. pyyaml which is installed as a deb and not in the dependencies dir)


Merged from https://code.launchpad.net/~roadmr/canonical-identity-provider/sso-charm-virtualenv-galore/+merge/427122

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
      pip:
149
149
        requirements: "{{ current_dir }}/requirements.txt"
150
150
        virtualenv: "{{ venv }}"
151
 
        extra_args: "--no-index --no-download --find-links={{ wheel_dir }}"
 
151
        virtualenv_command: "/usr/bin/virtualenv --never-download"
 
152
        extra_args: "--no-index  --find-links={{ wheel_dir }}"
 
153
        virtualenv_site_packages: yes
152
154
      when: build_label != "" and payload.stat.exists
153
155
 
154
156
    - name: Write charm config