This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
MoT3rror/MoT3rror_MAAS_Server
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Steps //Bring nodes back to ready if stuck from maasserver.models import Node from maasserver.enum import NODE_STATUS node = Node.objects.get(hostname='$hostname') node.release() node.save() //Make sure to use this repository for latest bugs fixes sudo add-apt-repository ppa:juju/stable //Use if having issue with tools cloud-init juju sync-tools juju bootstrap --upload-tools //CPU Info cat /proc/cpuinfo //Memory Info cat /proc/meminfo //HardDrive Size df -H //Apache setup run after deploy and expose juju set apache2 "vhost_http_template=$(base64 < vhost.tmpl)" juju set apache2 "vhost_https_template=$(base64 < vhostsecure.tmpl)" //Sample vhost.tmpl <VirtualHost *:80> DocumentRoot "/var/www" ServerAdmin root@localhost <Directory "/var/www"> Options all AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> //lithium and htmlPurifier need to go in /usr/local/lib wget https://github.com/UnionOfRAD/lithium/archive/master.zip unzip master.zip mv lithium-master lithium wget http://htmlpurifier.org/releases/htmlpurifier-4.5.0.zip uzip htmlpurifier-4.5.0.zip mv htmlpurifier-4.5.0/libraries HTMLPurifier //turn on mod rewrite a2enmod rewrite //Copy files from local to remote scp -r sourcedir/ [email protected]:/dest/dir/ ab -n 1000 -c 5 http://192.168.15.103/index.html -n = number of requests -c = number of requests per cycle //Have to run on web servers to get php(make charm to do this) sudo apt-get install php5 libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql mysql user: websiteconn pass: yourwebsite //grant all privileges to a user, should specify host through GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION;
About
My MAAS and juju setup guide
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published