How to Install Rundeck on OpenSUSE Latest

Rundeck is an open-source automation tool that helps with job scheduling, task automation, and workflow orchestration. It allows users to define tasks with simple YAML or JSON descriptions and execute them on local or remote servers with different operating systems.

In this tutorial, we will guide you through the process of installing Rundeck on OpenSUSE Latest. We will also show you how to set up a basic Rundeck project and execute a simple job.

Prerequisites

Before you get started, ensure you have the following:

Step 1: Install Java

Rundeck runs on the JVM (Java Virtual Machine), so you will need to install Java on your OpenSUSE Latest system.

  1. Open the command-line terminal.

  2. Run the following command to install the default OpenJDK package:

    sudo zypper install java-11-openjdk
    
  3. Verify that Java is installed by running the following command:

    java -version
    

    You should see output similar to the following:

    openjdk version "11.0.11" 2021-04-20
    OpenJDK Runtime Environment (build 11.0.11+9)
    OpenJDK 64-Bit Server VM (build 11.0.11+9, mixed mode)
    

Step 2: Install Rundeck

With Java installed, you can now proceed to install Rundeck on your OpenSUSE Latest system.

  1. Open the command-line terminal.

  2. Run the following command to add the Rundeck repository:

    sudo zypper addrepo https://download.rundeck.org/rpm/stable/rundeck.repo
    
  3. Run the following command to import the Rundeck public key:

    sudo rpm --import https://raw.githubusercontent.com/rundeck/rundeck-rpm/stable/pubkey.gpg
    
  4. Update your system package list by running the following command:

    sudo zypper refresh
    
  5. Finally, run the following command to install Rundeck:

    sudo zypper install rundeck
    

    The installation process may take a few minutes, depending on your system's speed and the speed of your Internet connection.

Step 3: Configure Rundeck

Now that Rundeck is installed, you need to configure it.

  1. Open the following file with your preferred text editor:

    sudo vi /etc/rundeck/framework.properties
    
  2. Locate the following line and uncomment it by removing the # character:

    framework.server.name=localhost
    

    This will allow you to access the Rundeck dashboard from a remote machine.

  3. Save the file and exit your text editor.

  4. Open the following file with your preferred text editor:

    sudo vi /etc/rundeck/rundeck-config.properties
    
  5. Locate the following line and uncomment it by removing the # character:

    # grails.serverURL=http://localhost:4440
    

    This will allow Rundeck to use the default port (4440) for communicating with the server.

  6. Save the file and exit your text editor.

Step 4: Start Rundeck

With Rundeck installed and configured, you can start the Rundeck service and access the Rundeck dashboard.

  1. Start the Rundeck service by running the following command:

    sudo systemctl start rundeckd
    
  2. Verify that the Rundeck service is running by running the following command:

    sudo systemctl status rundeckd
    

    You should see output similar to the following:

    rundeckd.service - LSB: Rundeck daemon
    Loaded: loaded (/etc/init.d/rundeckd; generated)
    Active: active (running) since Sat 2021-09-11 15:08:53 BST; 3s ago
    ...
    
  3. Visit your Rundeck installation by navigating to the following URL in your web browser:

    http://<your-server-ip>:4440
    

    Replace <your-server-ip> with the IP address of your OpenSUSE Latest server.

    You should see the Rundeck login page.

Step 5: Create a Rundeck project and job

Now that you have access to the Rundeck dashboard, you can create a Rundeck project and job.

  1. Log in to the Rundeck dashboard using the default username and password:

    Username: admin
    Password: admin
    
  2. Navigate to "Projects" in the sidebar menu and click the "Create Project" button.

  3. Fill in the form with your desired project settings, then click "Create".

  4. Navigate to "Jobs" in the sidebar menu and click the "Create Job" button.

  5. Fill in the form with your desired job settings, then click "Save".

  6. Click "Run Job" to execute your job.

    You should see output similar to the following:

    Starting job: My Job
    Executing command on localhost: echo "Hello, Rundeck!"
    Hello, Rundeck!
    Execution completed with exit code 0 (succeeded).
    

Congratulations! You have successfully installed Rundeck on OpenSUSE Latest, configured it, and executed a simple job.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!