From 9901bb7d1984b00691a13ab5f71fed8067f3c53a Mon Sep 17 00:00:00 2001 From: Igor Gajsin Date: Fri, 23 Sep 2016 18:17:53 +0300 Subject: [PATCH] add explicit apt preferences Change-Id: I71b4e33790deb62010c0aaa30b0f7345028ce178 --- deployment_scripts/puppet/manifests/install.pp | 11 +++++++++++ .../manila_auxiliary/files/fuel-plugin-manila.pref | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 deployment_scripts/puppet/modules/manila_auxiliary/files/fuel-plugin-manila.pref diff --git a/deployment_scripts/puppet/manifests/install.pp b/deployment_scripts/puppet/manifests/install.pp index 8d27e2f..b97d662 100644 --- a/deployment_scripts/puppet/manifests/install.pp +++ b/deployment_scripts/puppet/manifests/install.pp @@ -30,10 +30,21 @@ package {'python-manila-ui': class {'::manila_auxiliary::fs': } +file {'/etc/apt/preferences.d/fuel-plugin-manila.pref': + source => 'puppet:///modules/manila_auxiliary/fuel-plugin-manila.pref', + owner => 'root', + group => 'root' +} + +class {'::apt::update': } + + Package['python-pip']-> Package['python-dev']-> Package['python-pymysql']-> Package['pycrypto']-> +File['/etc/apt/preferences.d/fuel-plugin-manila.pref']-> +Class['::apt::update']-> Package['python-manila']-> Package['python-manilaclient']-> Package['python-manila-ui'] diff --git a/deployment_scripts/puppet/modules/manila_auxiliary/files/fuel-plugin-manila.pref b/deployment_scripts/puppet/modules/manila_auxiliary/files/fuel-plugin-manila.pref new file mode 100644 index 0000000..4c8d0ec --- /dev/null +++ b/deployment_scripts/puppet/modules/manila_auxiliary/files/fuel-plugin-manila.pref @@ -0,0 +1,5 @@ +# This file is managed by Puppet. DO NOT EDIT. +Explanation: fuel-plugin-manila +Package: * +Pin: release a=fuel-plugin-manila, n=fuel-plugin-manila, o=Mirantis, l=fuel-plugin-manila +Pin-Priority: 1250