Open Source For You — December 2017

(Steven Felgate) #1
Admin How To

38 | DECEMBER 2017 | OPEN SOURCE FOR YOU | http://www.OpenSourceForU.com

P


iwigo requires a MySQL database for its back-
end and has a number of extensions and plugins
developed by the community. You can install it on
any shared Web hosting service provider or install it on
your own GNU/Linux server. It basically uses the (G)
LAMP stack. In this article, we will use Ansible to install
and configure a Piwigo instance, which is released under the
GNU General Public License (GPL).
You can add photos using the Piwigo Web interface or use an
FTP client to synchronise the photos with the server. Each photo
is made available in nine sizes, ranging from XXS to XXL. A
number of responsive UI themes are available that make use
of these different photo sizes, depending on whether you are
viewing the gallery on a phone, tablet or computer. The software
also allows you to add a watermark to your photos, and you can
create nested albums. You can also tag your photos, and Piwigo
stores metadata about the photos too. You can even use access
control to make photos and albums private. My Piwigo gallery is
available at https://www.shakthimaan.in/gallery/.

Piwigo is Web based photo gallery software that is written in PHP. In
this tenth article in our DevOps series, we will use Ansible to install and
configure a Piwigo instance.

Linux
The Piwigo installation will be on an Ubuntu 15.04 image
running as a guest OS using KVM/QEMU. The host system
is a Parabola GNU/Linux-libre x86_64 system. Ansible is
installed on the host system using the distribution package
manager. The version of Ansible used is:

$ ansible --version
ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/home/shakthi/.ansible/
plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/site-
packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Sep 20 2017, 01:25:59)
[GCC 7.2.0]

The /etc/hosts file should have an entry for the guest

DevOps Series


Using Ansible to Deploy a


Piwigo Photo Gallery

Free download pdf