diff --git a/devstack.yml b/devstack.yml index f3f642d..fd05c47 100644 --- a/devstack.yml +++ b/devstack.yml @@ -35,6 +35,8 @@ - name: apt-get update apt: update_cache=yes ignore_errors: true + - name: Install virtualenv + apt: name=python-virtualenv tasks: - name: Setup the monasca cli credentials in the default environment copy: src=tests/env.sh dest=/etc/profile.d/monasca_cli.sh owner=root group=root mode=0644 diff --git a/mini-mon.yml b/mini-mon.yml index ad11af8..e0769f5 100644 --- a/mini-mon.yml +++ b/mini-mon.yml @@ -12,6 +12,8 @@ pre_tasks: - name: apt-get update apt: update_cache=yes + - name: Install virtualenv + apt: name=python-virtualenv tasks: - name: Install postfix, needed by notification engine apt: name=postfix state=present @@ -71,7 +73,7 @@ tags: - cli - name: Update cli - pip: name=python-monascaclient state=latest + pip: name=python-monascaclient state=latest virtualenv="{{monasca_virtualenv_dir}}" tags: - cli roles: