Puppet Class: ghost

Defined in:
manifests/init.pp

Summary

A module to manage the Ghost blog platform

Overview

ghost

This class sets up a default Ghost user that can be used (and is by default) to separate the permissions of blogs. This class is optional, but if not used, the dependencies of nodejs, npm, and the specified user and group for each blog must be satisfied.

This module includes puppetlabs/nodejs to install node and npm; however, on operating systems with out-of-date packages, you may need to set nodejs::manage_repo to true.

Copyright 2014 Andrew Schwartzmeyer

Parameters:

  • user (String) (defaults to: 'ghost')

    Default ghost username

  • group (String) (defaults to: 'ghost')

    Default ghost group

  • home (Stdlib::Absolutepath) (defaults to: '/home/ghost')

    Ghost user’s home directory, default base for blogs

  • include_nodejs (Boolean) (defaults to: false)

    Whether or not setup should include nodejs module



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/init.pp', line 23

class ghost(
  String $user               = 'ghost',
  String $group              = 'ghost',
  Stdlib::Absolutepath $home = '/home/ghost',
  Boolean $include_nodejs    = false,
  ) {

  contain ghost::setup

  Ghost::Blog <| |> {
    require => Class['ghost::setup']
  }
}