Created
October 30, 2014 03:34
-
-
Save hailwood/20640c1d27f898b182dd to your computer and use it in GitHub Desktop.
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 characters
| exec { 'install-puppet-apache': | |
| path => '/bin:/sbin:/usr/bin:/usr/sbin', | |
| command => 'puppet module install puppetlabs-apache', | |
| cwd => '/home/vagrant' | |
| } | |
| class { 'composer::install': } | |
| class { 'beanstalkd::install': } |
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 characters
| # Install beanstalkd | |
| class beanstalkd::install { | |
| exec { 'install-beanstalkd': | |
| path => '/bin:/sbin:/usr/bin:/usr/sbin', | |
| command => 'apt-get install beanstalkd -y', | |
| cwd => '/home/vagrant' | |
| } | |
| exec { 'install-console': | |
| path => '/bin:/sbin:/usr/bin:/usr/sbin', | |
| command => 'composer create-project ptrofimov/beanstalk_console -s dev /var/www/beanstalk', | |
| cwd => '/home/vagrant' | |
| } | |
| apache::vhost { 'localhost': | |
| ip => '127.0.0.1', | |
| port => '81', | |
| docroot => '/var/www/beanstalk/public' | |
| } | |
| file { '/var/www/beanstalk/config.php': | |
| ensure => file, | |
| source => "puppet:////modules/beanstalkd/config.php" | |
| } | |
| file { '/var/www/beanstalk/storage.json': | |
| mode => 777 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or even