Created
July 30, 2013 17:35
Revisions
-
Patrick Garman revised this gist
Jul 30, 2013 . 1 changed file with 43 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,45 @@ class do-stuff { include apt include nginx exec { 'first update': command => '/usr/bin/apt-get update' } apt::ppa { 'ppa:chris-lea/node.js': require => Exec['first update'], } exec { 'second update': command => '/usr/bin/apt-get update', require => Apt::Ppa['ppa:chris-lea/node.js'], } package { [ 'build-essential', 'git', 'nodejs', 'zip', 'unzip' ]: ensure => latest, require => Exec['second update'], } user { 'nodejs': ensure => present, managehome => true } nginx::resource::vhost { 'domain.com': ensure => present, proxy => 'http://127.0.0.1:2368', } nginx::resource::location { 'ghost': ensure => present, proxy => 'http://127.0.0.1:2368', location => '/ghost', vhost => 'domain.com', location_cfg_append => { 'allow' => 'youriphere', 'deny' => 'all' } } } include do-stuff -
Patrick Garman renamed this gist
Jul 30, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Patrick Garman created this gist
Jul 30, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ node 'domain.com' { include 'nginx' nginx::resource::vhost { 'domain.com': ensure => present, proxy => 'http://127.0.0.1:2368', } nginx::resource::location { 'ghost': ensure => present, proxy => 'http://127.0.0.1:2368', location => '/ghost', vhost => 'domain.com', location_cfg_append => { 'allow' => 'youriphere', 'deny' => 'all' } } }