Giter Site home page Giter Site logo

exoscale-wordpress's Introduction

exoscale-wordpress

A wordpress environment to deploy on exoscale or any cloud-init compatible cloud with plain vanilla Ubuntu instances.

Principles:

This cookbook will leverage userdata extensibility of CloudStack and the features of cloud-init to bootstrap a fully fonctionnal Wordpress install which IS NOT a clone.

  • Userdata will be filled with a script
  • Script will be called on first boot by cloud-init
  • A puppet repository will be pulled on the instance
  • The script will launch Puppet and apply the manifest

Keep it mind that it is possible to go much further in automation deployment.

Usage guide:

Start an instance

Launch a new Ubuntu 13.04 instance with the service offering you wish. Insert it in a security group or with firewall rules which enable port 80/http.

User Data with Cloud-init

In the User Data tab, input the script below:

#!/bin/sh
set -e -x

apt-get --yes --quiet update
apt-get --yes --quiet install git puppet-common

#
# Fetch puppet configuration from public git repository.
#

mv /etc/puppet /etc/puppet.orig
git clone https://github.com/retrack/exoscale-wordpress.git /etc/puppet

#
# Run puppet.
#

puppet apply /etc/puppet/manifests/init.pp

Start using your fresh Wordpres

Point your browser to your instance public IP address and you should be asked for an admin email and password.

Modify:

To modify your configuration, clone this very repository and adjust files and manifests accordingly. Do not forget to replace the URL in the userdata script.

TODO

  • Salt wp-config.php
  • Better mysql DB security

Credits:

this is inspired by the work of [chadthompson]: http://chadthompson.me on https://github.com/chad-thompson/vagrantpress

exoscale-wordpress's People

Watchers

 avatar  avatar

Forkers

exoscale upzehill

exoscale-wordpress's Issues

Not working on Puppet 5.4.0

Via https://www.exoscale.com/syslog/hello-world/

Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::git for vm-caa5afe9-685c-4557-b9b2-afe5655dcfee (file: /etc/puppet/manifests/init.pp, line: 9, column: 1) on node vm-caa5afe9-685c-4557-b9b2-afe5655dcfee

% puppet --version
5.4.0

Is there an easy way to upgrade this repository or shall it rather be archived?

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.