FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
roadmap-devenv/Vagrantfile at MySQL · DMPRoadmap/roadmap-devenv · GitHub
This repository was archived by the owner on Sep 27, 2018. It is now read-only.
DMPRoadmap
roadmap-devenv
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
roadmap-devenv
/
Vagrantfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
100 lines (86 loc) · 3.87 KB
Breadcrumbs
roadmap-devenv
/
Vagrantfile
Copy path
File metadata and controls
100 lines (86 loc) · 3.87 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# -*- mode: ruby -*-
# vi: set ft=ruby :
# avoids having to $ vagrant up --provider docker
ENV
[
'VAGRANT_DEFAULT_PROVIDER'
]
||=
'docker'
# build one image before the other (no race)
# ENV['VAGRANT_NO_PARALLEL'] = 'yes'
Vagrant
.
configure
(
2
)
do
|
config
|
config
.
vm
.
define
'db'
do
|
db
|
db
.
vm
.
provider
'docker'
do
|
d
|
d
.
force_host_vm
=
false
#build from the Dockerfile
d
.
build_dir
=
'.'
d
.
name
=
'vagrant-db'
d
.
create_args
=
[
"--privileged"
,
"-v"
,
"/sys/fs/cgroup:/sys/fs/cgroup:ro"
,
"--net=dmpbridge"
,
"--ip=172.18.0.2"
,
]
d
.
ports
=
[
"5435:5435"
,
"3306:3306"
,
"4022:22"
]
#the docker image must remain running for SSH (See the Dockerfile)
d
.
remains_running
=
true
d
.
has_ssh
=
true
end
db
.
vm
.
host_name
=
'dmproadmap-db'
db
.
ssh
.
port
=
"4022"
db
.
ssh
.
host
=
"127.0.0.1"
db
.
vm
.
network
:forwarded_port
,
host
:
3306
,
guest
:
3306
db
.
vm
.
network
:forwarded_port
,
host
:
5435
,
guest
:
5435
db
.
vm
.
provision
:shell
do
|
shell
|
shell
.
inline
=
"
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/vcsrepo;
puppet module install --modulepath /opt/puppetlabs/puppet/modules jfryman/nginx;
puppet module install --modulepath /opt/puppetlabs/puppet/modules maestrodev/rvm;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/mysql;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/postgresql;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppet/nodejs;
puppet module install --modulepath /opt/puppetlabs/puppet/modules stahnma/epel;
"
end
db
.
vm
.
provision
:puppet
do
|
puppet
|
puppet
.
environment
=
'development'
puppet
.
environment_path
=
'environments'
puppet
.
options
=
[
"--fileserverconfig=/vagrant/fileserver.conf"
,
]
puppet
.
facter
=
{
"vagrant"
=>
"1"
}
end
end
config
.
vm
.
define
'dev'
do
|
dev
|
dev
.
vm
.
provider
'docker'
do
|
d
|
d
.
force_host_vm
=
false
#build from the Dockerfile
d
.
build_dir
=
'.'
d
.
name
=
'vagrant-dev'
d
.
create_args
=
[
"--privileged"
,
"-v"
,
"/sys/fs/cgroup:/sys/fs/cgroup:ro"
,
"--net=dmpbridge"
,
"--ip=172.18.0.1"
,
]
#the docker image must remain running for SSH (See the Dockerfile)
d
.
remains_running
=
true
d
.
has_ssh
=
true
d
.
ports
=
[
"8080:80"
,
"5022:22"
]
end
dev
.
vm
.
host_name
=
'dmproadmap-dev'
dev
.
vm
.
synced_folder
'src'
,
'/opt/src'
dev
.
vm
.
network
:forwarded_port
,
host
:
8080
,
guest
:
80
#web
dev
.
ssh
.
host
=
"127.0.0.1"
dev
.
ssh
.
port
=
"5022"
dev
.
vm
.
provision
:shell
do
|
shell
|
shell
.
inline
=
"
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/vcsrepo;
puppet module install --modulepath /opt/puppetlabs/puppet/modules jfryman/nginx;
puppet module install --modulepath /opt/puppetlabs/puppet/modules maestrodev/rvm;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/mysql;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppetlabs/postgresql;
puppet module install --modulepath /opt/puppetlabs/puppet/modules puppet/nodejs;
puppet module install --modulepath /opt/puppetlabs/puppet/modules stahnma/epel;
"
end
dev
.
vm
.
provision
:puppet
do
|
puppet
|
puppet
.
environment
=
'development'
puppet
.
environment_path
=
'environments'
puppet
.
options
=
[
"--fileserverconfig=/vagrant/fileserver.conf"
,
]
puppet
.
facter
=
{
"vagrant"
=>
"1"
}
end
end
end
Back
|
FazBrowse Home
|
New Git URL