Install: Dependencies (Develop Branch) - Cloudbox/Cloudbox GitHub Wiki
Here you will install the Dependencies and download the Cloudbox Repository.
Note: You can run the following commands from any path.
Note: Source for Develop branch scripts can be found here.
There are a lot of changes are going on in the develop branch and things are being ironed out as I get around to fixing them. So I would recommend that users avoid switching to Dev branch for now, unless there are willing to deal with occasional oddities, quirks, and bugs. Consider current develop branch an alpha build rather than a beta one.
Choose between New Installs (Systems without CB) OR Master --> Develop Migration install steps.
Use this method on a system which does not already have Cloudbox installed.
Run the following command:
curl -s https://raw.githubusercontent.com/Cloudbox/cb/develop/cb_install.sh | sudo -H bash; cd /srv/git/cloudbox
Click for an alternative that uses wget [an alternative to curl].
wget -qO- https://raw.githubusercontent.com/Cloudbox/cb/develop/cb_install.sh | sudo -H bash; cd /srv/git/cloudbox
Cloudbox will clone to /srv/git/cloudbox
.
Carry on with your cloudbox install as per the wiki, up to the "Install Cloudbox/Mediabox/Feederbox" step then proceed to the next step on this page. If you skip those steps and install Cloudbox/Mediabox/Feederbox right now you will have problems. Creation of .ansible_vault
will need to be done after you have created your user. If you use the preinstall role to create the user for you then you should do this step afterwards.
NOTE: You need to have completed steps 3-7 in the regular install before you do this.
NOTE: You should NOT be logged into your server as root
at this point. You should be logged in as the user you created/specified in the preinstall.
cb install cloudbox
A symlink to /srv/git/cloudbox
will be created at ~/cloudbox
.
Need to be out of ~/cloudbox
folder for this.
You can now use cb install <rolename>
to run Cloudbox roles from anywhere; you do not need to be in ~/cloudbox
.
Use these instructions to migrate an existing master branch Cloudbox system to the current develop branch.
cd ~/cloudbox
git fetch
git reset --hard @{u}
git checkout develop
git reset --hard @{u}
Two resets to resolve potential merge conflicts and other git-related issues.
sudo pip install 'ansible>=2.9,<2.10'
cd ~/cloudbox
sudo ansible-playbook cloudbox.yml --tags user
Cloudbox will cloned to /srv/git/cloudbox
and your config files will be copied there as well.
You can remove the backup folder (~/cloudbox_REMOVE_ME
) if you choose.
cd ~/
cb install user
A symlink to /srv/git/cloudbox
will be created at ~/cloudbox
.
Need to be out of ~/cloudbox
folder for this.
You can now use cb install <rolename>
to run roles from anywhere.