Associate role related logs in role configs.
Define role related log attributes in role configs so that recipe does not need to check its own role every time when writing a role related config from template, because those info would already have been in role definition and passed down to node attributes. Process monitoring can use the same mechanism. Change-Id: Ifb10da356baf99d2d7e21c8d4d3d8df38fc81f58
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
name "os-block-storage-api"
|
||||
description "OpenStack Block Storage API service"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"cinder-api" => "/var/log/cinder/api.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"cinder-api" => "/var/log/cinder/cinder-api.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-block-storage::api]"
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-block-storage-scheduler"
|
||||
description "OpenStack Block Storage Scheduler service"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"cinder-scheduler" => "/var/log/cinder/scheduler.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"cinder-scheduler" => "/var/log/cinder/cinder-scheduler.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-block-storage::scheduler]"
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-block-storage-worker"
|
||||
description "OpenStack Block Storage worker"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"cinder-volume" => "/var/log/cinder/volume.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"cinder-volume" => "/var/log/cinder/cinder-volume.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-block-storage::volume]"
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-compute-api-os-compute"
|
||||
description "OpenStack API for Compute"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"nova-api" => "/var/log/nova/api.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"nova-api" => "/var/log/nova/nova-api.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-compute::api-os-compute]"
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
name "os-compute-scheduler"
|
||||
description "Nova scheduler"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"nova-scheduler" => "/var/log/nova/scheduler.log",
|
||||
"nova-conductor" => "/var/log/nova/conductor.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"nova-scheduler" => "/var/log/nova/nova-scheduler.log",
|
||||
"nova-conductor" => "/var/log/nova/nova-conductor.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-compute::scheduler]"
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-compute-worker"
|
||||
description "The compute node, most likely with a hypervisor."
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"nova-compute" => "/var/log/nova/compute.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"nova-compute" => "/var/log/nova/nova-compute.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-compute::compute]"
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-identity"
|
||||
description "Roll-up role for Identity"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"keystone" => "/var/log/keystone/keystone.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"keystone" => "/var/log/keystone/keystone.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-identity::server]",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-image-api"
|
||||
description "Glance API service"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"glance-api" => "/var/log/glance/api.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"glance-api" => "/var/log/glance/api.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
#"recipe[openstack-image::db]",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-image-registry"
|
||||
description "Glance Registry service"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"glance-registry" => "/var/log/glance/registry.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"glance-registry" => "/var/log/glance/registry.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
#"recipe[openstack-image::db]",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-network-server"
|
||||
description "Configures OpenStack networking, managed by attribute for either nova-network or quantum"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"quantum-server" => "/var/log/quantum/server.log"
|
||||
},
|
||||
"rhelloglist" => {
|
||||
"quantum-server" => "/var/log/quantum/server.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-network::server]"
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
name "os-network"
|
||||
description "Configures OpenStack networking, managed by attribute for either nova-network or quantum"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"quantum-ovsagent" => "/var/log/quantum/openvswitch-agent.log",
|
||||
"quantum-dhcp" => "/var/log/quantum/dhcp-agent.log",
|
||||
"quantum-l3agent" => "/var/log/quantum/l3-agent.log"
|
||||
},
|
||||
"rhelloglist" => {
|
||||
"quantum-ovsagent" => "/var/log/quantum/openvswitch-agent.log",
|
||||
"quantum-dhcp" => "/var/log/quantum/dhcp-agent.log",
|
||||
"quantum-l3agent" => "/var/log/quantum/l3-agent.log"
|
||||
},
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-network::openvswitch]",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-ops-database"
|
||||
description "Currently MySQL Server (non-ha)"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"mysqld" => "/var/log/mysqld.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"mysqld" => "/var/log/mysql.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-ops-database::server]",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
name "os-ops-messaging"
|
||||
description "Currently RabbitMQ Server (non-ha)"
|
||||
override_attributes(
|
||||
"rsyslog" => {
|
||||
"rhelloglist" => {
|
||||
"rabbitmq" => "/var/log/rabbitmq/rabbit\@$hostname.log"
|
||||
},
|
||||
"debianloglist" => {
|
||||
"rabbitmq" => "/var/log/rabbitmq/rabbit\@$hostname.log"
|
||||
}
|
||||
}
|
||||
)
|
||||
run_list(
|
||||
"role[os-base]",
|
||||
"recipe[openstack-ops-messaging::server]"
|
||||
|
||||
Reference in New Issue
Block a user