{"id":17462871,"url":"https://github.com/mralias/maw","last_synced_at":"2025-03-28T06:41:04.083Z","repository":{"id":32327051,"uuid":"35902367","full_name":"MrAlias/maw","owner":"MrAlias","description":"Amalgamation of MySQL, Apache, and WordPress management.","archived":false,"fork":false,"pushed_at":"2015-10-12T17:08:05.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T07:26:16.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Puppet","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrAlias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-19T19:03:13.000Z","updated_at":"2015-05-19T20:31:20.000Z","dependencies_parsed_at":"2022-06-26T20:02:11.475Z","dependency_job_id":null,"html_url":"https://github.com/MrAlias/maw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Fmaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Fmaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Fmaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrAlias%2Fmaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrAlias","download_url":"https://codeload.github.com/MrAlias/maw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984561,"owners_count":20704794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T09:10:18.893Z","updated_at":"2025-03-28T06:41:04.062Z","avatar_url":"https://github.com/MrAlias.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maw\n\n#### Table of Contents\n\n1. [Overview](#overview)\n2. [Module Description - What the module does and why it is useful](#module-description)\n3. [Setup - The basics of getting started with maw](#setup)\n    * [What maw affects](#what-maw-affects)\n    * [Beginning with maw](#beginning-with-maw)\n4. [Usage - Configuration options and additional functionality](#usage)\n5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n6. [Limitations - OS compatibility, etc.](#limitations)\n7. [Development - Guide for contributing to the module](#development)\n\n## Overview\n\n**THIS MODULE IS A WORK IN PROGRESS AND CURRENTLY INCOMPLETE**\n\nAmalgamation of MySQL, Apache, and WordPress management, creating usable WordPress sites in one go.\n\n## Module Description\n\nThis module combines the database management of the puppetlabs-mysql module, the web server management of the puppetlabs-apache module, and custom manifest to create full stack secure WordPress sites on Debian and RedHat systems.\n\n## Setup\n\n### What maw affects\n\n* MySQL databases and settings.\n* Apache vhosts and settings.\n\n### Beginning with maw\n\nTo create multiple WordPress sites pass their names as keys:\n\n```puppet\nclass { 'maw':\n  sites =\u003e {\n    'www.my_blog.com'        =\u003e {},\n    'www.my_second_blog.com' =\u003e {},\n  }\n}\n```\n\n## Usage\n\n### Creating a single WordPess instance\n\nTo create a single MySQL-Apache-WordPress use the `maw::instance` resource.\n\n```puppet\nmaw::instance { 'www.my_blog.com': }\n```\n\n## Reference\n\n### Classes\n\n#### maw\n\nThis is the base class used to define multiple maw instances.\n\n##### `maw::sites`\n\nHash of all the `maw::instances` to create.\n\n### Defined Types\n\n#### maw::instance\n\nThis resource creates a MySQL-Apache-WordPress instance.\n\n##### `maw::instance::domain`\n\n  The domain name the site will have.\n\n  Defaults to the **namevar**.\n\n##### `maw::instance::serveraliases`\n\n  Aliases for the instance's website.\n\n  Defaults to `[]`.\n\n##### `maw::instance::ssl`\n\n  Specifies if the Apache vhost should use SSL.\n\n  Defaults to `false`.\n\n##### `maw::instance::ssl_cert`\n\n  The absolute file path of SSL certificate to use if `ssl` is true.\n\n##### `maw::instance::ssl_cert_content`\n\n  If specified, this defines the contents of the SSL certificate.\n\n##### `maw::instance::ssl_key`\n\n  The absolute file path of SSL key to use if `ssl` is true.\n\n##### `maw::instance::ssl_key_content`\n\n  If specified, this defines the contents of the SSL key.\n\n##### `maw::instance::docroot`\n\n  Absolute file path to the sites document root.\n\n  Defaults to `'/var/www/${domain}'`.\n\n##### `maw::instance::wp_version`\n\n  Version of WordPress to install at the `docroot`.\n\n  Valid values are the semantic version of WordPress or `'latest'` to install\n  the latest version released.\n\n  Defaults to `'latest'`.\n\n##### `maw::instance::wp_debug`\n\n  Specifies if WordPress should be in debug mode.\n\n  Defaults to `false`.\n\n##### `maw::instance::wp_memory_limit`\n\n  Specifies the WordPress memory limit.\n\n  If nothing is specified it is set by WordPress.\n\n##### `maw::instance::db_manage`\n\n  Specifies if the MySQL database is to managed.\n\n  Defaults to `true`.\n\n##### `maw::instance::db_user_manage`\n\n  Specifies if the MySQL user is to managed.\n\n  Defaults to `true`.\n\n##### `maw::instance::db_name`\n\n  Name of the MySQL database to manage if `db_manage` is `true`.\n\n  Defaults to `'wordpress'`,\n\n##### `maw::instance::db_user`\n\n  Name of the MySQL user to manage if `db_user_manage` is `true`.\n\n  Defaults to `'wordpress'`,\n\n##### `maw::instance::db_password`\n\n  Secure password to set for the database users.\n\n  At a minimum the password is required to be at least 8 characters long,\n  but of course longer is more secure.\n\n##### `maw::instance::db_host`\n\n  Host address of the MySQL instance.\n\n##### `maw::instance::manage_firewall`\n  Specify if a firewall rule should be created using the puppetlabs-firewall module resource `firewall`, to allow incoming traffic to the WordPress site.\n\n  Defaults to `true`.\n\n##### `required_pkgs`\n\n  Array of required packages for instance.\n\n  Defaults to the OS specific php-gd package.  Any passed value should likely include php-gd as well.\n\n## Limitations\n\nThis module has only been tested on CentOS 7.  There are plans to support both Debian and RedHat systems.\n\n## Development\n\nThis module is open to collaboration and feedback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmralias%2Fmaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmralias%2Fmaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmralias%2Fmaw/lists"}