-
Notifications
You must be signed in to change notification settings - Fork 4
Batch 2 resource 11 - 15 #136
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
Merged
Kevin-DeJong
merged 10 commits into
CPT_Terraform_Dev_2
from
Fixtures_batch_2_resource_11_to_15
Oct 20, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4991da1
Batch 2 resource 11 - 15
Kevin-DeJong d1b66c4
PR fixes
Kevin-DeJong 6193ba8
PR changes
Kevin-DeJong 759acc8
PR changes
Kevin-DeJong 7ad052e
PCAP changes
Kevin-DeJong 9a86053
PR changes
Kevin-DeJong a578d7d
pr changes
Kevin-DeJong bf73cc9
PR changes
Kevin-DeJong 4a840f9
Merge branch 'CPT_Terraform_Dev_2' of github.com:Juniper/terraform-pr…
Kevin-DeJong 5e97812
Fix merge conflicts
Kevin-DeJong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
168 changes: 168 additions & 0 deletions
168
internal/provider/fixtures/org_setting_resource/org_setting_config.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,168 @@ | ||
|
|
||
| ap_updown_threshold = 30 | ||
| device_updown_threshold = 45 | ||
| gateway_updown_threshold = 60 | ||
| switch_updown_threshold = 75 | ||
| ui_idle_timeout = 120 | ||
| disable_pcap = false | ||
| disable_remote_shell = false | ||
|
|
||
| cacerts = [ | ||
| "-----BEGIN CERTIFICATE-----\nMIIC2jCCAcICCQDXrcsSSdA+CjANBgkqhkiG9w0BAQsFADAhMR8wHQYDVQQDDBZy\nYWRzZWMtZXhhbXBsZS1kb21haW4xMB4XDTIzMDEwMTAwMDAwMFoXDTI0MDEwMTAw\nMDAwMFowITEfMB0GA1UEAwwWcmFkc2VjLWV4YW1wbGUtZG9tYWluMTCCASIwDQYJ\nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM3Q2NP+example+cert+data+here\n-----END CERTIFICATE-----" | ||
| ] | ||
|
|
||
| api_policy { | ||
| no_reveal = true | ||
| } | ||
|
|
||
| celona { | ||
| api_key = "celona_api_key_example" | ||
| api_prefix = "celona_api_prefix_example" | ||
| } | ||
|
|
||
| installer { | ||
| allow_all_devices = true | ||
| allow_all_sites = false | ||
| extra_site_ids = ["550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"] | ||
| grace_period = 7200 | ||
| } | ||
|
|
||
| jcloud_ra { | ||
| org_apitoken_name = "jcloud_ra_org_token_name_example" | ||
| org_id = "jcloud_ra_org_id_example" | ||
| } | ||
|
|
||
| junos_shell_access { | ||
| admin = "admin" | ||
| helpdesk = "viewer" | ||
| read = "viewer" | ||
| write = "admin" | ||
| } | ||
|
|
||
| marvis { | ||
| auto_operations { | ||
| bounce_port_for_abnormal_poe_client = true | ||
| disable_port_when_ddos_protocol_violation = true | ||
| disable_port_when_rogue_dhcp_server_detected = true | ||
| } | ||
| } | ||
|
|
||
| mgmt { | ||
| mxtunnel_ids = ["550e8400-e29b-41d4-a716-446655440003", "550e8400-e29b-41d4-a716-446655440004"] | ||
| use_mxtunnel = true | ||
| use_wxtunnel = false | ||
| } | ||
|
|
||
| mist_nac { | ||
| disable_rsae_algorithms = false | ||
| eap_ssl_security_level = 2 | ||
| eu_only = false | ||
| idp_machine_cert_lookup_field = "cn" | ||
| idp_user_cert_lookup_field = "email" | ||
| idps = [ | ||
| { | ||
| id = "550e8400-e29b-41d4-a716-446655440006" | ||
| user_realms = ["example.com", "test.org"] | ||
| exclude_realms = ["excluded.example.com"] | ||
| } | ||
| ] | ||
| # servier_cert | ||
| use_ip_version = "v4" | ||
| use_ssl_port = false | ||
| } | ||
|
|
||
| mxedge_mgmt { | ||
| config_auto_revert = true | ||
| fips_enabled = false | ||
| oob_ip_type = "dhcp" | ||
| oob_ip_type6 = "dhcp" | ||
| } | ||
|
|
||
| optic_port_config = { | ||
| "et-0/0/47" = { | ||
| channelized = true | ||
| speed = "25g" | ||
| } | ||
| "et-0/0/48-49" = { | ||
| channelized = false | ||
| speed = "50g" | ||
| } | ||
| } | ||
|
|
||
| password_policy { | ||
| enabled = true | ||
| expiry_in_days = 90 | ||
| min_length = 12 | ||
| requires_special_char = true | ||
| requires_two_factor_auth = true | ||
| } | ||
|
|
||
| security { | ||
| disable_local_ssh = false | ||
| limit_ssh_access = true | ||
| } | ||
|
|
||
| switch_mgmt { | ||
| ap_affinity_threshold = 15 | ||
| } | ||
|
|
||
| synthetic_test { | ||
| aggressiveness = "high" | ||
| custom_probes = { | ||
| "google_dns" = { | ||
| type = "icmp" | ||
| host = "8.8.8.8" | ||
| threshold = 100 | ||
| aggressiveness = "high" | ||
| } | ||
| "web_check" = { | ||
| type = "curl" | ||
| url = "https://www.google.com" | ||
| threshold = 500 | ||
| aggressiveness = "auto" | ||
| } | ||
| "tcp_check" = { | ||
| type = "tcp" | ||
| host = "10.1.1.1" | ||
| port = 443 | ||
| threshold = 200 | ||
| aggressiveness = "med" | ||
| } | ||
| } | ||
| disabled = false | ||
| lan_networks = [ | ||
| { | ||
| networks = ["192.168.1.0/24", "10.0.0.0/8"] | ||
| probes = ["google_dns", "web_check"] | ||
| } | ||
| ] | ||
| vlans = [ | ||
| { | ||
| disabled = false | ||
| custom_test_urls = ["https://example.com/test"] | ||
| probes = ["google_dns", "tcp_check"] | ||
| vlan_ids = ["100", "200"] | ||
| } | ||
| ] | ||
| wan_speedtest { | ||
| enabled = true | ||
| time_of_day = "02:00" | ||
| } | ||
| } | ||
|
|
||
| vpn_options { | ||
| as_base = 65000 | ||
| st_subnet = "10.224.0.0/12" | ||
| } | ||
|
|
||
| wan_pma { | ||
| enabled = true | ||
| } | ||
|
|
||
| wired_pma { | ||
| enabled = true | ||
| } | ||
|
|
||
| wireless_pma { | ||
| enabled = true | ||
| } | ||
13 changes: 13 additions & 0 deletions
13
internal/provider/fixtures/org_sso_resource/org_sso_config.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
|
|
||
| name = "Example SAML SSO" | ||
| idp_cert = "-----BEGIN CERTIFICATE-----\nMIIBkTCB+wIJALJ8UUKmgH1GMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNVBAMMCXRl\nc3QtY2VydDAeFw0yNDEyMjcwMDAwMDBaFw0yNTEyMjcwMDAwMDBaMBQxEjAQBgNV\nBAMMCXRlc3QtY2VydDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQCxUC6+OeSgM1Fh\nOdKqA5C1XQfFdKK0C8JxUQKHjOKE8Q1j8I+FHFOdKGY5TKZrIvOLMbOeXJGF7Wl5\nxD0dVhZdAgMBAAEwDQYJKoZIhvcNAQELBQADQQA3F8+8MzE5E5GHj5E5TQ==\n-----END CERTIFICATE-----" | ||
| idp_sign_algo = "sha256" | ||
| idp_sso_url = "https://idp.example.com/sso/saml" | ||
| issuer = "https://idp.example.com/issuer" | ||
| custom_logout_url = "https://idp.example.com/logout" | ||
| default_role = "viewer" | ||
| ignore_unmatched_roles = false | ||
| nameid_format = "email" | ||
| role_attr_extraction = "cn" | ||
| role_attr_from = "Role" | ||
|
|
25 changes: 25 additions & 0 deletions
25
internal/provider/fixtures/org_sso_role_resource/org_sso_role_config.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
|
|
||
| name = "Example SSO Role" | ||
| privileges = [{ | ||
| role = "admin" | ||
| scope = "org" | ||
| views = ["reporting", "marketing", "super_observer", "location", "security", "switch_admin", "mxedge_admin", "lobby_admin"] | ||
| }, | ||
| { | ||
| role = "read" | ||
| scope = "sitegroup" | ||
| }, | ||
| { | ||
| role = "read" | ||
| scope = "site" | ||
| }, | ||
| { | ||
| role = "helpdesk" | ||
| scope = "org" | ||
| views = ["switch_admin", "marketing"] | ||
| }, | ||
| { | ||
| role = "installer" | ||
| scope = "org" | ||
| }] | ||
|
|
81 changes: 81 additions & 0 deletions
81
internal/provider/fixtures/org_vpn_resource/org_vpn_config.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
|
|
||
| name = "test-org-vpn2" | ||
| type = "hub_spoke" | ||
| paths = { | ||
| "vpn_path_1" = { | ||
| bfd_profile = "broadband" | ||
| bfd_use_tunnel_mode = true | ||
| ip = "192.168.1.1" | ||
| pod = 1 | ||
| peer_paths = { | ||
| "peer_interface_1" = { | ||
| preference = 100 | ||
| } | ||
| "peer_interface_2" = { | ||
| preference = 200 | ||
| } | ||
| } | ||
| traffic_shaping = { | ||
| enabled = true | ||
| max_tx_kbps = 10000 | ||
| class_percentage = [25, 25, 25, 25] | ||
| } | ||
| } | ||
|
|
||
| "vpn_path_2" = { | ||
| bfd_profile = "lte" | ||
| bfd_use_tunnel_mode = false | ||
| ip = "192.168.2.1" | ||
| pod = 2 | ||
| peer_paths = { | ||
| "peer_interface_3" = { | ||
| preference = 150 | ||
| } | ||
| } | ||
| traffic_shaping = { | ||
| enabled = false | ||
| max_tx_kbps = 5000 | ||
| class_percentage = [30, 30, 20, 20] | ||
| } | ||
| } | ||
| } | ||
| ␞ | ||
| name = "test-org-vpn-mesh2" | ||
| type = "mesh" | ||
| path_selection = { | ||
| strategy = "manual" | ||
| } | ||
| paths = { | ||
| "interface_1" = { | ||
| bfd_profile = "broadband" | ||
| bfd_use_tunnel_mode = true | ||
| ip = "10.0.1.1" | ||
| pod = 5 | ||
| peer_paths = { | ||
| "mesh_peer_1" = { | ||
| preference = 100 | ||
| } | ||
| "mesh_peer_2" = { | ||
| preference = 200 | ||
| } | ||
| } | ||
| traffic_shaping = { | ||
| enabled = true | ||
| max_tx_kbps = 20000 | ||
| class_percentage = [40, 30, 20, 10] | ||
| } | ||
| } | ||
|
|
||
| "interface_2" = { | ||
| bfd_profile = "lte" | ||
| bfd_use_tunnel_mode = false | ||
| ip = "10.0.2.1" | ||
| pod = 10 | ||
| peer_paths = { | ||
| "mesh_peer_3" = { | ||
| preference = 300 | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.