Created
June 25, 2015 17:59
-
-
Save MarZab/27c3c1261a57942718fc to your computer and use it in GitHub Desktop.
Ajenti Demo Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo ':: Installing repo key' | |
wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
echo ':: Adding repo entry' | |
echo "deb http://repo.ajenti.org/debian main main debian" >> /etc/apt/sources.list.d/ajenti.list | |
echo ':: Updating lists' | |
apt-get update | |
echo ':: Installing package' | |
apt-get install -y ajenti | |
echo ':: Installing Ajenti V' | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password password some_password' | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password some_password' | |
apt-get install -y ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql | |
echo ':: Removing SSL (todo bug)' | |
sed -i 's/"enable": true/"enable": false/g' /etc/ajenti/config.json | |
echo ':: Done! Open https://<address>:8000 in browser' | |
echo ':: The default username is root, and the password is admin' | |
service ajenti restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.hostname = "ajenti-dev" | |
config.vm.network "private_network", ip: "192.168.150.170" | |
config.vm.network "forwarded_port", guest: 8000, host: 8000 | |
#config.vm.network "forwarded_port", guest: 80, host: 80 | |
config.vm.provision :shell, path: "bootstrap.sh" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
vb.customize ["modifyvm", :id, "--cpus", "1"] | |
vb.customize ["modifyvm", :id, "--ioapic", "on"] | |
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/cross-compiler", "1"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment