Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
terraform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
HADOOP
terraform
Commits
760bd322
Commit
760bd322
authored
Mar 23, 2021
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Bioportal: floating IP externally - gitLab CI
parent
014d5918
No related branches found
No related tags found
No related merge requests found
Pipeline
#662
failed
May 29, 2021
Stage: test
Changes
1
Pipelines
14
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-6
9 additions, 6 deletions
.gitlab-ci.yml
with
9 additions
and
6 deletions
.gitlab-ci.yml
+
9
−
6
View file @
760bd322
...
@@ -30,6 +30,7 @@ terraform-single:
...
@@ -30,6 +30,7 @@ terraform-single:
-
ln -sfv $TERRAFORM_CONFIG testsuite.auto.tfvars
-
ln -sfv $TERRAFORM_CONFIG testsuite.auto.tfvars
# https://github.com/terraform-provider-openstack/terraform-provider-openstack/issues/1160
# https://github.com/terraform-provider-openstack/terraform-provider-openstack/issues/1160
-
touch ./secure.yml
-
touch ./secure.yml
-
ip=`openstack floating ip create -c floating_ip_address -f value public-muni-147-251-21-GROUP`
cache
:
cache
:
when
:
always
when
:
always
key
:
single
key
:
single
...
@@ -38,12 +39,13 @@ terraform-single:
...
@@ -38,12 +39,13 @@ terraform-single:
-
"
*.tfstate"
-
"
*.tfstate"
script
:
script
:
-
terraform init
-
terraform init
-
terraform apply
-auto-approve -var type=hadoop-single -var flavor=standard.large -var n=0 -var domain=terra1 -var image_name=$IMAGE_NAME -var image_visibility=$IMAGE_VISIBILITY
-
args="
-auto-approve -var type=hadoop-single -var flavor=standard.large -var n=0 -var domain=terra1 -var image_name=$IMAGE_NAME -var image_visibility=$IMAGE_VISIBILITY
-var floating_ip=$ip"
-
ip=`jq -r .public_hosts.value.master < config.json`
-
terraform apply $args
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
-
ssh-add ./ssh-key.terra1.txt
-
ssh-add ./ssh-key.terra1.txt
-
ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
-
ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
-
terraform destroy -auto-approve
-
terraform destroy $args
-
openstack floating ip delete $ip
rules
:
rules
:
-
if
:
'
$JOB
=~
/all|test-single/'
-
if
:
'
$JOB
=~
/all|test-single/'
artifacts
:
&artifacts
artifacts
:
&artifacts
...
@@ -61,12 +63,13 @@ terraform-cluster:
...
@@ -61,12 +63,13 @@ terraform-cluster:
-
"
*.tfstate"
-
"
*.tfstate"
script
:
script
:
-
terraform init
-
terraform init
-
terraform apply
-auto-approve -var type=hadoop -var domain=terra2 -var image_name=$IMAGE_NAME -var image_visibility=$IMAGE_VISIBILITY
-
args="
-auto-approve -var type=hadoop -var domain=terra2 -var image_name=$IMAGE_NAME -var image_visibility=$IMAGE_VISIBILITY
-var floating_ip=$ip"
-
ip=`jq -r .public_hosts.value.master < config.json`
-
terraform apply $args
-
eval $(ssh-agent -s)
-
eval $(ssh-agent -s)
-
ssh-add ./ssh-key.terra2.txt
-
ssh-add ./ssh-key.terra2.txt
-
ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
-
ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
-
terraform destroy -auto-approve
-
terraform destroy $args
-
openstack floating ip delete $ip
rules
:
rules
:
-
if
:
'
$JOB
=~
/all|test-cluster/'
-
if
:
'
$JOB
=~
/all|test-cluster/'
artifacts
:
*artifacts
artifacts
:
*artifacts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment