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 | |
# | |
# Script Name: reset_admin_pass_portainer.sh | |
# Description: This script performs the reset for admin user's password | |
# | |
# Author: Amaury Borges Souza | |
# Date: April 21, 2024 | |
# Version: 1.0 | |
# | |
# Usage: |
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 | |
# Update package lists | |
sudo apt update ; apt uprade -y | |
# List the packages | |
sudo apt list --upgradable | |
# Remove unnecessary packages | |
sudo apt autoremove -y |
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
--- | |
- name: Installing Azure CLI | |
hosts: local | |
gather_facts: false | |
become: true | |
tasks: | |
- name: Upgrade all packages | |
yum: | |
name: '*' | |
state: latest |
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello") | |
} |
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
resource "random_pet" "rg-name" { | |
prefix = var.resource_group_name_prefix | |
} | |
# Create the resource group for Azure provider | |
resource "azurerm_resource_group" "rg" { | |
name = random_pet.rg-name.id | |
location = var.resource_group_location | |
} |
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
provider "azurerm" { | |
features {} | |
} |
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
provider "azurerm" { | |
features { | |
} | |
} | |
resource "azurerm_resource_group" "teste-group" { | |
name = "rgterraform" | |
location = "brazilsouth" | |
} |
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
$ az --version | |
azure-cli 2.38.0 * | |
core 2.38.0 * | |
telemetry 1.0.6 * | |
Dependencies: | |
msal 1.18.0b1 | |
azure-mgmt-resource 21.1.0b1 |
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
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
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
$ sudo yum -y install terraform |
NewerOlder