def METHOD_NAME(vector_config: VectorConfig):
    install_method_map = {"package": _install_from_package}
    install_method_map[vector_config.install_method]()
    # Running a vector_log_proxy server is special
    if vector_config.is_proxy:
        files.directory(
            name="Ensure TLS config directory exists",
            path=str(vector_config.tls_config_directory),
            user=vector_config.user,
            present=True,
        )
    if host.get_fact(File, "/lib/systemd/system/vector.service"):
        server.shell(
            name="Backup original vector.service defintion",
            commands=["/usr/bin/mv /lib/systemd/system/vector.service /root"],
        )
    files.put(
        dest="/lib/systemd/system/vector.service",
        group="root",
        mode="0644",
        name="Override original vector.service definition",
        src=str(Path(__file__).resolve().parent.joinpath("files", "vector.service")),
        user="root",
    )
    # Special permissions and configuration for running with dockerized services.
    # Make sure you install vector AFTER installing docker, when applicable.
    # TODO: MD 20230131 Split docker config out to its own private function.  # noqa: E501, FIX002, TD002, TD003
    if vector_config.is_docker:
        server.shell(
            name="Add vector user to docker group",
            commands=[f"/usr/bin/gpasswd -a {vector_config.user} docker"],
        )
        vector_config.configuration_templates[
            Path(__file__).resolve().parent.joinpath("templates", "docker_source.yaml")
        ] = {}
    # Config flags to enable global sink configurations
    if vector_config.use_global_log_sink:
        vector_config.configuration_templates[
            Path(__file__)
            .resolve()
            .parent.joinpath("templates", "global_log_sink.yaml")
        ] = {}
    if vector_config.use_global_metric_sink:
        vector_config.configuration_templates[
            Path(__file__)
            .resolve()
            .parent.joinpath("templates", "global_metric_sink.yaml")
        ] = {}