Skip to content

Commit

Permalink
Merge branch 'feature/vagrant' into develop, issue #14
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopradoj committed Oct 7, 2012
2 parents 858ad0b + 16bf421 commit 0fd2c40
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bin
vendor
composer.phar
composer.lock
composer.lock
.vagrant
19 changes: 19 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
config.vm.box = "CentOS-6.3-x86_64-minimal"

config.vm.box_url = "https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box"

config.vm.network :hostonly, "127.0.0.2"

config.vm.forward_port 80, 8080

config.vm.provision :puppet do |puppet|
puppet.options = "--verbose --debug"
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "ophportunidades.pp"
end

end
67 changes: 67 additions & 0 deletions puppet/manifests/ophportunidades.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
class ophportunidades {

exec { "yum update":
command => "yum -y update",
path => "/usr/bin",
}

package { "git":
ensure => present,
}
}

class apache {

package { "httpd":
ensure => present,
}

package { "httpd-devel":
ensure => present,
}

service { "httpd":
ensure => running,
require => Package["httpd"],
}
}

class mysql {

package { "mysql":
ensure => present,
}

package { "mysql-server":
ensure => present,
}

package { "mysql-devel":
ensure => present,
}

service { "mysqld":
ensure => running,
require => Package["mysql-server"],
}
}

class php {

package { "php":
ensure => present,
}

package { "php-mysql":
ensure => present,
}

package { "php-common":
ensure => present,
}
}

include ophportunidades
include apache
include mysql
include php

0 comments on commit 0fd2c40

Please sign in to comment.