Skip to content

Instantly share code, notes, and snippets.

@caiush
Created April 27, 2015 18:01
Show Gist options
  • Save caiush/0c400d4b5d0402d745f1 to your computer and use it in GitHub Desktop.
Save caiush/0c400d4b5d0402d745f1 to your computer and use it in GitHub Desktop.
aptly config
rew search aptly
brew install aptly
brew install gpg
brew install wget
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys 437D05B5
aptly -architectures="amd64" -with-udebs=true mirror create precise-main-udeb http://us.archive.ubuntu.com/ubuntu precise
aptly mirror update precise-main-udeb
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys 17ED316D
aptly -architectures="amd64" mirror create ceph-firefly http://ceph.com/debian-firefly precise main
aptly -architectures="amd64" mirror create ceph-extras http://ceph.com/packages/ceph-extras/debian/ precise main
aptly -architectures="amd64" mirror create lib=apache-mod http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-precise-x86_64-basic/ref/master precise main
aptly mirror create apache2 http://gitbuilder.ceph.com/apache2-deb-precise-x86_64-basic/ref/master/ precise main
# percona
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys CD2EFD2A
aptly -architectures="amd64" mirror create percona http://repo.percona.com/apt precise main
#haproxy
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys 1C61B9CD
aptly -architectures="amd64" mirror create haproxy http://ppa.launchpad.net/vbernat/haproxy-1.5/ubuntu precise main
#hwraid
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys 23B3D3B4
aptly -architectures="amd64" mirror create hwraid http://hwraid.le-vert.net/ubuntu precise main
# openstack
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys EC4926EA
aptly -architectures="amd64" mirror create openstack-updates http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/icehouse main
# treasure data
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys A12E206F
aptly -architectures="amd64" mirror create treasure http://packages.treasure-data.com/precise precise contrib
# rabbit
gpg --no-default-keyring --keyring trustedkeys.gpg --keyserver keys.gnupg.net --recv-keys 056E8E56
aptly -architectures="amd64" mirror create rabbitmq http://www.rabbitmq.com/debian testing main
set -e
for mm in apache2 ceph-extras ceph-firefly haproxy libapache-mod-fastcgi openstack-proposed openstack-updates percona precise-main-udeb rabbitmq treasure
do
aptly mirror update $mm
done
for ii in `aptly mirror list -raw`; do aptly snapshot create try-$ii from mirror $ii; done
aptly snapshot merge -no-remove=true bcpc-repo try-precise-main-udeb try-ceph-extras try-ceph-firefly try-apache2 try-libapache-mod-fastcgi try-haproxy try-openstack-proposed try-openstack-updates try-percona try-rabbitmq try-treasure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment