Commit 91608d3b authored by Yoshiharu Hirose's avatar Yoshiharu Hirose

Puppet 4 対応

parent a17f0e1f
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
......@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf")
......@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.options = ["--templatedir", "/vagrant/puppet/templates"]
puppet.environment = "development"
puppet.environment_path = "puppet/environment"
end
end
......@@ -54,13 +54,13 @@ service { 'httpd':
}
file { '/etc/httpd/conf/httpd.conf':
ensure => file,
content => template('httpd.conf'),
content => template('apache/httpd.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
file { '/etc/httpd/conf.d/vhost.conf':
ensure => file,
content => template('vhosts.conf'),
content => template('apache/vhosts.conf'),
require => Package['httpd'],
notify => Service['httpd'],
}
......@@ -78,7 +78,7 @@ exec { 'php-xdebug':
}
file { '/etc/php.ini':
ensure => file,
content => template('php.ini'),
content => template('apache/php.ini'),
notify => Service['httpd'],
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment