Updated role using Multi-Distro framework

* Moved APT cache var to ubuntu-14.04 file
* Moved tags from cinder_install_apt.yml since they will be inherited
* Updated meta/main.yml dependencies to include apt_package_pinning
when ansible_pkg_mgr is apt.

Change-Id: I23163f783f3b6bce4b170236c46c163d8068b5e0
This commit is contained in:
Hector I Gonzalez 2016-03-30 14:57:07 -05:00
parent bd2e947e1f
commit 19bc27e893
5 changed files with 8 additions and 14 deletions

View File

@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
## APT Cache options
cache_timeout: 600
cinder_git_repo: https://git.openstack.org/openstack/cinder
cinder_git_install_branch: master

View File

@ -36,6 +36,8 @@ dependencies:
- role: pip_install
when:
- cinder_developer_mode | bool
- apt_package_pinning
- role: apt_package_pinning
when:
- ansible_pkg_mgr == 'apt'
- galera_client
- openstack_openrc

View File

@ -17,7 +17,8 @@
when:
- ansible_pkg_mgr == 'apt'
tags:
- install-apt
- cinder-install
- cinder-apt-packages
- name: Create developer mode constraint file
copy:

View File

@ -20,15 +20,11 @@
stat:
path: /var/cache/apt
register: apt_cache_stat
tags:
- cinder-apt-packages
- name: Update apt if needed
apt:
update_cache: yes
when: "ansible_date_time.epoch|float - apt_cache_stat.stat.mtime > {{cache_timeout}}"
tags:
- cinder-apt-packages
- name: Install apt packages
apt:
@ -39,9 +35,6 @@
retries: 5
delay: 2
with_items: cinder_apt_packages
tags:
- cinder-install
- cinder-apt-packages
- name: Install apt packages
apt:
@ -55,6 +48,3 @@
when:
- inventory_hostname in groups['cinder_volume']
- cinder_backend_lvm_inuse | bool
tags:
- cinder-install
- cinder-apt-packages

View File

@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
## APT Cache options
cache_timeout: 600
# Common apt packages
cinder_apt_packages:
- libpq-dev