Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vagrantsetup
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
devbox
vagrantsetup
Commits
2ce6d81e
Commit
2ce6d81e
authored
Aug 01, 2019
by
Reimar Stier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parents
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
Vagrantfile
Vagrantfile
+36
-0
start.sh
start.sh
+6
-0
No files found.
Vagrantfile
0 → 100644
View file @
2ce6d81e
# -*- mode: ruby -*-
# vi: set ft=ruby :
disks
=
[
{
"name"
=>
"home"
,
"size"
=>
5
},
{
"name"
=>
"home"
,
"size"
=>
5
},
]
Vagrant
.
configure
(
"2"
)
do
|
config
|
config
.
vm
.
box
=
"geerlingguy/debian10"
config
.
vm
.
network
"private_network"
,
ip:
"10.10.0.2"
,
adapter:
2
config
.
vm
.
hostname
=
"devbox.devops.detss.corpintra.net"
config
.
disksize
.
size
=
"20GB"
config
.
vm
.
provider
"virtualbox"
do
|
vb
|
vb
.
memory
=
"4096"
vb
.
cpus
=
4
datadisk
=
"home.vmdk"
unless
File
.
exist?
(
datadisk
)
vb
.
customize
[
'createmedium'
,
'--filename'
,
datadisk
,
'--format'
,
'VMDK'
,
'--variant'
,
'Standard'
,
'--size'
,
16
*
1024
]
end
vb
.
customize
[
'storageattach'
,
:id
,
'--storagectl'
,
'SATA Controller'
,
'--port'
,
1
,
'--device'
,
0
,
'--type'
,
'hdd'
,
'--medium'
,
datadisk
]
end
config
.
vm
.
provision
"shell"
do
|
s
|
ssh_pub_key
=
File
.
readlines
(
"
#{
Dir
.
home
}
/.ssh/id_rsa.pub"
).
first
.
strip
s
.
inline
=
<<-
SHELL
echo
#{
ssh_pub_key
}
>> /home/vagrant/.ssh/authorized_keys
mkdir -p /root/.ssh
echo
#{
ssh_pub_key
}
>> /root/.ssh/authorized_keys
SHELL
end
end
start.sh
0 → 100644
View file @
2ce6d81e
export
https_proxy
=
http://127.0.0.1:3128
export
http_proxy
=
http://127.0.0.1:3128
export
VAGRANT_HTTP_PROXY
=
"
$http_proxy
"
vagrant up
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment