terraform-provider-rancher2 icon indicating copy to clipboard operation
terraform-provider-rancher2 copied to clipboard

Add Custom Branding to Terraform automation

Open tonybaltazar opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

It would be awesome if Custom Branding would be included into the Terraform automation just like any other Rancher setting. Users will benefit from this by including their custom branding settings into the rest of their settings that are part of the Terraform automation.

Describe the solution you'd like

Extension to existing Rancher Provider resources that include the ability to set custom branding settings. Or a new resource all together.

Describe alternatives you've considered

N/A

Additional context

At the moment each time we deploy a new Rancher Manager, we have to manually set the Custom Branding settings post Terraform deployment.

tonybaltazar avatar Nov 28 '23 17:11 tonybaltazar

Hi @tonybaltazar . You can already do that with the rancher2_setting resource.

I put here an example on how to change the Rancher Manager logo:

  1. List the settings names
$ kubectl get Setting -n cattle-system
NAME                                      VALUE
agent-image                               rancher/rancher-agent:v2.8.3
agent-rollout-timeout                              
...
ui-logo-light                             
...
  1. Create the rancher2_setting
locals {
  ui_logo_light = filebase64("${path.root}/asset/logo.png")
}

resource "rancher2_setting" "ui_logo_light" {
  name  = "ui-logo-light"
  value = "data:image/png;base64,${local.ui_logo_light}"
}

framctr avatar May 28 '24 11:05 framctr