PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
640 stars 135 forks source link

use basename of url for items in k3s_server_manifests_urls and k3s_se… #177

Closed kossmac closed 2 years ago

kossmac commented 2 years ago

…rver_pod_manifests_urls if filename is not provided

Signed-off-by: Karsten Kosmala kosmala@cosmocode.de

use basename for auto-deploy manifests

Summary

If no filename is provided in k3s_server_manifests_urls or k3s_server_pod_manifests_urls use url basename filter to extract the filename.

Issue type

Test instructions

Use this vars statement. ccm-networks_changed.yaml, ccm-networks_changed.yaml and hcloud-csi.yml should land in /var/lib/rancher/k3s/server/manifests/.

  vars:
    k3s_server_manifests_urls:
      - url: "https://raw.githubusercontent.com/hetznercloud/hcloud-cloud-controller-manager/master/deploy/ccm-networks.yaml"
        filename: ccm-network.yaml
      - url: "https://raw.githubusercontent.com/hetznercloud/hcloud-cloud-controller-manager/master/deploy/ccm-networks.yaml"
        filename: ccm-network_changed.yaml
      - url: "https://raw.githubusercontent.com/hetznercloud/csi-driver/v1.6.0/deploy/kubernetes/hcloud-csi.yml"

Acceptance Criteria