Version information
released Aug 1st 2015
Start using this module
Add this module to your Puppetfile:
mod 'nicopaez-alfred', '0.3.0'
Learn more about managing modules with a PuppetfileDocumentation
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
- Install Puppet in your host.
- Clone this repository: git clone https://github.com/nicopaez/alfred-puppet.git
- Build the module by running : puppet module build alfred-puppet
- Install the module by running: _puppet module install <path_to_built_package>
- Create a Vagrantfile with the content below
- 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.
Dependencies
- puppetlabs/stdlib (>= 1.0.0)
- jfryman/nginx (>= 0.2.1)
- puppetlabs/git (>= 0.3.0)
- maestrodev/rvm (>= 1.10.1)
- puppetlabs/postgresql (>= 4.0.0 <5.0.0)