package io.wdd.func.auto.beans;

public enum BaseFunctionEnum {

    SHUTDOWN_FIREWALL(
            "shutdownFirewall",
            "关闭防火墙"
    ),

    DISABLE_SWAP(
            "disableSwap",
            "关闭虚拟内存"
    ),


    DISABLE_SELINUX(
            "DISABLE_SELINUX",
            "关闭SELinux"
    ),

    MODIFY_HOSTNAME(
            "modifyHostname",
            "修改主机名称, args 主机名"
    ),

    INSTALL_DEFAULT_SSH_KEY(
            "installDefaultSSHKey",
            "安装默认SSH-Key"
    ),

    DISTRIBUTE_SSH_KEY(
            "distributeSSHKey",
            "分发SSH-Key"
    ),

    INSTALL_DOCKER(
            "installDocker",
            "安装Docker, args固定为19或20"
    ),

    INSTALL_DOCKER_COMPOSE(
            "installDockerCompose",
            "安装Docker Compose, 默认为2.18.0版本"
    ),

    MODIFY_DOCKER_CONFIG(
            "modifyDockerConfig",
            "修改docker daemon config, 参数为 Harbor服务器的IP"
    ),


    INSTALL_NFS_ONLINE(
            "installNfsOnline",
            "安装nfs-client online"
    ),

    INSTALL_NFS_SERVER_ONLINE(
            "installNfsServerOnline",
            "安装nfs-server online"
    ),

    INSTALL_CHRONY_DISCARD(
            "installChrony",
            "安装Chrony服务器, 废弃"
    ),

    INSTALL_CHRONY_DOCKER(
            "INSTALL_CHRONY_DOCKER",
            "安装Chrony服务器, DOCKER版本"
    ),

    CHRONY_TO_PUBLIC_NTP_DISCARD(
            "chronyToPublicNTP",
            "时间同步至公网NTP服务器"
    ),

    INSTALL_ZSH(
            "installZSH",
            "安装配置ZSH"
    ),

    INSTALL_HARBOR(
            "installHarbor",
            "安装Harbor, 默认为2.9.0版本"
    ),

    CHRONY_TO_MASTER(
            "chronyToMaster",
            "时间同步至Master,  args为 Master节点IP"
    );

    String funcName;

    String desc;


    BaseFunctionEnum(String funcName, String desc) {
        this.funcName = funcName;
        this.desc = desc;
    }

    public String getFuncName() {
        return funcName;
    }

    public String getDesc() {
        return desc;
    }

}
