Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timothee Gosselin
compose.libre.sh
Commits
db3e09aa
Commit
db3e09aa
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Provision a bigger VM for server.test, fixes #52 #53
parent
bcf5c239
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/create_vultr.sh
+3
-1
3 additions, 1 deletion
scripts/create_vultr.sh
scripts/start.sh
+1
-1
1 addition, 1 deletion
scripts/start.sh
with
4 additions
and
2 deletions
scripts/create_vultr.sh
+
3
−
1
View file @
db3e09aa
...
...
@@ -20,10 +20,12 @@ LABEL=$1
echo
Label:
$LABEL
echo
API key:
$VULTR_API_KEY
VPSPLANID
=
${
2
:-
29
}
SSHKEYID
=
`
curl
-s
https://api.vultr.com/v1/sshkey/list
\?
api_key
\=
$VULTR_API_KEY
|
cut
-d
\"
-f2
`
echo
Got your ssh key ID
$SSHKEYID
:
SUBID
=
`
curl
-s
-d
"DCID=24&VPSPLANID=
29
&OSID=179&label=
$LABEL
&SSHKEYID=
$SSHKEYID
"
https://api.vultr.com/v1/server/create
\?
api_key
\=
$VULTR_API_KEY
|
cut
-d
\"
-f4
`
SUBID
=
`
curl
-s
-d
"DCID=24&VPSPLANID=
$VPSPLANID
&OSID=179&label=
$LABEL
&SSHKEYID=
$SSHKEYID
"
https://api.vultr.com/v1/server/create
\?
api_key
\=
$VULTR_API_KEY
|
cut
-d
\"
-f4
`
echo
Got your SUB ID
$SUBID
:
while
:
...
...
This diff is collapsed.
Click to expand it.
scripts/start.sh
+
1
−
1
View file @
db3e09aa
...
...
@@ -19,7 +19,7 @@ BACKUP_IP=`cat /etc/hosts | grep backup.test | cut -d" " -f1`
# Create server for tests
$ROOT_DIR
/scripts/create_vultr.sh server.test
$ROOT_DIR
/scripts/create_vultr.sh server.test
30
cat
$ROOT_DIR
/configs/server.config |
sed
s/##BACKUP_IP##/
$BACKUP_IP
/g
>
/tmp/server.config
scp /tmp/server.config root@server.test:/var/lib/coreos-install/user_data
scp
$ROOT_DIR
/scripts/install.sh root@server.test:/tmp/install.sh
...
...
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