Giter VIP home page Giter VIP logo

puppet-lieutdan13's Introduction

puppet-lieutdan13

A Puppet module to store custom classes, templates, and files to share between Puppet Master configurations

Wordpress Multisite Installation

The installation of Wordpress onto a server using Puppet needs to be done in multiple steps, if tall of he following criteria are met:

  • You want to enable the Multisite/Network feature
  • This is the first site to be installed on the server

Steps

  1. Allow Multisite to be configured by running the class with multisite = 'allow'. For example:

    class { 'lieutdan13::wordpress':
        db_password => 'random_password',
        db_user     => 'wordpress',
        multisite   => 'allow',
        version     => 'latest',
    }
  2. Run puppet on the machine

  3. Initialize the first/primary blog for the Wordpress network by visiting the blog's url

    • This assumes that the DNS and firewall are configured properly and you have access to the url in a browser
  4. Login to the blog's admin panel with the user created

  5. Go to Tools --> Network Setup and initialize the Network

  6. Select "Sub-domains" and click "Install"

  7. Set Multisite to be migrated by running the class with multisite = 'migrate'.

    • If you also want to enable the multi-database feature, set multidb = true.
    • For example:
    class { 'lieutdan13::wordpress':
        db_password => 'random_password',
        db_user     => 'wordpress',
        multidb     => true/false,
        multisite   => 'migrate',
        options     => {
            'main_site' => 'blogs.example.com',
        },
        version     => 'latest',
    }
  8. Run puppet on the machine again

  9. Login again to the admin panel

  10. Go to My Sites --> Network Admin --> Dashboard

  11. Go to Settings --> Network Settings and configure the blog accordingly

  12. Go to Settings --> Domain Mapping and configure accordingly

  13. If you chose to enable the multidb feature:

    1. Go to Plugins and activate SharDB site admin utilities network-wide
    2. Go to Settings --> SharDB Migration and perform the migration of the sites
  14. Enable Multisite completely by running the class with multisite = true. For example:

    class { 'lieutdan13::wordpress':
        db_password => 'random_password',
        db_user     => 'wordpress',
        multidb     => true/false,
        multisite   => true,
        options     => {
            'main_site' => 'blogs.example.com',
        },
        version     => 'latest',
    }

puppet-lieutdan13's People

Watchers

Dan Schaefer avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.