Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
c62ff5f3
Commit
c62ff5f3
authored
Feb 24, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a vagrant file to let you run one role against a vagrant box.
parent
76ca39e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
vagrant/base/test_role/Vagrantfile
+27
-0
vagrant/base/test_role/ansible.cfg
+2
-0
No files found.
vagrant/base/test_role/Vagrantfile
0 → 100644
View file @
c62ff5f3
MEMORY
=
2048
CPU_COUNT
=
2
Vagrant
.
configure
(
"2"
)
do
|
config
|
config
.
vm
.
box
=
"precise64"
config
.
vm
.
box_url
=
"http://files.vagrantup.com/precise64.box"
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.20"
config
.
vm
.
provider
:virtualbox
do
|
vb
|
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
MEMORY
.
to_s
]
# You can adjust this to the amount of CPUs your system has available
vb
.
customize
[
"modifyvm"
,
:id
,
"--cpus"
,
CPU_COUNT
.
to_s
]
# Allow DNS to work for Ubuntu 12.10 host
# http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
end
config
.
vm
.
provision
:ansible
do
|
ansible
|
# point Vagrant at the location of your playbook you want to run
ansible
.
playbook
=
"../../../playbooks/run_role.yml"
ansible
.
verbose
=
"extra"
ansible
.
extra_vars
=
{
role:
ENV
[
'VAGRANT_ANSIBLE_ROLE'
]
}
end
end
vagrant/base/test_role/ansible.cfg
0 → 120000
View file @
c62ff5f3
../../../playbooks/ansible.cfg
\ No newline at end of file
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