Customization - OggettoWeb/boilerplate GitHub Wiki
Customization
Puppet scripts
Boilerplate is built with puppet scripts and hiera configuration.
Used modules are attached as git submodules to the setup/provision/modules
directory.
Scripts which are used to setup Magento are located in custom puppet module under setup/provision/modules/project
.
This is where you could change something, or require additional puppet modules.
Hiera files are located under setup/provision/hiera/...
. If you are going to use boilerplate scripts to provision remote servers you should copy setup/provision/hiera/nodes/localhost.yaml
into setup/provision/hiera/nodes/[fqdn].yaml
, where [fqdn]
should be replaced with FQDN of the remote server
(see more info in hiera manuals).
local.xml
During the provisioning puppet will overwrite app/etc/local.xml
file with it's own, so if you have
extra options there, edit the template: setup/provision/modules/project/templates/mage/app/etc/local.xml.erb
.
This template takes variables from project::magento::install
hiera namespace.
DB sync script
Once DB is synced with backup its modified according to local setup. This modification script could be found at: setup/sql/adapt.sh