File tree Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Expand file tree Collapse file tree 3 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,17 @@ sudo systemctl enable envoy
87
87
sudo systemctl start envoy
88
88
89
89
# create zfs pools
90
- disks=(${dle_disks} )
91
- for i in $$ {! disks[@]}; do
92
- sudo zpool create -f \
90
+ disks=$( lsblk -ndp -e7 --output NAME)
91
+ i=1
92
+ for disk in $( lsblk -ndp -e7 --output NAME) ; do
93
+ sudo zpool create -f \
93
94
-O compression=on \
94
95
-O atime=off \
95
96
-O recordsize=128k \
96
97
-O logbias=throughput \
97
98
-m /var/lib/dblab/dblab_pool_0$i \
98
99
dblab_pool_0$i \
99
- $$ {disks[ $i ]}
100
+ $disk && (( i = i + 1 ))
100
101
done
101
102
102
103
# Adjust DLE config
Original file line number Diff line number Diff line change 1
- dle_version = " 2.5.0 "
1
+ dle_version = " master "
2
2
joe_version = " 0.10.0"
3
3
4
4
aws_ami_name = " DBLABserver*"
5
- aws_keypair = " YOUR_AWS_KEYPAIR"
6
5
7
6
aws_deploy_region = " us-east-1"
8
7
aws_deploy_ebs_availability_zone = " us-east-1a"
9
- aws_deploy_ec2_instance_type = " t2 .large"
10
- aws_deploy_ec2_instance_tag_name = " DBLABserver-ec2instance"
8
+ aws_deploy_ec2_instance_type = " c5 .large"
9
+ aws_deploy_ec2_instance_tag_name = " dmitry- DBLABserver-ec2instance"
11
10
aws_deploy_ebs_size = " 40"
12
11
aws_deploy_ebs_type = " gp2"
13
12
aws_deploy_allow_ssh_from_cidrs = [" 0.0.0.0/0" ]
14
- aws_deploy_dns_api_subdomain = " tf-test" # subdomain in aws.postgres.ai, fqdn will be ${dns_api_subdomain}.aws.postgres.ai
13
+ aws_deploy_dns_api_subdomain = " dmitry- tf-test" # subdomain in aws.postgres.ai, fqdn will be ${dns_api_subdomain}.aws.postgres.ai
15
14
16
15
source_postgres_version = " 13"
17
16
source_postgres_host = " ec2-3-215-57-87.compute-1.amazonaws.com"
@@ -24,3 +23,5 @@ dle_retrieval_refresh_timetable = "0 0 * * 0"
24
23
postgres_config_shared_preload_libraries = " pg_stat_statements,logerrors" # DB Migration Checker requires logerrors extension
25
24
26
25
platform_project_name = " aws_test_tf"
26
+
27
+ ssh_public_keys_files_list = [" /home/ubuntu/.ssh/id_rsa.pub" ]
Original file line number Diff line number Diff line change @@ -27,11 +27,6 @@ variable "aws_deploy_ec2_instance_type" {
27
27
default = " t2.micro"
28
28
}
29
29
30
- variable "aws_keypair" {
31
- description = " Key pair to access the EC2 instance"
32
- default = " default"
33
- }
34
-
35
30
variable "aws_deploy_allow_ssh_from_cidrs" {
36
31
description = " List of CIDRs allowed to connect to SSH"
37
32
default = [" 0.0.0.0/0" ]
You can’t perform that action at this time.
0 commit comments