Forge Home

alfred

Puppet module to provision Alfred instances

11,595 downloads

7,098 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.9.0 (latest)
  • 0.7.0
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.4.1
  • 0.4.0
  • 0.3.0
released Aug 1st 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'nicopaez-alfred', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add nicopaez-alfred
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install nicopaez-alfred --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

nicopaez/alfred — version 0.3.0 Aug 1st 2015

Alfred Puppet Module

Overview

This module allows to setup a full production ready Alfred application instance.

Module Description

This module takes care of installing base software and the application it self:

  • Git
  • Ruby and RVM
  • PostgresSQL
  • Nginx

The applicacion is installed as a service with Upstart The application is installed under /var/www/alfred.

Usage with Vagrant

  1. Install Puppet in your host.
  2. Clone this repository: git clone https://github.com/nicopaez/alfred-puppet.git
  3. Build the module by running : puppet module build alfred-puppet
  4. Install the module by running: _puppet module install <path_to_built_package>
  5. Create a Vagrantfile with the content below
  6. Create a manifest folder with the and place the file alfred.pp inside it
# Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.network :forwarded_port, guest: 80, host: 8080

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "1024"]
  end

  config.vm.provision :puppet do |puppet|
    puppet.manifest_file  = "alfred.pp"
    puppet.module_path = "/.puppet/modules"
  end

end

alfred.pp

class { 'alfred': 
  db_user => 'alfred',
  db_pass => 'mypassword'
} 

Limitations

This module was tested on Ubuntu 14.04.