
chef-client gem install does not honor .gemrc in time, so specify the http-proxy option explicitly. moreover, post-apt-config kickstart file has a syntax error, which is also fixed in the patch. Change-Id: Iadf78b6c0aff691e3f6824c20e906b75b681e848 Closes-bug: #1393967 Closes-bug: #1396948
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
cat << EOF > /etc/apt/apt.conf
|
|
#if $getVar('proxy', '') != ''
|
|
Acquire::http::Proxy "$proxy";
|
|
#end if
|
|
EOF
|
|
|
|
cat << EOF > /etc/apt/sources.list
|
|
#if $getVar('os_version', '') != ''
|
|
deb http://archive.ubuntu.com/ubuntu/ $os_version main restricted universe multiverse
|
|
deb http://archive.ubuntu.com/ubuntu/ ${os_version}-security main restricted universe multiverse
|
|
deb http://archive.ubuntu.com/ubuntu/ ${os_version}-updates main restricted universe multiverse
|
|
deb http://archive.ubuntu.com/ubuntu/ ${os_version}-proposed main restricted universe multiverse
|
|
deb http://archive.ubuntu.com/ubuntu/ ${os_version}-backports main restricted universe multiverse
|
|
#end if
|
|
#set $repo_data = $getVar("repo_data",[])
|
|
#for $repo in $repo_data
|
|
#for $dist in $repo.apt_dists
|
|
#set $comps = " ".join($repo.apt_components)
|
|
#if $repo.comment != ""
|
|
# ${repo.comment}
|
|
#end if
|
|
#if $repo.arch == "x86_64"
|
|
#set $rarch = "[arch=amd64]"
|
|
#else
|
|
#set $rarch = "[arch=%s]" % $repo.arch
|
|
#end if
|
|
#if $repo.mirror_locally
|
|
deb ${rarch} http://$http_server/cblr/repo_mirror/${repo.name} $dist $comps
|
|
#else
|
|
deb ${rarch} ${repo.mirror} $dist $comps
|
|
#end if
|
|
#end for
|
|
#end for
|
|
EOF
|