Project

General

Profile

Download (2.5 KB) Statistics
| Branch: | Tag: | Revision:
4e995792 Eric D. Helms
# Config Files for Katello
ae7d4aa1 Eric D. Helms
class katello::config::files {

include katello::params

# this should be required by all classes that need to log there (one of these)
file {
4e995792 Eric D. Helms
$katello::params::log_base:
ae7d4aa1 Eric D. Helms
owner => $katello::params::user,
group => $katello::params::group,
4e995792 Eric D. Helms
mode => '0750';
ae7d4aa1 Eric D. Helms
# this is a symlink when called via katello-configure
4e995792 Eric D. Helms
$katello::params::configure_log_base:
ae7d4aa1 Eric D. Helms
owner => $katello::params::user,
group => $katello::params::group,
4e995792 Eric D. Helms
mode => '0750';
ae7d4aa1 Eric D. Helms
}

file { '/usr/share/foreman/bundler.d/katello.rb':
ensure => file,
owner => $katello::params::user,
group => $katello::user_groups,
4e995792 Eric D. Helms
mode => '0644',
ae7d4aa1 Eric D. Helms
}

# create Rails logs in advance to get correct owners and permissions
file {[
"${katello::params::log_base}/production.log",
"${katello::params::log_base}/production_sql.log",
"${katello::params::log_base}/production_delayed_jobs.log",
"${katello::params::log_base}/production_delayed_jobs_sql.log",
"${katello::params::log_base}/production_orch.log",
"${katello::params::log_base}/production_delayed_jobs_orch.log"]:
owner => $katello::params::user,
group => $katello::params::group,
4e995792 Eric D. Helms
content => '',
ae7d4aa1 Eric D. Helms
replace => false,
4e995792 Eric D. Helms
mode => '0640',
ae7d4aa1 Eric D. Helms
}

file {
"${katello::params::config_dir}/katello.yml":
ensure => file,
content => template("katello/${katello::params::config_dir}/katello.yml.erb"),
owner => $katello::params::user,
group => $katello::user_groups,
4e995792 Eric D. Helms
mode => '0644',
ae7d4aa1 Eric D. Helms
before => [Class['foreman::database'], Exec['foreman-rake-db:migrate']];

4e995792 Eric D. Helms
'/etc/sysconfig/katello':
content => template('katello/etc/sysconfig/katello.erb'),
owner => 'root',
group => 'root',
mode => '0644';
ae7d4aa1 Eric D. Helms
4e995792 Eric D. Helms
'/etc/katello/client.conf':
content => template('katello/etc/katello/client.conf.erb'),
owner => 'root',
group => 'root',
mode => '0644';
ae7d4aa1 Eric D. Helms
# "/etc/httpd/conf.d/katello.conf":
# content => template("katello/etc/httpd/conf.d/katello.conf.erb"),
# owner => "root",
# group => "root",
# mode => "0644";
#
# "/etc/httpd/conf.d/katello.d":
# ensure => directory,
# owner => "root",
# group => "root",
# mode => "0644";
#
# "/etc/httpd/conf.d/katello.d/katello.conf":
# content => template("katello/etc/httpd/conf.d/katello.d/katello.conf.erb"),
# owner => "root",
# group => "root",
# mode => "0644";
}

}