epcim
11/24/2016 - 11:14 AM

deb local reposository pinning pin repo

deb local reposository pinning pin repo

cd /var/www/html/contrail_repo && rm -rf db dists pool && cd /var/www/html && \
for DEB in pkgs/*.deb; do 
  reprepro -b /var/www/html/contrail_repo includedeb trusty $DEB; 
done
exit $?

## List repo labels etc..
cd /var/lib/apt/lists
head -7 mirror*Release

## Pinning
### /etc/apt/preferences.d/contrail.pref
Package: *                         
Pin: release l=Local Contrail, s=XXX, o=Contrail                              
Pin-Priority: 200                  

### Salt model
pin:
          - pin: 'release s=mos8.0, l=mos8.0, o=Mirantis'
            priority: 1000
            package: '*'