This file contains 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
2020-05-25 18:29:52.482 INFO 1 --- [ost-startStop-1] c.e.h.w.s.d.m.i.PatchRegistryServiceImpl : patchset for version 0.0.166 registered! | |
2020-05-25 18:29:52.490 INFO 1 --- [ost-startStop-1] c.e.h.w.s.data.OrientHitDbFactoryBean : Starting OrientDB factory | |
2020-05-25 18:29:52.491 INFO 1 --- [ost-startStop-1] c.e.h.w.s.data.OrientHitDbFactoryBean : starting OrientDB as external server | |
2020-05-25 18:29:57.431 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] | |
2020-05-25 18:29:57.488 WARN 1 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [udp-nio-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: | |
sun.nio.ch.EPollArrayWrapper.epollWait(Native Method) | |
sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269) | |
sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93) | |
sun.nio.ch.SelectorImpl.lockAndDoSelect(Select |
This file contains 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
terraform init # Config Initialization | |
terraform plan # Action check | |
terraform apply # Launch action |
This file contains 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
hcloud_token = "the token that was created via the web interface hetzner" | |
public_key = "public ssh key" |
This file contains 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 | |
apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
# performing the above actions, you can also add commands depending on the task. |
This file contains 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 "hcloud_server" "server" { # Create a server | |
name = "server-${local.name}" # Name server | |
image = "${var.image}" # Basic image | |
server_type = "${var.server_type}" # Instance type | |
location = "${var.location}" # Region | |
backups = "false" # Enable backups | |
ssh_keys = ["${hcloud_ssh_key.user.id}"] # SSH key | |
user_data = "${data.template_file.instance.rendered}" # The script that works when you start |
This file contains 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
# Token Variable Definition | |
variable "hcloud_token" {} | |
# Name variable definition | |
variable "name" { | |
default = "foo" | |
} | |
# Defining a variable source OS image for an instance | |
variable "image" { |
This file contains 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 "hcloud" { # Provider designation hetzner | |
token = "${var.hcloud_token}" # The token for connection to the hetzner API is specified in the terraform.tfvars file | |
} | |
# Resource random to generate random characters | |
resource "random_string" "name" { | |
length = 6 | |
special = false |
This file contains 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
terraform { | |
backend "s3" { # Backend designation | |
bucket = "foo-terraform" # Bucket name | |
key = "bucket/terraform.tfstate" # Key | |
region = "us-east-1" # Region | |
encrypt = "true" # Encryption enabled | |
} | |
} |
This file contains 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
*.tfstate # Infrastructure condition | |
*.tfstate.backup # Infrastructure state backup | |
.terraform/ # Terraform module directories | |
terraform.tfvars # variable file | |
.env # variable file | |
*.pem # Keys with pem extension |
This file contains 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
terraform init # Инициализация конфигов | |
terraform plan # Проверка действий | |
terraform apply # Запуск действий |
NewerOlder