このドキュメントで説明されているソフトウェアはサポートされていないか、拡張サポートが提供されています。
現在サポートされているリリースにアップグレードすることをお薦めします。

1.2.5 Spacewalkサーバーの設定

  1. jtaパッケージがインストールされていないことを確認し、Spacewalkのインストール時にこのパッケージがインストールされないようにします。

    jtaパッケージがインストールされているかどうかを確認するには、次のようにします。

    # yum list installed | grep jta

    jtaパッケージを削除するには、次のようにします。

    # yum remove jta

    Spacewalkのインストール時にjtaパッケージがインストールされないようにするには、Oracle Linux 6アドオン[ol6_addons]チャネルを無効にするか、たとえば次のようにして、yum構成ファイル/etc/yum.confexcludeディレクティブにjtaパッケージを追加します。

    exclude=jta*
  2. Spacewalkサーバー・リポジトリへのアクセスを有効にします。

    Spacewalkは、https://yum.oracle.comのOracle Linux yumサーバーからインストールされます。

    yumリポジトリの構成ファイル(https://yum.oracle.com/public-yum-ol6.repo)をyumリポジトリ・ディレクトリ(デフォルトでは/etc/yum.repos.d)にダウンロードし、そのファイルでol6_spacewalk20_serverリポジトリを有効にします。

    または、次の内容でyumリポジトリ構成ファイル(/etc/yum.repos.d/spacewalk20.repoなど)を作成することもできます。

    [ol6_spacewalk20_server]
    name=Spacewalk Server 2.0 for Oracle Linux 6 ($basearch)
    baseurl=https://yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/server/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
  3. Spacewalkをインストールします。

    # yum install spacewalk-oracle
  4. Spacewalkを構成します。

    Oracleデータベースを使用している場合、同一サーバーまたはリモート・サーバーで、次のコマンドを使用します。

    # spacewalk-setup --disconnected --external-db

    それ以外の場合は、次のコマンドを使用します。

    # spacewalk-setup --disconnected

    次の例は、対話型構成を示しています。

    # spacewalk-setup --disconnected --external-db
     * Setting up Oracle environment.
     * Setting up database.
     ** Database: Setting up database connection for Oracle backend.
     Database service name (SID)? <orcl.domain.com>
     Database hostname [localhost]? <spacewalk-db.domain.com>
     Username? <spacewalk-db-user>
     Password? ** 
     Database: Testing database connection. 
     ** Database: Populating database. 
     *** Progress: ############################################################ 
     * Setting up users and groups. 
     ** GPG: Initializing GPG and importing key. 
     ** GPG: Creating /root/.gnupg directory 
     You must enter an email address. 
     Admin Email Address? <your.email@domain.com> 
     * Performing initial configuration. 
     * Activating Spacewalk. 
     ** Loading Spacewalk Certificate. 
     ** Verifying certificate locally. 
     ** Activating Spacewalk. 
     * Enabling Monitoring. 
     * Configuring apache SSL virtual host. 
     Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? 
     ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave 
     * Configuring tomcat. 
     ** /etc/sysconfig//tomcat6 has been backed up to tomcat6-swsave 
     ** /etc/tomcat6//server.xml has been backed up to server.xml-swsave 
     ** /etc/tomcat6//web.xml has been backed up to web.xml-swsave 
     * Configuring jabberd. 
     * Creating SSL certificates. 
     CA certificate password? 
     Re-enter CA certificate password?
     Organization? <Oracle Demo>
     Organization Unit [spacewalk.domain.com]? 
     Email Address [your.email@domain.com]? 
     City? <Redwood Shores>
     State? <CA>
     Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? <US>
     ** SSL: Generating CA certificate. 
     ** SSL: Deploying CA certificate. 
     ** SSL: Generating server certificate. 
     ** SSL: Storing SSL certificates. 
     * Deploying configuration files. 
     * Update configuration in database. 
     * Setting up Cobbler.. 
     Processing /etc/cobbler/modules.conf 
     `/etc/cobbler/modules.conf' -> `/etc/cobbler/modules.conf-swsave' 
     Processing /etc/cobbler/settings `/etc/cobbler/settings' -> `/etc/cobbler/settings-swsave' 
     cobblerd does not appear to be running/accessible 
     Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality.
     Enable these services [Y]? 
     cobblerd does not appear to be running/accessible 
     * Restarting services. 
     Installation complete. 
     Visit https://spacewalk.domain.com to create the Spacewalk administrator account.