From b7c3e9332100e84653bb405bf35c07cd9309d04e Mon Sep 17 00:00:00 2001 From: junxiawang Date: Wed, 9 Dec 2015 04:18:48 -0500 Subject: [PATCH] modify the ubuntu other pkg doc --- .../additionalpkg/ubuntu_os_other_pkg.rst | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 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 94b8b6d6a..0d1aa7121 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 @@ -1,40 +1,41 @@ -Installing other packages with Ubuntu official mirror -===================================================== +Install Additional Other Packages with Ubuntu official mirror +============================================================== -The Ubuntu iso is being used to install the compute nodes only include packages to run a base operating system, it is likely that users will need to install additional Ubuntu packages from the internet Ubuntu repo or local repo, this section describes how to install additional Ubuntu packages. +The Ubuntu ISO used to install the compute nodes only include packages to run a minimal base operating system, it is likely that users will want to install additional Ubuntu packages from the internet Ubuntu repositories or local repositories, this section describes how to install additional Ubuntu packages. -A1: Compute nodes can access the internet ------------------------------------------ +Compute nodes can access the internet +------------------------------------- -step1: Specify the repository +#. : Specify the repository -Use the internet repository directly when define the otherpkgdir attribute: :: +Use the internet repository directly when defining the ** otherpkgdir ** attribute: :: - chdef -t osimage otherpkgdir="http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main,http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc)-update main" + chdef -t osimage otherpkgdir="http://us.archive.ubuntu.com/ubuntu/ \ + $(lsb_release -sc) main,http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc)-update main" -step2: Specify otherpkglist file +#. : Specify the otherpkglist file create an otherpkglist file,**/install/custom/install/ubuntu/compute.otherpkgs.pkglist**. Add the packages' name into thist file. And modify the otherpkglist attribute for osimage object. :: chdef -t osimage otherpkglist=/install/custom/install/ubuntu/compute.otherpkgs.pkglist -step3: Run ``updatenode -S`` or ``updatenode -P otherpkgs`` +#. : Run ``updatenode -S`` or ``updatenode -P otherpkgs`` Run ``updatenode -S`` to **install/update** the packages on the compute nodes :: - updatenode -S + updatenode -S -Run ``updatenode`` otherpkgs to **install/update** the packages on the compute nodes :: +Run ``updatenode -P`` otherpkgs to **install/update** the packages on the compute nodes :: - updatenode -P otherpkgs + updatenode -P otherpkgs -A2: Compute nodes can not access the internet ----------------------------------------------- +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; -optional 1: Use apt proxy -~~~~~~~~~~~~~~~~~~~~~~~~~ +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)::