Giter Site home page Giter Site logo

lieutdan13 / puppet-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from example42/puppet-wordpress

0.0 2.0 0.0 179 KB

Module to install and configure WordPress

Home Page: http://www.example42.com

License: Other

Puppet 68.87% Ruby 19.87% PHP 11.26%

puppet-wordpress's Introduction

Puppet module: wordpress

This is a Puppet wordpress module from the second generation of Example42 Puppet Modules.

Made by Alessandro Franceschi / Lab42

Official site: http://www.example42.com

Official git repository: http://github.com/example42/puppet-wordpress

Released under the terms of Apache 2 License.

This module requires functions provided by the Example42 Puppi module.

For detailed info about the logic and usage patterns of Example42 modules read README.usage on Example42 main modules set.

USAGE - Basic management

  • Install wordpress using your distro package, if available

      class { "wordpress": }
    
  • Install the latest wordpress version from upstream site

      class { "wordpress":
        install             => "source",
      }
    
  • Install the latest wordpress version from upstream site using puppi. You will have a 'puppi deploy wordpress' to deploy and update wordpress.

      class { "wordpress":
        install             => "puppi",
      }
    
  • Install source from a custom url to a custom install_destination path. The following parameters apply both for "source" and "puppi" install methods. Puppi method may be used to manage deployment updates (given the $install_source is updated). By default install_source is set to upstream developer and install_destination to Web (App) server document root Pre and post installation commands may be already defined (check wordpress/manifests/params.pp) override them only if needed. Url_check and url_pattern are used for application checks, if monitor is enabled. Override only if needed.

      class { "wordpress":
        install             => "source",
        install_source      => "http://deploy.example42.com/wordpress/wordpress.tar.gz",
      }
    
  • Remove wordpress

      class { "wordpress":
        absent => true
      }
    
  • Enable auditing without without making changes on existing wordpress configuration files

      class { "wordpress":
        audit_only => true
      }
    

USAGE - Overrides and Customizations

  • Use custom sources for main config file

      class { "wordpress":
        source => [ "puppet:///modules/lab42/wordpress/wp-config.php-${hostname}" , "puppet:///modules/lab42/wordpress/wp-config.php" ], 
      }
    
  • Use custom source directory for the whole configuration dir

      class { "wordpress":
        source_dir       => "puppet:///modules/lab42/wordpress/conf/",
        source_dir_purge => false, # Set to true to purge any existing file not present in $source_dir
      }
    
  • Use custom template for main config file

      class { "wordpress":
        template => "example42/wordpress/wp-config.php.erb",      
      }
    
  • Automaticallly include a custom subclass

      class { "wordpress":
        my_class => 'wordpress::example42',
      }
    
  • Use custom options with existing template. Full list includes: DB_CHARSET, DB_COLLATE, AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT, table_prefix, WPLANG, WP_DEBUG

      class { "wordpress":
        options => {
          'DB_CHARSET' => 'utf8',
          'DB_COLLATE' => 'utf8_general_ci',
          'WP_DEBUG'   => 'true',
        },
      }
    

USAGE - Example42 extensions management

  • Activate puppi (recommended, but disabled by default) Note that this option requires the usage of Example42 puppi module

      class { "wordpress": 
        puppi    => true,
      }
    
  • Activate puppi and use a custom puppi_helper template (to be provided separately with a puppi::helper define ) to customize the output of puppi commands

      class { "wordpress":
        puppi        => true,
        puppi_helper => "myhelper", 
      }
    
  • Activate automatic monitoring (recommended, but disabled by default) This option requires the usage of Example42 monitor and relevant monitor tools modules

      class { "wordpress":
        monitor      => true,
        monitor_tool => [ "nagios" , "puppi" ],
      }
    

Build Status

puppet-wordpress's People

Contributors

alvagante avatar davids avatar

Watchers

 avatar  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.