This stack is running the latest version of Drupal, nginx, and PHP FPM, and MySQL 5.6.
If you're new to Drupal, check out Getting started with Drupal 7 administration. The getting started document will help guide you through the initial steps of checking your site's status, customizing your site's information, adding users, and more!
After the stack has been created, you can find the admin username and password listed in the "Credentials" section of Stack Details.
If you provided a domain name that is associated with your Rackspace Cloud account and chose to create DNS records, you should be able to navigate to the provided domain name in your browser. If DNS has not been configured yet, please refer to this documentation on how to setup your hosts file to allow your browser to access your deployment via domain name. Please note: some applications like WordPress, Drupal, and Magento may not work properly unless accessed via domain name. DNS should point to the IP address of the Load Balancer.
Moving a Drupal site can be both difficult and time consuming. Drupal Modules such as the Backup and Migrate module can help you move your database content. We recommend backing everything up on both the source and destination locations before anything is done. The content you want to move over will be in the 'sites' directory. If you're running a single Drupal site, you may just need the content of 'sites/default/files' along with your database. Be careful not to overwrite the settings.php file within your site. It contains the database configuration for your site.
This deployment has all of the core Drupal files in place, and their permissions are properly set. Be careful with ownerhip and permissions as you move things over. If you're unsure, check the original ownership and permissions of the files in this deployment.
There are over 22,000 modules that have been created by an enaged developer community. The modules section on Drupal's website provides an easy way to search for and research modules.
This deployment is configured to be able to scale out easily. However, if you are expecting higher levels of traffic, please look into one of our larger-scale stacks.
This deployment was stood up using Ansible. Once the stack has been deployed, Ansible will not run again unless you update the stack. Any changes made to the configuration may be overwritten when the stack is updated.
Drupal was installed using Drush. Drupal is installed into /var/www/vhosts// and served by nginx.
Because this stack is intended for lower-traffic deployments, there is no caching configured.
Lsyncd has been installed in order to sync static content from the Master server to all secondary servers. When uploading content, it only needs to be uploaded to the Master node, and will be automatically synchronized to all secondary nodes.
MySQL is being hosted locally, running MySQL. Backups for MySQL are provided by Holland, which is running on the Master server.
Backups are configured using Cloud Backups. The Master server is configured to back up /var/spool/holland and /var/www once per week, and to retain these backups for 30 days.
In order to restore the Database from backup, you will need to first restore /var/spool/holland from the appropriate Cloud Backup. After you have done so, you will need to log into the Master server and restore the Holland backup to the database via the MySQL client. For more assistance, please contact your Support team.
Monitoring is configured to verify that Apache is running on both the Master and all secondary servers, as well as that the Cloud Load Balancer is functioning. Additionally, the default CPU, RAM, and Filesystem checks are in place on all servers.
Drupal does provide community documentation on how to upgrade your installation of Drupal. There are several steps involved with the upgrade process. First, make sure to backup your site files and your database prior to taking any steps to replace the core site files. There are number of other tutorials available on places like YouTube that can also step you though the upgrade/update process. There is not currently a way to perform these upgrades automatically through the admin interface.
The private key provided in the passwords section can be used to login as root via SSH. We have an article on how to use these keys with Mac OS X and Linux as well as Windows using PuTTY.
This stack will not ensure that Drupal or the servers themselves are up-to-date. You are responsible for ensuring that all software is updated.
- A Heat provider that supports the following:
- OS::Heat::RandomString
- OS::Heat::SoftwareConfig
- OS::Heat::SoftwareDeployment
- OS::Nova::KeyPair
- OS::Nova::Server
- Rackspace::Cloud::BackupConfig
- Rackspace::CloudMonitoring::Check
- An OpenStack username, password, and tenant id.
- python-heatclient
>= v0.2.8
:
pip install python-heatclient
We recommend installing the client within a Python virtual environment.
Parameters can be replaced with your own values when standing up a stack. Use
the -P
flag to specify a custom parameter.
drupal_url
: Domain to use with Drupal Site (Default: example.com)drupal_sitename
: Title to use for Drupal Site (Default: Example Site)drupal_user
: Username for Drupal login (Default: admin)drupal_email
: E-mail Address for Drupal Admin User (Default: admin@example.com)server_flavor
: Flavor of Cloud Server to use (Default: 4 GB General Purpose v1)server_image
: Image to use for WordPress (Default: f4bbbce2-50b0-4b07-bf09-96c175a45f4b)ansible_branch
: The Ansible Roles will be pulled from Git, using the tag or branch provided (Default: stable)ansible_repo
: The Ansible Roles will be pulled from Git, using the repo provided (Default: https://github.com/rackspace-orchestration-templates/ansible-roles.git)
Once a stack comes online, use heat output-list
to see all available outputs.
Use heat output-show <OUTPUT NAME>
to get the value of a specific output.
drupal_login_user
: Drupal Admin Userdrupal_login_password
: Drupal Admin Passworddrupal_public_ip
: Server IPdrupal_admin_url
: Drupal Admin URLdrupal_public_url
: Drupal Public URLphpmyadmin_url
: PHPMyAdmin URLmysql_user
: Database Usermysql_password
: Database Passwordssh_private_key
: SSH Private Key
For multi-line values, the response will come in an escaped form. To get rid of
the escapes, use echo -e '<STRING>' > file.txt
. For vim users, a substitution
can be done within a file using %s/\\n/\r/g
.