Chapter 7 Configuring Client Systems for Remote Management

You can install the remote configuration client packages on the remote system, which enable you to perform remote configuration of client system from Spacewalk,

7.1 Enabling Remote Configuration in a Kickstart Profile by Using the Spacewalk Web Interface

Note

The following procedure applies if you use Spacewalk to generate the kickstart file.

To configure a kickstart profile to install and enable the remote configuration client software on a client system:

  1. Go to Systems, select Kickstart and then Profiles.

  2. Select the profile, and then select Software to display the Package Groups page.

  3. On the Package Groups page, include rhncfg, rhncfg-actions, and rhncfg-client in the list of packages to install.

  4. Select System Details to display the Details page.

  5. On the Details page, select the Enable Spacewalk Configuration Management and Enable Spacewalk Remote Commands check boxes.

  6. Click Update Kickstart Distribution to save your changes.

7.2 Enabling Remote Configuration in a Kickstart File

Note

The following applies if you upload a kickstart file into a profile.

If you want to be able to deploy configuration files and run commands remotely from the Spacewalk web interface:

  • Include the rhncfg, rhncfg-actions, and rhncfg-client packages for installation.

  • Configure rhn-actions-control to run on the client system in the post-installation shell:

    %post
    rhn-actions-control --enable-all
    %end

    For more information, see the rhn-actions-control(8) manual page.

7.3 Enabling Remote Configuration Manually

Install and configure remote configuration manually as follows:

  1. Log in as root on the client system.

  2. Use the yum command to install the rhncfg, rhncfg-actions, and rhncfg-client packages:

    # yum install rhncfg rhncfg-actions rhncfg-client
  3. Use the rhn-actions-control command to configure the remote actions that the client permits:

    # rhn-actions-control --enable-all

    The --report option lists the permitted remote actions, for example:

    # rhn-actions-control --report
    deploy is enabled
    diff is enabled
    upload is enabled
    mtime_upload is enabled
    run is enabled

    For more information, see the rhn-actions-control(8) manual page.

7.4 Enabling Remote Configuration for Client Systems by Using the Spacewalk Web Interface

Note

If you want Spacewalk to install the rhncfg, rhncfg-actions, and rhncfg-client packages automatically from a software channel, the channel label must contain the string rhn-tools, for example ol7-spacewalk27-client-rhn-tools.

To install and configure remote configuration for existing non-managed client systems, follow these steps:

  1. In the Spacewalk web interface, do the following:

    1. Enable the software channel that contains the rhncfg, rhncfg-actions, and rhncfg-client packages for the client. See Chapter 9, Updating Client Systems.

    2. Go to Configuration, Systems, and then Target Systems.

    3. On the Target Systems page, select the client systems from the systems that are listed and click Enable Spacewalk Configuration Management.

  2. Configure configuration management by running the following commands on each client system:

    1. Check for any queued pending actions.

      # rhn_check
    2. Configure the remote actions that the client permits.

      # rhn-actions-control --enable-all

      The --report option lists the permitted remote actions.

      # rhn-actions-control --report
      deploy is enabled
      diff is enabled
      upload is enabled
      mtime_upload is enabled
      run is enabled

      For more information, see the rhn-actions-control(8) man page.