set-secrets

Description

Assign super-user-password and unlock-password for Rover Cluster

Usage

oci rover cluster set-secrets [OPTIONS]

Required Parameters

--cluster-id [text]

Unique RoverCluster identifier

Optional Parameters

--super-user-password

Assign super-user-password for RoverCluster Identifier

--unlock-passphrase

Assign unlock-passphrase for RoverCluster Identifier

Examples

Copy the following CLI commands into a file named example.sh. Run the command by typing “bash example.sh” and replacing the example parameters with your own.

Please note this sample will only work in the POSIX-compliant bash-like shell. You need to set up the OCI configuration and appropriate security policies before trying the examples.

    export cluster_size=<substitute-value-of-cluster_size> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/rover/cluster/create.html#cmdoption-cluster-size
    export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/rover/cluster/create.html#cmdoption-compartment-id
    export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/rover/cluster/create.html#cmdoption-display-name

    cluster_id=$(oci rover cluster create --cluster-size $cluster_size --compartment-id $compartment_id --display-name $display_name --query data.id --raw-output)

    oci rover cluster set-secrets --cluster-id $cluster_id