update chef and cobbler config to make ubuntu 12.04 work
Change-Id: I9d96382eae67421b33c33c64f0af17e14fe8acd2
This commit is contained in:
parent
0e1a88bb87
commit
99f145ba2d
@ -120,6 +120,17 @@ template "#{node['haproxy']['conf_dir']}/haproxy.cfg" do
|
||||
)
|
||||
end
|
||||
|
||||
case node["platform_family"]
|
||||
when "debian"
|
||||
cookbook_file "/etc/default/haproxy" do
|
||||
source "haproxy-default"
|
||||
owner "root"
|
||||
group "root"
|
||||
mode 00644
|
||||
notifies :restart, "service[haproxy]"
|
||||
end
|
||||
end
|
||||
|
||||
service "haproxy" do
|
||||
supports :restart => true, :status => true, :reload => true
|
||||
action [:enable, :start]
|
||||
|
@ -52,6 +52,21 @@ if mydata['ha']['status'].eql?('enable')
|
||||
"#{mydata['ha']['keepalived']['instance_name']['vip']} dev #{interface}" ]
|
||||
end
|
||||
|
||||
case node["platform_family"]
|
||||
when "debian"
|
||||
execute "apt-update" do
|
||||
user "root"
|
||||
command "apt-get -y update"
|
||||
action :run
|
||||
end
|
||||
|
||||
execute "apt-upgrade" do
|
||||
user "root"
|
||||
command "apt-get -y upgrade"
|
||||
action :run
|
||||
end
|
||||
end
|
||||
|
||||
package "keepalived"
|
||||
|
||||
if node['keepalived']['shared_address']
|
||||
|
@ -21,10 +21,6 @@ include_recipe "openstack-common::databag"
|
||||
|
||||
case node["platform_family"]
|
||||
when "debian"
|
||||
package "ubuntu-cloud-keyring" do
|
||||
action :install
|
||||
end
|
||||
|
||||
apt_uri = node["openstack"]["apt"]["uri"]
|
||||
apt_components = node["openstack"]["apt"]["components"]
|
||||
|
||||
@ -39,6 +35,22 @@ when "debian"
|
||||
components apt_components
|
||||
end
|
||||
|
||||
execute "apt-update" do
|
||||
user "root"
|
||||
command "apt-get -y update"
|
||||
action :run
|
||||
end
|
||||
|
||||
execute "apt-upgrade" do
|
||||
user "root"
|
||||
command "apt-get -y upgrade"
|
||||
action :run
|
||||
end
|
||||
|
||||
package "ubuntu-cloud-keyring" do
|
||||
action :install
|
||||
end
|
||||
|
||||
when "suse"
|
||||
if node["lsb"]["description"].nil?
|
||||
# Workaround for SLE11
|
||||
|
12
chef/cookbooks/rsyslog/templates/default/cinder.conf.erb
Normal file
12
chef/cookbooks/rsyslog/templates/default/cinder.conf.erb
Normal file
@ -0,0 +1,12 @@
|
||||
$Modload imfile
|
||||
<% @loglist.each do |service, path| -%>
|
||||
# <%= service %>
|
||||
$InputFileName <%= path %>
|
||||
$InputFileReadMode 0
|
||||
$InputFileTag <%= service %>
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local4
|
||||
$InputFileStateFile <%= service %>
|
||||
$InputRunFileMonitor
|
||||
$InputFilePollInterval 2
|
||||
<% end -%>
|
12
chef/cookbooks/rsyslog/templates/default/glance.conf.erb
Normal file
12
chef/cookbooks/rsyslog/templates/default/glance.conf.erb
Normal file
@ -0,0 +1,12 @@
|
||||
$Modload imfile
|
||||
<% @loglist.each do |service, path| -%>
|
||||
# <%= service %>
|
||||
$InputFileName <%= path %>
|
||||
$InputFileReadMode 0
|
||||
$InputFileTag <%= service %>
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local4
|
||||
$InputFileStateFile <%= service %>
|
||||
$InputRunFileMonitor
|
||||
$InputFilePollInterval 2
|
||||
<% end -%>
|
12
chef/cookbooks/rsyslog/templates/default/keystone.conf.erb
Normal file
12
chef/cookbooks/rsyslog/templates/default/keystone.conf.erb
Normal file
@ -0,0 +1,12 @@
|
||||
$Modload imfile
|
||||
<% @loglist.each do |service, path| -%>
|
||||
# <%= service %>
|
||||
$InputFileName <%= path %>
|
||||
$InputFileReadMode 0
|
||||
$InputFileTag <%= service %>
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local4
|
||||
$InputFileStateFile <%= service %>
|
||||
$InputRunFileMonitor
|
||||
$InputFilePollInterval 2
|
||||
<% end -%>
|
12
chef/cookbooks/rsyslog/templates/default/nova.conf.erb
Normal file
12
chef/cookbooks/rsyslog/templates/default/nova.conf.erb
Normal file
@ -0,0 +1,12 @@
|
||||
$Modload imfile
|
||||
<% @loglist.each do |service, path| -%>
|
||||
# <%= service %>
|
||||
$InputFileName <%= path %>
|
||||
$InputFileReadMode 0
|
||||
$InputFileTag <%= service %>
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local4
|
||||
$InputFileStateFile <%= service %>
|
||||
$InputRunFileMonitor
|
||||
$InputFilePollInterval 2
|
||||
<% end -%>
|
12
chef/cookbooks/rsyslog/templates/default/quantum.conf.erb
Normal file
12
chef/cookbooks/rsyslog/templates/default/quantum.conf.erb
Normal file
@ -0,0 +1,12 @@
|
||||
$Modload imfile
|
||||
<% @loglist.each do |service, path| -%>
|
||||
# <%= service %>
|
||||
$InputFileName <%= path %>
|
||||
$InputFileReadMode 0
|
||||
$InputFileTag <%= service %>
|
||||
$InputFileSeverity notice
|
||||
$InputFileFacility local4
|
||||
$InputFileStateFile <%= service %>
|
||||
$InputRunFileMonitor
|
||||
$InputFilePollInterval 2
|
||||
<% end -%>
|
@ -92,6 +92,10 @@ d-i debian-installer/allow_unauthenticated string true
|
||||
# Avoid that last message about the install being complete.
|
||||
d-i finish-install/reboot_in_progress note
|
||||
|
||||
# This will prevent the installer from ejecting the CD during the reboot,
|
||||
# which is useful in some situations.
|
||||
d-i cdrom-detect/eject boolean false
|
||||
|
||||
# This command is run just before the install finishes, but when there is
|
||||
# still a usable /target directory. You can chroot to /target and use it
|
||||
# directly, or use the apt-install and in-target commands to easily install
|
||||
|
@ -104,6 +104,7 @@ echo "iface $iname inet static" >> /target/etc/network/interfaces; \
|
||||
echo " hwaddress $mac" >> /target/etc/network/interfaces; \
|
||||
#end if
|
||||
#if $iname in $promisc_interfaces
|
||||
echo " address 0.0.0.0" >> /target/etc/network/interfaces; \
|
||||
echo " up ifconfig $iname promisc up" >> /target/etc/network/interfaces; \
|
||||
echo " down ifconfig $iname promisc down" >> /target/etc/network/interfaces; \
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user