Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
specki
ansible-warpzone
Commits
7d4f7276
Commit
7d4f7276
authored
8 years ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
vagrant arbeitzumgebung
parent
3821f12a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
VagrantPutty.bat
+18
-0
18 additions, 0 deletions
VagrantPutty.bat
Vagrantfile
+81
-0
81 additions, 0 deletions
Vagrantfile
with
101 additions
and
0 deletions
.gitignore
0 → 100644
+
2
−
0
View file @
7d4f7276
/.vagrant
/*.retry
This diff is collapsed.
Click to expand it.
VagrantPutty.bat
0 → 100644
+
18
−
0
View file @
7d4f7276
rem Vagrant VM für Ansible Arbeitsumgebung
rem Unter Windows müssen die folgenden Git-Einstellungen
rem gesetzt werden damit die Dateien lokal mit LF als Dateiendungen
rem vorliegen:
rem $ git config core.eol lf
rem $ git config core.autocrlf input
rem Vagrant VM Starten
vagrant
up
rem SSH Verbindung über PuTTY mit https://github.com/nickryand/vagrant-multi-putty
vagrant
putty
--
-l
vagrant
-pw
vagrant
pause
rem Vagrant VM Stoppen
vagrant
halt
This diff is collapsed.
Click to expand it.
Vagrantfile
0 → 100644
+
81
−
0
View file @
7d4f7276
Vagrant
.
configure
(
2
)
do
|
config
|
# Debian Jessie + VirtualBox Addons
config
.
vm
.
box
=
"debian/contrib-jessie64"
# Hostname
config
.
vm
.
hostname
=
"box"
# Customize
config
.
vm
.
provider
"virtualbox"
do
|
vb
|
vb
.
memory
=
"512"
vb
.
cpus
=
2
vb
.
linked_clone
=
true
end
# Enable Agent forwarding
config
.
ssh
.
forward_agent
=
true
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
echo "######################################################"
echo "Setup Debian Testing ..."
echo "######################################################"
echo "deb http://httpredir.debian.org/debian testing main contrib non-free" > /etc/apt/sources.list
echo "deb http://security.debian.org/ testing/updates main contrib non-free" >> /etc/apt/sources.list
sudo apt-get update
# Avoid service sestart question if libc is upgraded
echo 'libc6 libraries/restart-without-asking boolean true' | sudo debconf-set-selections
echo "######################################################"
echo "Installing Vim ..."
echo "######################################################"
sudo apt-get install -y vim
echo "######################################################"
echo "Installing Git ..."
echo "######################################################"
sudo apt-get install -y git
echo "######################################################"
echo "Installing Fish Shell ..."
echo "######################################################"
sudo apt-get install -y fish
# Set FiSH Shell as default Login Shell
sudo chsh -s /usr/bin/fish vagrant
# Create a FiSH base config
mkdir -p -v /home/vagrant/.config/fish/
curl https://raw.githubusercontent.com/elberfeld/fish/master/config.fish > /home/vagrant/.config/fish/config.fish
chown vagrant:vagrant -v -R /home/vagrant/.config
# Change to /vagrant/ directory on Login
echo "cd /vagrant/" >> /home/vagrant/.config/fish/config.fish
echo "######################################################"
echo "Installing Ansible ..."
echo "######################################################"
sudo apt-get install -y python python-pip python-dev libffi6 libffi-dev libssl-dev
sudo pip install ansible markupsafe netaddr
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config
echo "[defaults]" > /home/vagrant/.ansible.cfg
echo "inventory = /vagrant/hosts" >> /home/vagrant/.ansible.cfg
echo "######################################################"
echo "DONE"
echo "######################################################"
SHELL
end
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