- From: Kirill Timofeev <
>
- To: "
" <
>
- Subject: [chef] chef server 11 packages for ubuntu
- Date: Wed, 30 Jan 2013 11:51:49 -0800
Folks,
I created the following script to automatically download latest chef
server 11 ubuntu packages and add them to local repository:
#!/bin/bash
set -u -e
exec >> $0.log 2>&1
PLATFORM=ubuntu
PLATFORM_VERSION=12.04
ARCHITECTURE=x86_64
MAX_LOG_SIZE=1000000
PKG_URL="
http://www.opscode.com/chef/download-server?p=${PLATFORM}&pv=${PLATFORM_VERSION}&m=${ARCHITECTURE}&v=latest&prerelease=true&nightlies=true"
LOCATION_FILE=$HOME/chef-server-location
old_location=$(cat $LOCATION_FILE)
new_location=$(curl -sIL "$PKG_URL"|grep ^Location)
[ "$old_location" == "$new_location" ] && exit
echo "$(date) started"
wget -nv --content-disposition "$PKG_URL"
mv chef-server_11*.deb /var/www/deb-box/incoming/precise/testing
echo "$new_location" >$LOCATION_FILE
echo "$(date) completed"
(($(stat -c %s $0.log) > $MAX_LOG_SIZE)) && mv $0.log $0.log.old
During last 3 days this script downloaded the following files:
chef-server_11.0.0-alpha.3+20130130075202.git.38.3332a80-1.ubuntu.11.04_amd64.deb
chef-server_11.0.0-alpha.3+20130128075214.git.37.d143b92-1.ubuntu.12.04_amd64.deb
chef-server_11.0.0-alpha.3+20130129075201.git.38.3332a80-1.ubuntu.11.04_amd64.deb
chef-server_11.0.0-alpha.3+20130129051708.git.38.3332a80-1.ubuntu.12.04_amd64.deb
Do I understand correctly that 11.04 in the name corresponds to ubuntu
version this package is intended for? If yes looks like setting pv
parameter doesn't work as expected. May I ask somebody aware of details
clarify this?
Thanks,
Kirill.
- [chef] chef server 11 packages for ubuntu, Kirill Timofeev, 01/30/2013
Archive powered by MHonArc 2.6.16.