Previous Topic: Configuring External Debian Repositories in CA ITCMNext Topic: Setting Up Debian Mirror Repositories


Deploy Debian Packages Using Software Delivery

As a desktop support analyst, you can deploy Debian software packages on target Kubuntu computers using software delivery. Software deployment through software delivery lets you send software packages to any managed Debian computer and deploy them. The native Debian packages are not physically stored in CA ITCM; they are stored in the Debian master and mirror repositories. Hence deployment of Debian packages is different from the regular SD packages. The following diagram illustrates the steps that you perform to deploy Debian packages using software delivery:

Deploying Debian Packages Using Software Delivery

Perform the following tasks to deploy Debian packages using software delivery:

  1. Manage Sources.List from CA ITCM
  2. Create a Debian Wrapper Package
  3. Deploy a Debian Wrapper Package
  4. Verify Deployment

Back to Top

Manage Sources.List from CA ITCM

The Debian computers maintain a file named sources.list that contains the details of repositories, distributions, and components from which the packages can be obtained. To deploy Debian packages through software delivery, you must manage the sources.list from CA ITCM.

Follow these steps:

  1. Navigate to Control Panel, Configuration, Configuration Policy, Policy Name, DSM, Software Delivery, Shared, External Repositories, Debian, and double-click Sources on the right pane.

    Note: This configuration policy change must be applied to computers or group of computers that use a particular source repository. For example, you have a master repository and five mirror repositories. The mirror repositories are located in different offices for faster download. You want the computers in these offices to connect to the mirrors in the respective locations. In this case, you create five configuration policies. You then open each of them and configure the sources table with the mirror repository details for that location, and apply the policy to all the computers in that location.

  2. Provide the following details in the Sources table:

    Note: When the policy is applied on target computers with at least one row in the sources.list table, CA ITCM renames the original sources.list as sources.list.original.CADSM. It then creates a sources.list file and adds the information from the Sources table.

    Repository Name

    Specifies the repository name. The value in this field must match the Repository Name in the Repositories table; otherwise, software deployment can fail. Specify the details of only those repositories that the target computers must connect to.

    Repository Assignment

    Specifies how the host name for the repository is assigned.

    Static

    Specifies that the host name provided in the repository table must be used. This option is applicable only for master and mirror repositories and not to mirror templates.

    Dynamic

    Specifies that the host name of the repository is provided in the Dynamic Repository Host configuration policy under Control Panel, Configuration, Configuration Policy, Policy Name, DSM, Software Delivery, Shared, External Repositories, Debian. This option is only applicable for mirror templates.

    Note: Dynamic assignment is helpful when the target computer roams or moves. In this case, the host name and URI changes, but the distributions remain the same. The management of the assigned distributions is separated from the physical locations of the mirrors.

    Scalability Server

    Specifies that the host name of the repository is the scalability server. The host name value in the sources.list file is dynamically updated based on the scalability server of the target computer. This option is only applicable for mirror templates.

    Distribution

    Specifies the distribution that contains the packages that you want to deploy.

    Components

    Specifies the components that contain the packages that you want to deploy.

    Note: You can specify multiple components; separate the components with a space.

    Repository Format

    Specifies format of the Debian packages in the repository.

    Binary

    Specifies that the packages are in binary format. This format is equivalent to "deb" in sources.list that is.deb <URI> <DISTRIBUTIONS> <COMPONENTS>.

  3. (Optional) Add additional repositories, if the target computers have more than one source repository that they will connect to.
  4. (For Dynamic Repository Assignment only) Navigate back to External Debian Repository, Debian, and double-click Dynamic Repository Host. Specify the repository host name.

    Note: You can also define this parameter in the Default Configuration Policy of the domain managers. This action is helpful when the target computer moves from one manager to another. The target can automatically connect to the default repository host name configured for the new manager, without any additional configuration.

  5. Save and seal the policy. Apply the policy on the target computers to which the configuration applies.

    The configuration policy is pushed to the target computers.

  6. Navigate to All Computers, Computer Name, Configuration, Configuration Policy and verify that the policy has been applied and activated.
  7. (Optional) Log in to one of the target computers and verify that the sources.list file contains the sources you configured.

    The repository details are added to the sources.list file.

Back to Top

Create a Debian Wrapper Package

A Debian wrapper package includes references to native Debian software packages stored in an external Debian repository. You cannot directly deploy a native Debian software package using CA ITCM; you need wrapper packages.

Note: Though you can add multiple master and mirror repositories to the Repositories table, you can create wrapper packages only from the first (alphabetically) available master repository, whose package metadata has been extracted. For more information, see Extract Package Metadata from the Repository.

You can create a Debian wrapper package in one the following ways:

Follow these steps:

  1. Log in to DSM Web Console.
  2. Navigate to Software, Packages and click the software package group under which you want to create the wrapper package.

    A list of packages in the group is displayed.

  3. Click New Debian Wrapper Package in the Actions panel.

    Note: If you want to create a wrapper package based on an existing wrapper package, click New Based On on the Actions panel.

    The New Debian Wrapper Package wizard opens.

  4. Follow the instructions in the wizard to specify the pre-install actions, include Debian packages, configure Debconfig parameters, and specify post-install actions.
  5. Click Finish on the last page.

    The new Debian wrapper package is added to the list of registered software packages.

Note: If you want to edit the wrapper package, unseal it first and then click Edit on the Actions panel.

Back to Top

Deploy a Debian Wrapper Package

Deploying a Debian wrapper package on target computers sends a software job to the agent. The job then installs the software on the target computers at the scheduled time.

Verify the following prerequisites before you start the deployment:

Follow these steps to deploy a package from Web Console:

  1. Open the Web Console and navigate to Express Action.
  2. Click Install Software.
  3. Follow the instructions in the wizard and Click Finish on the last page.

Follow these steps to deploy a package from DSM Explorer:

  1. Open DSM Explorer and navigate to Computers and Users, All Computers and find the target computer on which you want to deploy the package.
  2. Right-click the target computer and select Software Jobs, Deploy Software Package.

    The Deploy Software Package Wizard appears.

  3. Follow the instructions in the wizard and click Finish on the last page.

The software job is sent to selected computers. At the scheduled time, the jobs download the Debian packages from the Debian repository that is defined in sources.list on the target computer and run the installer.

Back to Top

Debian Software Deployment Considerations

If you first install a version of a wrapper package on a target computer, and you later install another version of the same wrapper package on the same computer, the first version is uninstalled and all the packages in the second version installed.

If a native Debian package is part of more than one Debian wrapper package, and you deploy such Debian wrapper packages on the same target computer, the Debian package is installed or updated in both the deployment jobs. During the uninstallation procedure of one of the Debian Wrapper packages, the Debian packages that are uninstalled are checked. If they are referred in another Debian wrapper package, the uninstallation job completes without uninstalling the shared Debian package.

View the Configuration of Package Resource List

You can view the configuration of sources.list at the following inventory location:

Follow these steps:

  1. Navigate to Computers and Users, All Computers, debian computer, Inventory, System Status, Package Resource List.

    The Package Resource List configuration is viewed.

Verify Deployment

Verify the deployment to help ensure that the wrapper package is deployed successfully on the target computer.

Note: The Debian software installer does not return the success or failure message to CA ITCM. The status of the SD job only reflects the status of wrapper package deployment and not of the actual Debian software package.

Follow these steps:

  1. Open DSM Explorer and navigate to Computers and Users, All Computers and find the target computer on which you deployed the package.
  2. Right-click the computer and select Jobs, Software Jobs.

    The status of the job is displayed.

  3. Double-click the respective job when the status changes to SW Installed and click the Job output tab.

    The job output, and success or failure messages are displayed.

Back to Top