splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
102 stars 75 forks source link

Use the nobody user to read and update if data_ui_view is not private #157

Closed markafarrell closed 3 months ago

markafarrell commented 1 year ago

This allows you to:

closes #155 closes #156

ojensen5115 commented 4 months ago

Thank you for this PR.

In absence of Splunk merging this and deploying a new version of the provider, do you know of a way to use your modified version in Terraform?

markafarrell commented 4 months ago

@ojensen5115

Something like this should work

  1. Remove existing lock file

    rm -f .terraform.lock.hcl

  2. Create Plugin directory

    mkdir -p plugins/registry.terraform.io/splunk/splunk/

  3. Download custom splunk provider

    curl -L https://github.com/markafarrell/terraform-provider-splunk/releases/download/v1.4.19/terraform-provider-splunk_1.4.19_linux_amd64.zip --output plugins/registry.terraform.io/splunk/splunk/terraform-provider-splunk_1.4.19_linux_amd64.zip

  4. In your provider.tf you will need something like:

    
    terraform {
    required_providers {
    ...
    splunk = {
      source = "splunk/splunk"
      version = "1.4.19"
    }
    }
    }

provider "splunk" { url = "splunk.fqdn.com" username = var.SPLUNK_USERNAME password = var.SPLUNK_PASSWORD }



I believe you need terraform version >= `1.3.3`