Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cyber-sandbox-creator
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
MUNI-KYPO-CSC
cyber-sandbox-creator
Commits
bf06ca27
Commit
bf06ca27
authored
5 years ago
by
Attila Farkas
Browse files
Options
Downloads
Patches
Plain Diff
change sudo to become and update readme
parent
09b1f322
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Resolve "Add routing"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
templates/host
+1
-1
1 addition, 1 deletion
templates/host
templates/router
+2
-2
2 additions, 2 deletions
templates/router
with
4 additions
and
4 deletions
README.md
+
1
−
1
View file @
bf06ca27
...
...
@@ -8,7 +8,7 @@ generate.py is a python program that generates a vagrant source file from a defi
### Usage:
1.
Clone the project.
2.
Navigate to the project folder.
3.
Type
`$ python generate.py yaml_file.yaml`
. There is a test yaml file in the repository called test.yaml.
3.
Type
`$ python
3
generate.py yaml_file.yaml`
. There is a test yaml file in the repository called test.yaml.
4.
Run
`$ vagrant up`
### Input yaml file structure
...
...
This diff is collapsed.
Click to expand it.
templates/host
+
1
−
1
View file @
bf06ca27
...
...
@@ -5,7 +5,7 @@
tasks:
- name: Change default gateway
sudo
: yes
become
: yes
command: route add default gw {{ host.router_ip }} enp0s8
{% endfor %}
...
...
This diff is collapsed.
Click to expand it.
templates/router
+
2
−
2
View file @
bf06ca27
...
...
@@ -5,13 +5,13 @@
tasks:
- name: Enable IP forwarding
sudo
: yes
become
: yes
copy:
dest: "/etc/sysctl.conf"
content: "net.ipv4.ip_forward=1"
- name: Restarting procps service
sudo
: yes
become
: yes
command: /etc/init.d/procps restart
{% endfor %}
...
...
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