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

Puppet 4 対応

parent a17f0e1f
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], notify => Service['httpd'],
} }
......
...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config| ...@@ -70,7 +70,6 @@ Vagrant.configure(2) do |config|
# SHELL # SHELL
config.vm.box = "puppetlabs/centos-6.6-64-puppet" config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = "1.0.1"
if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY'] if ENV['HTTP_PROXY'] || ENV['HTTPS_PROXY']
unless Vagrant.has_plugin?("vagrant-proxyconf") unless Vagrant.has_plugin?("vagrant-proxyconf")
...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config| ...@@ -84,7 +83,7 @@ Vagrant.configure(2) do |config|
config.vm.hostname = "www" config.vm.hostname = "www"
config.vm.network :forwarded_port, guest: 80, host: 8000 config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.provision :puppet do |puppet| config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests' puppet.environment = "development"
puppet.options = ["--templatedir", "/vagrant/puppet/templates"] puppet.environment_path = "puppet/environment"
end end
end end
...@@ -54,13 +54,13 @@ service { 'httpd': ...@@ -54,13 +54,13 @@ service { 'httpd':
} }
file { '/etc/httpd/conf/httpd.conf': file { '/etc/httpd/conf/httpd.conf':
ensure => file, ensure => file,
content => template('httpd.conf'), content => template('apache/httpd.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
file { '/etc/httpd/conf.d/vhost.conf': file { '/etc/httpd/conf.d/vhost.conf':
ensure => file, ensure => file,
content => template('vhosts.conf'), content => template('apache/vhosts.conf'),
require => Package['httpd'], require => Package['httpd'],
notify => Service['httpd'], notify => Service['httpd'],
} }
...@@ -78,7 +78,7 @@ exec { 'php-xdebug': ...@@ -78,7 +78,7 @@ exec { 'php-xdebug':
} }
file { '/etc/php.ini': file { '/etc/php.ini':
ensure => file, ensure => file,
content => template('php.ini'), content => template('apache/php.ini'),
notify => Service['httpd'], 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