From 8d53d3d6e43fa7a31057165a80ccb264b0d85bec Mon Sep 17 00:00:00 2001 From: junxiawang Date: Thu, 10 Dec 2015 09:06:28 -0500 Subject: [PATCH] modify ubuntu os other pkg --- .../additionalpkg/ubuntu_os_other_pkg.rst | 54 +------------------ 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/ubuntu_os_other_pkg.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/ubuntu_os_other_pkg.rst index d3553d4ba..56aebccbd 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/ubuntu_os_other_pkg.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/ubuntu_os_other_pkg.rst @@ -32,57 +32,5 @@ Run ``updatenode -P`` otherpkgs to **install/update** the packages on the comput Compute nodes can not access the internet ------------------------------------------ -If compute nodes cannot access the internet, there are two ways to install additional packages:use apt proxy or use local mirror; - -option 1: Use apt proxy -~~~~~~~~~~~~~~~~~~~~~~~ - -Step 1: Install **Squid** on the server which can access the internet (Here uses management node as the proxy server):: - - apt-get install squid - -Step 2: Edit the **Squid** configuration file **/etc/squid3/squid.conf**, find the line **"#http_access deny to_localhost"**. Add the following 2 lines behind this line.:: - - acl cn_apt src / - http_access allow cn_apt - -For more refer Squid configuring. - -Step 3: Restart the proxy service :: - - service squid3 restart - -Step 4: Create a postscript under **/install/postscripts/** directory, called aptproxy, add following lines :: - - #!/bin/sh - PROXYSERVER=$1 - if [ -z $PROXYSERVER ];then - PROXYSERVER=$MASTER - fi - - PROXYPORT=$2 - if [ -z $PROXYPORT ];then - PROXYPORT=3128 - fi - - if [ -e "/etc/apt/apt.conf" ];then - sed '/^Acquire::http::Proxy/d' /etc/apt/apt.conf > /etc/apt/apt.conf.new - mv -f /etc/apt/apt.conf.new /etc/apt/apt.conf - fi - echo "Acquire::http::Proxy \"http://${PROXYSERVER}:$PROXYPORT\";" >> /etc/apt/apt.conf - -Step 5: add this postscript to compute nodes, the **[proxy server ip]** and **[proxy server port]** are optional parameters for this postscript. If they are not specified, xCAT will use the management node ip and 3128 by default. :: - - chdef -p postscripts="aptproxy [proxy server ip] [proxy server port]" - -Step 6: Edit the otherpkglist file, add the require software packages' name. - -Step 7: Edit the otherpkgdir attribute for os image object, can use the internet repositories directly. - -Step 8: Run ``nodeset``, ``rsetboot``, rpower commands to provision the compute nodes. - -Optional 2: Use local mirror -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -To do will add link +If compute nodes cannot access the internet, there are two ways to install additional packages:use apt proxy or use local mirror to do will add link ;