[root@localhost userx]# sudo meza deploy monolith --list-tasks
Play 1 - Init
editplay #1 (localhost): localhost TAGS: [] tasks: Ensure no password on meza-ansible user on controller TAGS: [] Ensure controller has user alt-meza-ansible TAGS: [] Ensure user alt-meza-ansible .ssh dir configured TAGS: [] Copy meza-ansible keys to alt-meza-ansible TAGS: [] Copy meza-ansible known_hosts to alt-meza-ansible TAGS: [] Ensure secret.yml owned by meza-ansible TAGS: [] Ensure /opt/conf-meza owned by meza-ansible TAGS: []
Play 2 - UMASK
editplay #2 (all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal): all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal TAGS: [] tasks: umask-set : Set umask for duration of deploy TAGS: []
Play 3 - Controller, Autodeployer
editplay #3 (localhost): localhost TAGS: [controller,autodeployer] tasks: set-vars : Set OS-family specific variables TAGS: [autodeployer, controller] set-vars : Set meza-core path variables TAGS: [autodeployer, controller] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [autodeployer, controller] set-vars : Set meza local public variables TAGS: [autodeployer, controller] set-vars : Get individual wikis dirs from localhost TAGS: [autodeployer, controller] set_fact TAGS: [autodeployer, controller] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [autodeployer, controller] set-vars : Set meza local secret variables TAGS: [autodeployer, controller] init-controller-config : Does controller have local config TAGS: [autodeployer, controller] init-controller-config : Get local config repo if set TAGS: [autodeployer, controller] init-controller-config : Does controller have local config TAGS: [autodeployer, controller] init-controller-config : Ensure m_local_public configured on controller TAGS: [autodeployer, controller, file-perms] init-controller-config : Ensure m_local_public/wikis exists TAGS: [autodeployer, controller] init-controller-config : Ensure pre/post settings directories exists in config TAGS: [autodeployer, controller] init-controller-config : Ensure base files present, do NOT overwrite TAGS: [autodeployer, controller] init-controller-config : Ensure {{ m_meza }} properly owned TAGS: [autodeployer, controller, file-perms] init-controller-config : Ensure {{ m_local_secret }} directories properly owned/moded TAGS: [autodeployer, controller, file-perms] init-controller-config : Ensure {{ m_local_secret }} files properly owned/moded TAGS: [autodeployer, controller, file-perms] set_fact TAGS: [autodeployer, controller] set_fact TAGS: [autodeployer, controller] Ensure autodeployer cron in place TAGS: [autodeployer, controller]
Play 4 - facts
editplay #4 (localhost): localhost TAGS: []== tasks: set-vars : Set OS-family specific variables TAGS: [] set-vars : Set meza-core path variables TAGS: [] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [] set-vars : Set meza local public variables TAGS: [] set-vars : Get individual wikis dirs from localhost TAGS: [] set_fact TAGS: [] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [] set-vars : Set meza local secret variables TAGS: [] set_fact TAGS: [] set_fact TAGS: [] Ensure autodeployer cron in place TAGS: []
Play 5 - base
editplay #5 (all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal): all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal TAGS: [base] tasks: set-vars : Set OS-family specific variables TAGS: [base] set-vars : Set meza-core path variables TAGS: [base] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [base] set-vars : Set meza local public variables TAGS: [base] set-vars : Get individual wikis dirs from localhost TAGS: [base] set_fact TAGS: [base] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [base] set-vars : Set meza local secret variables TAGS: [base] base : Ensure user's meza-ansible and alt-meza-ansible in group "wheel" TAGS: [base] base : Ensure user alt-meza-ansible .ssh dir configured TAGS: [base] base : Copy meza-ansible authorized_keys to alt-meza-ansible TAGS: [base] base : Ensure user meza-ansible and alt-meza-ansible authorized_keys configured TAGS: [base] base : Set authorized key for alt-meza-ansible TAGS: [base] base : Ensure no password on alt-meza-ansible user TAGS: [base] base : Ensure /etc/sudoers.d/meza-ansible in place TAGS: [base] base : Ensure PackageKit is removed so it doesn't try to upgrade packages on its own TAGS: [base] base : ensure deltarpm is installed and latest TAGS: [base, latest] base : Ensure apt cache updated (Debian only) TAGS: [base] base : Ensure aptitude installed in order to use Ansible 'package' (Debian only) TAGS: [base] base : upgrade all packages TAGS: [base, latest] base : Ensure EPEL installed via epel-release package (CentOS only) TAGS: [base, latest] base : Check if EPEL repo is already configured (RedHat only) TAGS: [base, latest] base : Ensure EPEL installed via URL (RedHat only) TAGS: [base, latest] base : Import EPEL GPG key (RedHat only) TAGS: [base, latest] base : Ensure optional repos enabled (RedHat Only) TAGS: [base, latest] base : ensure libselinux-python installed prior to SELinux (RedHat/CentOS only) TAGS: [base, latest] Ensure base packages installed TAGS: [base, latest] base : Ensure selinux-policy installed (RedHat/CentOS only) TAGS: [base, latest] base : put SELinux in permissive mode (RedHat/CentOS only) TAGS: [base] base : Ensure firewalld is running and enable it at boot (RedHat/CentOS only) TAGS: [base] base : Ensure UFW is enabled and denying access by default (Debian only) TAGS: [base] ufw TAGS: [base] base : Ensure sshd is running and enabled TAGS: [base] base : Ensure SSH client and SSH Daemon configs in place TAGS: [base] base : Ensure SSH client and SSH Daemon configs in place TAGS: [base] base : Install NTP TAGS: [base, latest] base : Ensure NTP is running and enabled as configured. TAGS: [base] base : Copy the ntp.conf template file TAGS: [base] base : Ensure data directory configured TAGS: [base] base : Ensure deploy directory in place TAGS: [base] base : Ensure {{ m_tmp }} exists TAGS: [base] base : Ensure {{ m_logs }} exists TAGS: [base] base : Ensure {{ m_logs }} sub directories exist TAGS: [base] base : Ensure crontab empty for meza-ansible when overwriting wikis TAGS: [base] base : Ensure CA package installed TAGS: [base] base : Copy any custom PEM-format CA certs into place TAGS: [base] base : Copy any custom OpenSSL extended-format CA certs into place TAGS: [base] base : Update CA trust if certs changed TAGS: [base] base : Ensure meza-ansible has .gitconfig TAGS: [base] base-config-scripts : Ensure config variables available in PHP and shell files TAGS: [base]
Play 6 - haproxy and load-balancers
editplay #6 (load-balancers,load-balancers-meza-internal,load-balancers-meza-external): load-balancers,load-balancers-meza-internal,load-balancers-meza-external TAGS: [haproxy,load-balancers,load-balancer]== tasks: set-vars : Set OS-family specific variables TAGS: [haproxy, load-balancer, load-balancers] set-vars : Set meza-core path variables TAGS: [haproxy, load-balancer, load-balancers] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [haproxy, load-balancer, load-balancers] set-vars : Set meza local public variables TAGS: [haproxy, load-balancer, load-balancers] set-vars : Get individual wikis dirs from localhost TAGS: [haproxy, load-balancer, load-balancers] set_fact TAGS: [haproxy, load-balancer, load-balancers] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [haproxy, load-balancer, load-balancers] set-vars : Set meza local secret variables TAGS: [haproxy, load-balancer, load-balancers] set_fact TAGS: [haproxy, load-balancer, load-balancers] set_fact TAGS: [haproxy, load-balancer, load-balancers] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [haproxy, load-balancer, load-balancers] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [haproxy, load-balancer, load-balancers] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [haproxy, load-balancer, load-balancers] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [haproxy, load-balancer, load-balancers] set_fact TAGS: [haproxy, load-balancer, load-balancers] set_fact TAGS: [haproxy, load-balancer, load-balancers] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [haproxy, load-balancer, load-balancers] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [haproxy, load-balancer, load-balancers] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [haproxy, load-balancer, load-balancers] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [haproxy, load-balancer, load-balancers] haproxy : Set fact if this load balancer will handle external connections (80/443) TAGS: [haproxy, load-balancer, load-balancers] haproxy : Set fact if this load balancer will NOT handle external connections TAGS: [haproxy, load-balancer, load-balancers] haproxy : Set fact if this load balancer will handle internal connections TAGS: [haproxy, load-balancer, load-balancers] haproxy : Set fact if this load balancer will NOT handle internal connections TAGS: [haproxy, load-balancer, load-balancers] Install haproxy packages TAGS: [haproxy, load-balancer, load-balancers] Ensure haproxy certs directory exists TAGS: [haproxy, load-balancer, load-balancers] haproxy : Check if secret config on CONTROLLER has SSL keys TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure config SSL directory exists TAGS: [haproxy, load-balancer, load-balancers] haproxy : If not exists, create self-signed SSL cert on CONTROLLER TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure SSL cert and key are encrypted TAGS: [haproxy, load-balancer, load-balancers] haproxy : Read SSL key into variable TAGS: [haproxy, load-balancer, load-balancers] haproxy : Read SSL cert into variable TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure SSL cert on load balancers TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure SSL key on load balancers TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure cert and key assembled into into pem file TAGS: [haproxy, load-balancer, load-balancers] Ensure haproxy certs have secure permissions TAGS: [haproxy, load-balancer, load-balancers] write the haproxy config file TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure error files directory in place TAGS: [haproxy, load-balancer, load-balancers] haproxy : Ensure error pages in place TAGS: [haproxy, load-balancer, load-balancers] Ensure firewalld haproxy service files in place TAGS: [haproxy, load-balancer, load-balancers] Ensure SELinux context for firewalld haproxy service files TAGS: [haproxy, load-balancer, load-balancers] haproxy : Create list of ports to open to the world TAGS: [haproxy, load-balancer, load-balancers] haproxy : Add port 20000 to world-accessible list if installing netdata TAGS: [haproxy, load-balancer, load-balancers] Ensure port {{ fully_open_ports | join(', ') }} open to the world for haproxy TAGS: [haproxy, load-balancer, load-balancers] Ensure firewall port 1936 OPEN when haproxy stats ENABLED TAGS: [haproxy, load-balancer, load-balancers] Ensure firewall port 1936 CLOSED when haproxy stats DISABLED TAGS: [haproxy, load-balancer, load-balancers] Ensure firewall port 8088 OPEN when PHP profiling ENABLED TAGS: [haproxy, load-balancer, load-balancers] Ensure firewall port 8088 CLOSED when PHP profiling DISABLED TAGS: [haproxy, load-balancer, load-balancers] haproxy : Uncomment '$ModLoad imudp' in /etc/rsyslog.conf TAGS: [haproxy, load-balancer, load-balancers] haproxy : Uncomment '$UDPServerRun 514' in /etc/rsyslog.conf TAGS: [haproxy, load-balancer, load-balancers] Ensure /etc/rsyslog.d/haproxy.conf configured TAGS: [haproxy, load-balancer, load-balancers] ensure haproxy is running (and enable it at boot) TAGS: [haproxy, load-balancer, load-balancers]
Play 7 - Apache-php, Imagemagick
editplay #7 (app-servers): app-servers TAGS: [apache-php] tasks: set-vars : Set OS-family specific variables TAGS: [apache-php] set-vars : Set meza-core path variables TAGS: [apache-php] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [apache-php] set-vars : Set meza local public variables TAGS: [apache-php] set-vars : Get individual wikis dirs from localhost TAGS: [apache-php] set_fact TAGS: [apache-php] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [apache-php] set-vars : Set meza local secret variables TAGS: [apache-php] set_fact TAGS: [apache-php] set_fact TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [apache-php] set_fact TAGS: [apache-php] set_fact TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [apache-php] Install base-extras packages TAGS: [apache-php] imagemagick : Ensure old ImageMagick installed from Meza RPM is removed (RedHat/CentOS only) TAGS: [apache-php] imagemagick : Ensure Imagemagick and ghostscript installed TAGS: [apache-php, latest] imagemagick : Copy xpdf bin64 files to /usr/local/bin TAGS: [apache-php] apache-php : Ensure Apache webserver installed TAGS: [apache-php] apache-php : Make apache own htdocs directory TAGS: [apache-php] apache-php : Ensure mw-temp directory configured TAGS: [apache-php] apache-php : Ensure user meza-ansible and alt-meza-ansible in group "apache" TAGS: [apache-php] apache-php : write the apache config file TAGS: [apache-php] apache-php : Ensure Apache environment variables set properly TAGS: [apache-php] apache-php : Install php dependency packages TAGS: [apache-php] apache-php : Install IUS repo. TAGS: [apache-php] apache-php : Import IUS Community Project GPG key TAGS: [apache-php] apache-php : Remove PHP 5.x packages TAGS: [apache-php] apache-php : Check if {{ php_ius_version }} package is installed TAGS: [apache-php] debug TAGS: [apache-php] apache-php : Remove any other PHP packages from IUS repo if correct PHP is not installed TAGS: [apache-php] apache-php : Ensure PHP IUS packages installed TAGS: [apache-php] apache-php : Add repository for PHP versions (Ubuntu). TAGS: [apache-php] apache-php : Add repository for PHP 5 compatibility packages (Ubuntu). TAGS: [apache-php] apache-php : Add dependencies for PHP versions (Debian). TAGS: [apache-php] apache-php : Add Ondrej Sury's apt key (Debian). TAGS: [apache-php] apache-php : Add Ondrej Sury's repo (Debian). TAGS: [apache-php] apache-php : Update apt caches after repo is added (Debian). TAGS: [apache-php] apache-php : Set fact for list of PHP versions to ensure absent TAGS: [apache-php] apache-php : Purge PHP version packages. TAGS: [apache-php] apache-php : Ensure PHP packages are installed. TAGS: [apache-php] apache-php : Ensure prerequisites for sqlsrv in place TAGS: [apache-php] apache-php : install mssql-server repo (CentOS, RedHat) TAGS: [apache-php] apache-php : Ensure conflicting ODBC drivers removed TAGS: [apache-php] apache-php : install MS ODBC driver package TAGS: [apache-php] apache-php : install ODBC driver devel package TAGS: [apache-php] apache-php : Ensure PEAR channel up-to-date TAGS: [apache-php] apache-php : Install sqlsrv and pdo_sqlsrv PECL packages TAGS: [apache-php] template TAGS: [apache-php] template TAGS: [apache-php] apache-php : Write php.ini file TAGS: [apache-php] apache-php : Write php.d ini files TAGS: [apache-php] apache-php : Write freetds.conf file TAGS: [apache-php] apache-php : Ensure Apache modules installed (RedHat/CentOS only) TAGS: [apache-php] apache-php : Ensure Apache modules installed (Debian only) TAGS: [apache-php] apache-php : Ensure Apache modules enabled (Debian only) TAGS: [apache-php] Ensure Composer configured TAGS: [apache-php] apache-php : Check if MongoDB service exists TAGS: [apache-php] apache-php : Stop MongoDB service if profiling is disabled TAGS: [apache-php] apache-php : ensure apache is running (and enable it at boot) TAGS: [apache-php] netdata : Check if Netdata is present TAGS: [apache-php] debug TAGS: [apache-php] debug TAGS: [apache-php] netdata : Install Intel/AMD 64bit static build of Netdata TAGS: [apache-php] set_fact TAGS: [apache-php] set_fact TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [apache-php] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [apache-php] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [apache-php]
Play 8 - Gluster
editplay #8 (app-servers): app-servers TAGS: [gluster] tasks: set-vars : Set OS-family specific variables TAGS: [gluster] set-vars : Set meza-core path variables TAGS: [gluster] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [gluster] set-vars : Set meza local public variables TAGS: [gluster] set-vars : Get individual wikis dirs from localhost TAGS: [gluster] set_fact TAGS: [gluster] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [gluster] set-vars : Set meza local secret variables TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] set_fact TAGS: [gluster] set_fact TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [gluster] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [gluster] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [gluster] gluster : Include OS-specific variables. TAGS: [gluster] gluster : Ensure repo in place for RHEL TAGS: [gluster] gluster : Ensure CentOS prerequisites in place TAGS: [gluster] gluster : Install Packages TAGS: [gluster] gluster : Add PPA for GlusterFS. TAGS: [gluster] gluster : Ensure GlusterFS will reinstall if the PPA was just added. TAGS: [gluster] gluster : Ensure GlusterFS is installed. TAGS: [gluster] gluster : Ensure GlusterFS is started and enabled at boot. TAGS: [gluster] gluster : Ensure Gluster brick and mount directories exist. TAGS: [gluster] gluster : Configure Gluster volume. TAGS: [gluster] gluster : Ensure Gluster volume is mounted. TAGS: [gluster]
Play 9 - Memecached
editplay #9 (memcached-servers): memcached-servers TAGS: [memcached] tasks: set-vars : Set OS-family specific variables TAGS: [memcached] set-vars : Set meza-core path variables TAGS: [memcached] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [memcached] set-vars : Set meza local public variables TAGS: [memcached] set-vars : Get individual wikis dirs from localhost TAGS: [memcached] set_fact TAGS: [memcached] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [memcached] set-vars : Set meza local secret variables TAGS: [memcached] set_fact TAGS: [memcached] set_fact TAGS: [memcached] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [memcached] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [memcached] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [memcached] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [memcached] Ensure memcached and netcat packages latest TAGS: [latest, memcached] Write the memcached config file TAGS: [memcached] Ensure memcached is running (and enable it at boot) TAGS: [memcached]
Play 10 - DB Master
editplay #10 (db-master): db-master TAGS: [database] tasks: set-vars : Set OS-family specific variables TAGS: [database] set-vars : Set meza-core path variables TAGS: [database] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [database] set-vars : Set meza local public variables TAGS: [database] set-vars : Get individual wikis dirs from localhost TAGS: [database] set_fact TAGS: [database] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [database] set-vars : Set meza local secret variables TAGS: [database] Ensure firewalld service {{ firewall_service }} allowed for list of servers (RedHat/CentOS only) TAGS: [database] Ensure UFW service {{ firewall_service }} (port {{ ufw_service_ports['{{ firewall_service }}'] }}) allowed for list of servers (Debian only) TAGS: [database] Ensure firewalld service {{ firewall_service }} allowed for list of servers (RedHat/CentOS only) TAGS: [database] Ensure UFW service {{ firewall_service }} (port {{ ufw_service_ports['{{ firewall_service }}'] }}) allowed for list of servers (Debian only) TAGS: [database] database : Include OS-specific variables. TAGS: [database] database : Include OS-specific variables (RedHat). TAGS: [database] database : Define mysql_packages. TAGS: [database] database : Define mysql_daemon. TAGS: [database] database : Define mysql_slow_query_log_file. TAGS: [database] database : Define mysql_log_error. TAGS: [database] database : Define mysql_syslog_tag. TAGS: [database] database : Define mysql_pid_file. TAGS: [database] database : Define mysql_config_file. TAGS: [database] database : Define mysql_config_include_dir. TAGS: [database] database : Define mysql_socket. TAGS: [database] database : Define mysql_supports_innodb_large_prefix. TAGS: [database] include_tasks TAGS: [database] include_tasks TAGS: [database] database : Check if MySQL packages were installed. TAGS: [database] database : Copy my.cnf global MySQL configuration. TAGS: [database] database : Verify mysql include directory exists. TAGS: [database] database : Copy my.cnf override files into include directory. TAGS: [database] database : Create slow query log file (if configured). TAGS: [database] database : Create datadir if it does not exist TAGS: [database] database : Set ownership on slow query log file (if configured). TAGS: [database] database : Create error log file (if configured). TAGS: [database] database : Set ownership on error log file (if configured). TAGS: [database] database : Rotate MariaDB log TAGS: [database] database : Create datadir if it does not exist TAGS: [database] database : Ensure MySQL is started and enabled on boot. TAGS: [database] database : Get MySQL version. TAGS: [database] database : Ensure default user is present. TAGS: [database] database : Copy user-my.cnf file with password credentials. TAGS: [database] database : Disallow root login remotely TAGS: [database] database : Get list of hosts for the root user. TAGS: [database] database : Update MySQL root password for localhost root account (5.7.x). TAGS: [database] database : Update MySQL root password for localhost root account (< 5.7.x). TAGS: [database] database : Copy .my.cnf file with root password credentials TAGS: [database] database : Copy .my.cnf file with root password credentials TAGS: [database] database : Get list of hosts for the anonymous user. TAGS: [database] database : Remove anonymous MySQL users. TAGS: [database] Remove MySQL test database. TAGS: [database] Ensure MySQL databases are present. TAGS: [database] database : Ensure meza application MySQL users are present TAGS: [database] database : If this DB-server is an app server, include localhost as a valid host for application user TAGS: [database] database : Ensure additional MySQL users are present. TAGS: [database] database : Check if valid slave TAGS: [database] set_fact TAGS: [database] database : Check if valid master TAGS: [database] set_fact TAGS: [database] set_fact TAGS: [database] database : Ensure replication user exists on master. TAGS: [database] database : Check slave replication status. TAGS: [database] debug TAGS: [database] database : Check if slave needs configuration TAGS: [database] debug TAGS: [database] database : Check master replication status. TAGS: [database] debug TAGS: [database] database : fetch list of wikis on master TAGS: [database] database : export dump file on master TAGS: [database] database : fetch dump file TAGS: [database] database : put dump file TAGS: [database] database : Import dump on slave(s) TAGS: [database] mysql_replication TAGS: [database] database : Configure replication on the slave. TAGS: [database] database : Start replication. TAGS: [database]
Play 11 - DB Slaves
editplay #11 (db-slaves): db-slaves TAGS: [database] tasks: set-vars : Set OS-family specific variables TAGS: [database] set-vars : Set meza-core path variables TAGS: [database] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [database] set-vars : Set meza local public variables TAGS: [database] set-vars : Get individual wikis dirs from localhost TAGS: [database] set_fact TAGS: [database] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [database] set-vars : Set meza local secret variables TAGS: [database] Ensure firewalld service {{ firewall_service }} allowed for list of servers (RedHat/CentOS only) TAGS: [database] Ensure UFW service {{ firewall_service }} (port {{ ufw_service_ports['{{ firewall_service }}'] }}) allowed for list of servers (Debian only) TAGS: [database] database : Include OS-specific variables. TAGS: [database] database : Include OS-specific variables (RedHat). TAGS: [database] database : Define mysql_packages. TAGS: [database] database : Define mysql_daemon. TAGS: [database] database : Define mysql_slow_query_log_file. TAGS: [database] database : Define mysql_log_error. TAGS: [database] database : Define mysql_syslog_tag. TAGS: [database] database : Define mysql_pid_file. TAGS: [database] database : Define mysql_config_file. TAGS: [database] database : Define mysql_config_include_dir. TAGS: [database] database : Define mysql_socket. TAGS: [database] database : Define mysql_supports_innodb_large_prefix. TAGS: [database] include_tasks TAGS: [database] include_tasks TAGS: [database] database : Check if MySQL packages were installed. TAGS: [database] database : Copy my.cnf global MySQL configuration. TAGS: [database] database : Verify mysql include directory exists. TAGS: [database] database : Copy my.cnf override files into include directory. TAGS: [database] database : Create slow query log file (if configured). TAGS: [database] database : Create datadir if it does not exist TAGS: [database] database : Set ownership on slow query log file (if configured). TAGS: [database] database : Create error log file (if configured). TAGS: [database] database : Set ownership on error log file (if configured). TAGS: [database] database : Rotate MariaDB log TAGS: [database] database : Create datadir if it does not exist TAGS: [database] database : Ensure MySQL is started and enabled on boot. TAGS: [database] database : Get MySQL version. TAGS: [database] database : Ensure default user is present. TAGS: [database] database : Copy user-my.cnf file with password credentials. TAGS: [database] database : Disallow root login remotely TAGS: [database] database : Get list of hosts for the root user. TAGS: [database] database : Update MySQL root password for localhost root account (5.7.x). TAGS: [database] database : Update MySQL root password for localhost root account (< 5.7.x). TAGS: [database] database : Copy .my.cnf file with root password credentials TAGS: [database] database : Copy .my.cnf file with root password credentials TAGS: [database] database : Get list of hosts for the anonymous user. TAGS: [database] database : Remove anonymous MySQL users. TAGS: [database] Remove MySQL test database. TAGS: [database] Ensure MySQL databases are present. TAGS: [database] database : Ensure meza application MySQL users are present TAGS: [database] database : If this DB-server is an app server, include localhost as a valid host for application user TAGS: [database] database : Ensure additional MySQL users are present. TAGS: [database] database : Check if valid slave TAGS: [database] set_fact TAGS: [database] database : Check if valid master TAGS: [database] set_fact TAGS: [database] set_fact TAGS: [database] database : Ensure replication user exists on master. TAGS: [database] database : Check slave replication status. TAGS: [database] debug TAGS: [database] database : Check if slave needs configuration TAGS: [database] debug TAGS: [database] database : Check master replication status. TAGS: [database] debug TAGS: [database] database : fetch list of wikis on master TAGS: [database] database : export dump file on master TAGS: [database] database : fetch dump file TAGS: [database] database : put dump file TAGS: [database] database : Import dump on slave(s) TAGS: [database] mysql_replication TAGS: [database] database : Configure replication on the slave. TAGS: [database] database : Start replication. TAGS: [database]
Play 12 - Backup Servers
editplay #12 (backup-servers): backup-servers TAGS: [backup-servers] tasks: set-vars : Set OS-family specific variables TAGS: [backup-servers] set-vars : Set meza-core path variables TAGS: [backup-servers] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [backup-servers] set-vars : Set meza local public variables TAGS: [backup-servers] set-vars : Get individual wikis dirs from localhost TAGS: [backup-servers] set_fact TAGS: [backup-servers] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [backup-servers] set-vars : Set meza local secret variables TAGS: [backup-servers] backup-config : Ensure MariaDB client installed on backup servers TAGS: [backup-servers, latest] backup-config : Ensure meza-backups group exists TAGS: [backup-servers] backup-config : Ensure backups directory exists TAGS: [backup-servers] backup-config : Ensure backups directory exists for environment TAGS: [backup-servers] backup-config : Get individual wikis from controller config TAGS: [backup-servers] backup-config : Ensure backups directory exists for each wiki TAGS: [backup-servers] backup-config : Ensure backups uploads directory exists for each wiki TAGS: [backup-servers]
Play 13 - ElasticSearch
editplay #13 (elastic-servers): elastic-servers TAGS: [elasticsearch] tasks: set-vars : Set OS-family specific variables TAGS: [elasticsearch] set-vars : Set meza-core path variables TAGS: [elasticsearch] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [elasticsearch] set-vars : Set meza local public variables TAGS: [elasticsearch] set-vars : Get individual wikis dirs from localhost TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [elasticsearch] set-vars : Set meza local secret variables TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] set_fact TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [elasticsearch] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [elasticsearch] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [elasticsearch] elasticsearch : Ensure Java 1.7.0 OpenJDK is absent TAGS: [elasticsearch] elasticsearch : Ensure Java 1.8.0 OpenJDK is installed TAGS: [elasticsearch] elasticsearch : Set JAVA_HOME if configured. TAGS: [elasticsearch] elasticsearch : Add Elasticsearch GPG key. TAGS: [elasticsearch] elasticsearch : Add Elasticsearch repository. TAGS: [elasticsearch] elasticsearch : HTTPS APT transport for Elasticsearch repository. TAGS: [elasticsearch] elasticsearch : Add Elasticsearch apt key. TAGS: [elasticsearch] elasticsearch : Add Elasticsearch repository. TAGS: [elasticsearch] Ensure elasticsearch installed TAGS: [elasticsearch] elasticsearch : Check whether /etc/hosts contains "127.0.0.1" TAGS: [elasticsearch] elasticsearch : Add localhost to /etc/hosts if needed TAGS: [elasticsearch] Ensure dirs from elasticsearch.yml exist and set ownership TAGS: [elasticsearch] elasticsearch : Configure Elasticsearch. TAGS: [elasticsearch] elasticsearch : Start Elasticsearch. TAGS: [elasticsearch] elasticsearch : Make sure Elasticsearch is running before proceeding. TAGS: [elasticsearch] elasticsearch : Check current Elasticsearch version TAGS: [elasticsearch] elasticsearch : Display current Elasticsearch full version number TAGS: [elasticsearch] elasticsearch : Display desired Elasticsearch version TAGS: [elasticsearch] elasticsearch : Set the Elasticsearch major version found TAGS: [elasticsearch] elasticsearch : Docker image building only: set found version to desired version TAGS: [elasticsearch] elasticsearch : Set the Elasticsearch major version desired TAGS: [elasticsearch] Set do_elasticsearch_upgrade to FALSE TAGS: [elasticsearch] Set do_elasticsearch_upgrade to TRUE TAGS: [elasticsearch] Ensure elasticsearch plugins removed TAGS: [elasticsearch] elasticsearch : Disable shard allocation for the cluster TAGS: [elasticsearch] elasticsearch : Perform synced flush TAGS: [elasticsearch] Shutdown elasticsearch node TAGS: [elasticsearch] elasticsearch : Ensure Elasticsearch is latest version TAGS: [elasticsearch] Start elasticsearch TAGS: [elasticsearch] Wait for elasticsearch node to come back up TAGS: [elasticsearch] elasticsearch : Wait for cluster health to return to yellow or green TAGS: [elasticsearch] elasticsearch : Enable shard allocation for the cluster TAGS: [elasticsearch] elasticsearch : Check current Elasticsearch version TAGS: [elasticsearch] elasticsearch : Re-display current Elasticsearch full version number after upgrade TAGS: [elasticsearch]
Play 14 - Application Servers
editplay #14 (app-servers): app-servers TAGS: [mediawiki] tasks: set-vars : Set OS-family specific variables TAGS: [mediawiki] set-vars : Set meza-core path variables TAGS: [mediawiki] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [mediawiki] set-vars : Set meza local public variables TAGS: [mediawiki] set-vars : Get individual wikis dirs from localhost TAGS: [mediawiki] set_fact TAGS: [mediawiki] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [mediawiki] set-vars : Set meza local secret variables TAGS: [mediawiki] htdocs : Ensure ServerPerformance configured TAGS: [mediawiki] htdocs : Ensure BackupDownload configured TAGS: [mediawiki] htdocs : Ensure BackupDownload NOT configured TAGS: [mediawiki] htdocs : Ensure files configured TAGS: [mediawiki] install lua packages TAGS: [mediawiki] check out luasandbox from git TAGS: [mediawiki] compile and install luasandbox TAGS: [mediawiki] copy luasandbox initialization file TAGS: [mediawiki] Sync configuration between controller and app servers TAGS: [mediawiki] mediawiki : Ensure user meza-ansible .ssh dir configured TAGS: [mediawiki] mediawiki : Copy meza-ansible keys to app servers TAGS: [mediawiki] mediawiki : Copy meza-ansible known_hosts to app-servers TAGS: [mediawiki] mediawiki : Ensure MediaWiki core ignores submodules TAGS: [mediawiki, mediawiki-core] mediawiki : Ensure MediaWiki core owned by meza-ansible TAGS: [mediawiki, mediawiki-core] mediawiki : Ensure proper MediaWiki git version installed TAGS: [latest, mediawiki, mediawiki-core] mediawiki : Ensure MediaWiki core ignores submodules TAGS: [mediawiki, mediawiki-core] mediawiki : Set variable holding list of core skins TAGS: [mediawiki, skins] mediawiki : Set variable holding list of local skins TAGS: [mediawiki, skins] mediawiki : Set variable holding list of core extensions TAGS: [always, mediawiki] mediawiki : Ensure core meza extensions installed (non-Composer) TAGS: [extensions, git-core-extensions, git-extensions, latest, mediawiki] mediawiki : Set variable holding list of local extensions TAGS: [always, mediawiki] mediawiki : Ensure core meza skins installed (non-Composer) TAGS: [core-skins, extensions, mediawiki, skins] mediawiki : Ensure local meza extensions installed (non-Composer) TAGS: [extensions, git-extensions, git-local-extensions, latest, mediawiki] mediawiki : Ensure local meza skins installed (non-Composer) TAGS: [local-skins, mediawiki, skins] mediawiki : Ensure Extensions.php in place TAGS: [mediawiki] mediawiki : Ensure composer.local.json in place to load composer-based extensions TAGS: [mediawiki] mediawiki : Run composer install on MediaWiki for dependencies TAGS: [composer-extensions, latest, mediawiki, skins] mediawiki : Run composer update on MediaWiki for extensions TAGS: [composer-extensions, extensions, latest, mediawiki, skins] mediawiki : Ensure Git submodule requirements met for core meza extensions TAGS: [extensions, git-submodules, latest, mediawiki] mediawiki : Ensure Git submodule requirements met for local meza extensions TAGS: [extensions, git-submodules, latest, mediawiki] mediawiki : Ensure Git submodule requirements met for core meza skins TAGS: [extensions, git-submodules, latest, mediawiki, skins] mediawiki : Ensure Git submodule requirements met for local meza skins TAGS: [extensions, git-submodules, latest, local-skins, mediawiki, skins] mediawiki : Ensure LocalSettings.php in place TAGS: [mediawiki] mediawiki : Ensure MediaWiki still properly owned TAGS: [file-perms, mediawiki, mediawiki-core] mediawiki : Ensure WikiBlender installed TAGS: [mediawiki] mediawiki : Ensure BlenderSettings.php in place TAGS: [mediawiki] mediawiki : Ensure WikiBlender properly owned TAGS: [mediawiki] Include SAML role if SAML configured TAGS: [mediawiki] mediawiki : Ensure localization cache root directory exists (each wiki with sub-directory) TAGS: [mediawiki] mediawiki : Ensure root uploads dir configured TAGS: [mediawiki] mediawiki : Check if any wikis exist TAGS: [mediawiki] Add Demo Wiki to config if no wikis exist TAGS: [mediawiki] Re-sync configuration between controller and app servers if Demo just configured TAGS: [mediawiki] mediawiki : Get individual wikis dirs from localhost TAGS: [mediawiki] mediawiki : Set fact - list of wikis TAGS: [mediawiki] mediawiki : Set fact - list of wikis ordered with primary wiki first (if primary_wiki_id set) TAGS: [mediawiki] debug TAGS: [mediawiki] mediawiki : Set fact - initiate empty list of wikis to rebuild smw and search data TAGS: [mediawiki] Ensure defined wikis exist TAGS: [mediawiki, verify-wiki] debug TAGS: [mediawiki] mediawiki : Ensure data rebuilding scripts in place on app servers TAGS: [mediawiki] mediawiki : Ensure data rebuilding logs directories exist TAGS: [mediawiki] mediawiki : Verify metastore index upgraded TAGS: [mediawiki] mediawiki : (Re-)build search index for: {{ wikis_to_rebuild_data | join(', ') }} TAGS: [mediawiki, search-index] mediawiki : (Re-)build SemanticMediaWiki data for: {{ wikis_to_rebuild_data | join(', ') }} TAGS: [mediawiki, smw-data] include_role TAGS: [mediawiki, update.php] mediawiki : Reload (not restart) httpd to pick up changes to opcached php files TAGS: [httpd-reload, mediawiki] mediawiki : Ensure Python3 present TAGS: [latest, mediawiki] mediawiki : Ensure python3 symlink in place TAGS: [mediawiki]
Play 15 - Parsoid
editplay #15 (parsoid-servers): parsoid-servers TAGS: [parsoid] tasks: set-vars : Set OS-family specific variables TAGS: [parsoid] set-vars : Set meza-core path variables TAGS: [parsoid] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [parsoid] set-vars : Set meza local public variables TAGS: [parsoid] set-vars : Get individual wikis dirs from localhost TAGS: [parsoid] set_fact TAGS: [parsoid] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [parsoid] set-vars : Set meza local secret variables TAGS: [parsoid] set_fact TAGS: [parsoid] set_fact TAGS: [parsoid] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [parsoid] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [parsoid] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [parsoid] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [parsoid] set_fact TAGS: [parsoid] set_fact TAGS: [parsoid] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} for list of servers (RedHat/CentOS only) TAGS: [parsoid] Ensure firewalld port {{ firewall_port }} {{ firewall_action }} from all sources (RedHat/CentOS only) TAGS: [parsoid] Ensure UFW port {{ firewall_port }} open for list of servers (Debian only) TAGS: [parsoid] Ensure UFW port {{ firewall_port }} open from all sources (Debian only) TAGS: [parsoid] nodejs : Get OS minor version (EL-only) TAGS: [parsoid] debug TAGS: [parsoid] nodejs : Ensure http-parser installed from RPM for {{ ansible_distribution_version }} TAGS: [parsoid] nodejs : Ensure Node.js and npm from yum are REMOVED TAGS: [parsoid] nodejs : What version of node, if any, is installed TAGS: [parsoid] debug TAGS: [parsoid] nodejs : Get Node.JS 8.11.1 tar.gz TAGS: [parsoid] nodejs : Ensure existing node is removed TAGS: [parsoid] nodejs : Ensure directory exists for node TAGS: [parsoid] nodejs : Extract foo.tgz into /var/lib/foo TAGS: [parsoid] nodejs : Ensure symlink in place for node and npm TAGS: [parsoid] Define nodejs_install_npm_user TAGS: [parsoid] Add node.js/npm user group: {{ nodejs_install_npm_user }} TAGS: [parsoid] Add node.js/npm user: {{ nodejs_install_npm_user }} TAGS: [parsoid] nodejs : Create npm global directory TAGS: [parsoid] nodejs : Add npm_config_prefix bin directory to global $PATH. TAGS: [parsoid] nodejs : Ensure npm global packages are installed. TAGS: [parsoid] nodejs : Ensure npm global packages are at the latest release. TAGS: [latest, parsoid] parsoid : Get Parsoid repository TAGS: [parsoid] parsoid : Patch Parsoid so it allows image tags TAGS: [parsoid] Ensure parsoid group exists TAGS: [parsoid] Get current parsoid user home dir TAGS: [parsoid] debug TAGS: [parsoid] Set parsoid home directory TAGS: [parsoid] debug TAGS: [parsoid] Set fact if parsoid home is correct TAGS: [parsoid] Set fact if parsoid home is not correct TAGS: [parsoid] debug TAGS: [parsoid] parsoid : Check if Parsoid service exists yet TAGS: [parsoid] Stop parsoid service if home is not correct TAGS: [parsoid] Ensure parsoid user exists TAGS: [parsoid] Ensure parsoid directory mode, not recursively TAGS: [parsoid] Ensure parsoid directory ownership recursively TAGS: [parsoid] parsoid : Ensure Parsoid dependencies are latest TAGS: [latest, parsoid, parsoid-deps] parsoid-settings : Ensure Parsoid config.yaml present and up-to-date TAGS: [parsoid] parsoid-settings : Ensure /etc/init.d/parsoid configured TAGS: [parsoid] parsoid-settings : Enable parsoid service TAGS: [parsoid]
Play 16 - Logging Servers
editplay #16 (logging-servers): logging-servers TAGS: [logging] tasks: set-vars : Set OS-family specific variables TAGS: [logging] set-vars : Set meza-core path variables TAGS: [logging] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [logging] set-vars : Set meza local public variables TAGS: [logging] set-vars : Get individual wikis dirs from localhost TAGS: [logging] set_fact TAGS: [logging] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [logging] set-vars : Set meza local secret variables TAGS: [logging] meza-log : Check if server log database exists TAGS: [logging] meza-log : Set fact if server log database DOES exist TAGS: [logging] meza-log : Set fact if server log database DOES NOT exist TAGS: [logging] meza-log : Copy meza_server_log.sql to remote database hosts TAGS: [logging] meza-log : Import server log database structure TAGS: [logging] meza-log : Check if disk_space table exists TAGS: [logging] meza-log : Set fact if disk_space table DOES exist TAGS: [logging] meza-log : Set fact if disk_space table DOES NOT exist TAGS: [logging] meza-log : Copy table_disk_space.sql to remote database hosts TAGS: [logging] meza-log : Create table disk_space if not exists TAGS: [logging] meza-log : Ensure logging scripts in place TAGS: [logging]
Play 17 - Backup Servers
editplay #17 (backup-servers): backup-servers TAGS: [backup-cleanup] tasks: set-vars : Set OS-family specific variables TAGS: [backup-cleanup] set-vars : Set meza-core path variables TAGS: [backup-cleanup] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [backup-cleanup] set-vars : Set meza local public variables TAGS: [backup-cleanup] set-vars : Get individual wikis dirs from localhost TAGS: [backup-cleanup] set_fact TAGS: [backup-cleanup] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [backup-cleanup] set-vars : Set meza local secret variables TAGS: [backup-cleanup] backups-cleanup : Ensure backups cleanup script in place TAGS: [backup-cleanup] backups-cleanup : Ensure backups cleanup cron in place TAGS: [backup-cleanup]
Play 18 - Last steps
editplay #18 (all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal): all:!exclude-all:!load-balancers-nonmeza:!load-balancers-nonmeza-external:!load-balancers-nonmeza-internal TAGS: [cron,always] tasks: set-vars : Set OS-family specific variables TAGS: [always, cron] set-vars : Set meza-core path variables TAGS: [always, cron] set-vars : If using gluster (app-servers > 1), override m_uploads_dir TAGS: [always, cron] set-vars : Set meza local public variables TAGS: [always, cron] set-vars : Get individual wikis dirs from localhost TAGS: [always, cron] set_fact TAGS: [always, cron] set-vars : Set meza environment-specific public variables for env={{ env }} TAGS: [always, cron] set-vars : Set meza local secret variables TAGS: [always, cron] Ensure cron is running (and enable it at boot) TAGS: [always, cron] Ensure crontab file up-to-date TAGS: [always, cron] cron : Ensure runAllJobs.php in place TAGS: [always, cron] lineinfile TAGS: [always, cron] lineinfile TAGS: [always, cron] Ensure crontab up-to-date from file TAGS: [always, cron] umask-unset : Unset umask at end of deploy TAGS: [always, cron]