This file has been truncated, but you can view the full file.
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
2023-06-24T12:36:09.949+0100 [INFO] Terraform version: 1.5.1 | |
2023-06-24T12:36:09.949+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0 | |
2023-06-24T12:36:09.949+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2 | |
2023-06-24T12:36:09.949+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0 | |
2023-06-24T12:36:09.949+0100 [DEBUG] using github.com/zclconf/go-cty v1.12.2 | |
2023-06-24T12:36:09.949+0100 [INFO] Go runtime version: go1.20.5 | |
2023-06-24T12:36:09.949+0100 [INFO] CLI args: []string{"/snap/terraform/517/terraform", "plan", "-generate-config-out", "new.tf"} | |
2023-06-24T12:36:09.949+0100 [TRACE] Stdout is not a terminal | |
2023-06-24T12:36:09.949+0100 [TRACE] Stderr is not a terminal | |
2023-06-24T12:36:09.949+0100 [TRACE] Stdin is a terminal |
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
#!/bin/bash | |
# Check if NordVPN is installed | |
if ! command -v nordvpn &> /dev/null; then | |
echo "NordVPN is not installed. Installing..." | |
# Determine the installation command based on the system | |
if command -v apt-get &> /dev/null; then | |
sudo apt-get install nordvpn | |
elif command -v yum &> /dev/null; then | |
sudo yum install nordvpn |
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
PAT="" | |
ORG_NAME="" | |
DEFAULT_JSON='{ | |
"organization": { | |
"settings": { | |
"disable_anonymous_access_badges": true, | |
"limit_variables_set_queue_time": false, | |
"limit_job_authorization_current_project_non_release_pipelines": false, | |
"limit_job_authorization_current_project_release_pipelines": false, | |
"protect_access_repositories_yaml_pipelines": false, |
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
PAT="" | |
ORG_NAME="" | |
DEFAULT_JSON={ | |
"organization": { | |
"policies": { | |
"disallow_third_party_application_access_via_oauth": false, | |
"disallow_ssh_authentication": false, | |
"log_audit_events": true, | |
"allow_public_projects": true, | |
"additional_protections_public_package_registries": true, |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"organization": { | |
"name": "portaivan", | |
"azure_active_directory": { | |
"tenant_id": "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
} | |
} |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"agent_pools": | |
[ | |
{ | |
"self_hosted":[ | |
{ | |
"name": "Default", |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"pipeline": { | |
"service_endpoints": [ | |
{ | |
"azurerm": [ | |
{ | |
"name": "Azure", |
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
PAT="" | |
ORG_NAME="ivanporta" | |
PROJECT_NAME="Sample" | |
DEFAULT_JSON='{ | |
"pipeline": { | |
"environments": [ | |
{ | |
"name": "Connectivity", | |
"description": "Connectivity production environment", | |
"security_groups_name": [ |
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
- script: | | |
terraform plan -out tf.tfplan | |
displayName: Generate Terraform plan | |
- script: | | |
terraform show -no-color tf.tfplan > $(Agent.TempDirectory)/tf.txt | |
displayName: Convert Terraform plan to text | |
- bash: | | |
cd $(Agent.TempDirectory) |
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
Param( | |
[Parameter(Position=0)] | |
[string]$Office365Username, | |
[Parameter(Position=1)] | |
[string]$Office365Password, | |
[Parameter(Position=2)] | |
[string]$TeamsFilePath | |
) | |
Write-Verbose "Importing modules" |
NewerOlder