Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings resource #14

Draft
wants to merge 18 commits into
base: master
Choose a base branch
from
Draft

Settings resource #14

wants to merge 18 commits into from

Conversation

disc
Copy link
Owner

@disc disc commented Nov 9, 2021

There is a draft of pritunl settings resource #12

For example

resource "pritunl_settings_override" "default" {
  username          = "admin"
  monitoring        = "none"
  pin_mode          = "optional"
  theme             = "dark"
  server_port       = 443
  acme_domain       = "vpn.site.com"
  reverse_proxy     = false
  #sso_yubico_client = "test-client1"
  #sso_yubico_secret = "test-secret2"

  # one of 
  cloud_provider_aws {
    route53_region       = "us-west-1"
    us_west_1_access_key = "some-access-key"
    us_west_1_secret_key = "secret-key"
    # ...
  }

  # one of
  cloud_provider_oracle {
    oracle_user_ocid = "some-ocid"
  }

  # SSO Settings
  sso_settings {
    #sso = "google"

    default_organization_id = "60cd0ba87723cf3c9114777e" # default org.id

    google {
      domain = "your.site.com"
      email  = "[email protected]"
    }

    # okta {
    #   app_id = "abcd"
    #   mode   = "push" #passcode, push, push_none
    #   token  = "asdf"
    # }

    # onelogin {
    #   client_id     = ""
    #   client_secret = ""
    #   app_id        = ""
    #   mode          = ""
    # }

    # authzero {
    #   subdomain     = ""
    #   client_id     = ""
    #   client_secret = ""
    # }

    # slack {
    #   domain = "your-team.slack.com"
    # }

    # azure {
    #   directory_id = ""
    #   app_id       = ""
    #   app_secret   = ""
    # }

    # saml {
    #   url        = "https://SAMLtest.example.com/path"
    #   issuer_url = "https://issuer.example.com"
    #   cert       = "XXXYYYZZZ"
    # }

    duo {
      token  = "abcd"
      secret = "secret-is-here"
      host   = "duo.host.com"
      mode   = "push" # push, phone, push_phone, passcode
    }

    # radius {
    #   host   = ""
    #   secret = ""
    # }

    # yubico {
    #   client = "test-client1"
    #   secret = "test-secret2"
    # }
  }
}

@disc disc linked an issue Nov 9, 2021 that may be closed by this pull request
@disc disc mentioned this pull request Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings resource
1 participant