setup information and scripts to get a local dev environment running in a VM
NOTE: This is purely for local development and needs heavy modifications to configure a production environment.
vagrant up
and vagrant provision
localhost:20022
. The login username and password are both vagrant
.website
directory and enter virtualenv: source ./venv/bin/activate
.localhost:20080
. If this does not work, you can also use 192.168.55.55:8000
You should now see the UPE website locally!deactivate
in the terminal to stop the virtualenv.If steps 1 and 2 for Windows/OS X work on Linux, follow the instructions above. On certain Linux systems VirtualBox may not install properly due to kernel version mismatch and other issues. In that case:
sudo apt-get install puppet
sudo puppet module install puppetlabs/vcsrepo
/etc/puppet/manifests
: sudo mv ./puppet/manifests/* /etc/puppet/manifests/
(Assuming current directory is the vagrant repo)/etc/puppet/modules
: sudo mv ./puppet/modules/* /etc/puppet/modules/
cd /etc/puppet/modules/upeweb/files
and sudo vim venv_setup.sh
HOMEDIR
with the home directory of your username (type whoami
in console to find out)WEBDIR
to your desired path.cd ../manifests
, then sudo vim init.pp
$cmd_user
with your username.$cmd_group
with your group. You can find this by typing in console groups
. Use somthing like users
or your username.$homedir
and $webdir
to values you modified in steps 6,7.cd /etc/puppet
sudo puppet apply /etc/puppet/manifests/default.pp
Notice: Finished catalog run in n seconds
.