Revision e5dce673
Added by Dominic Cleal almost 8 years ago
Rakefile | ||
---|---|---|
sh 'sed -i "s#\(.*installer_dir:\).*#\1 %s#" %s' % ["#{DATADIR}/foreman-installer", t.name]
|
||
sh 'sed -i "s#\(.*log_dir:\).*#\1 %s#" %s' % ["#{LOGDIR}/foreman-installer", t.name]
|
||
sh 'sed -i "s#\(.*module_dirs:\).*#\1 %s#" %s' % ["#{DATADIR}/foreman-installer/modules", t.name]
|
||
sh 'sed -i "s#\(.*hiera_config:\).*#\1 %s#" %s' % ["#{DATADIR}/foreman-installer/config/foreman-hiera.conf", t.name]
|
||
sh 'sed -i "s#\(.*parser_cache_path:\).*#\1 %s#" %s' % ["#{DATADIR}/foreman-installer/parser_cache/foreman.yaml", t.name]
|
||
if ENV['KAFO_MODULES_DIR']
|
||
sh 'sed -i "s#.*\(:kafo_modules_dir:\).*#\1 %s#" %s' % [ENV['KAFO_MODULES_DIR'], t.name]
|
||
... | ... | |
sh 'sed -i "s#\(^.*CONFIG_DIR = \).*#CONFIG_DIR = %s#" %s' % ["'#{SYSCONFDIR}/foreman-installer/scenarios.d/'", t.name]
|
||
end
|
||
|
||
file "#{BUILDDIR}/foreman-hiera.conf" => 'config/foreman-hiera.conf' do |t|
|
||
cp t.prerequisites[0], t.name
|
||
sh 'sed -i "s#\(.*:datadir:\).*#\1 %s#" %s' % ["#{DATADIR}/foreman-installer/config/foreman.hiera", t.name]
|
||
end
|
||
|
||
file "#{BUILDDIR}/parser_cache/foreman.yaml" => ["#{BUILDDIR}/modules", "#{BUILDDIR}/parser_cache"] do |t|
|
||
sh "#{exporter}/kafo-export-params -c config/foreman.yaml -f parsercache --no-parser-cache -o #{BUILDDIR}/parser_cache/foreman.yaml"
|
||
end
|
||
... | ... | |
BUILDDIR,
|
||
'VERSION',
|
||
"#{BUILDDIR}/foreman.yaml",
|
||
"#{BUILDDIR}/foreman-hiera.conf",
|
||
"#{BUILDDIR}/foreman-installer",
|
||
"#{BUILDDIR}/foreman-installer.8",
|
||
"#{BUILDDIR}/foreman.migrations",
|
||
... | ... | |
task :install => :build do |t|
|
||
mkdir_p "#{DATADIR}/foreman-installer"
|
||
cp_r Dir.glob('{checks,config,hooks,VERSION,README.md,LICENSE}'), "#{DATADIR}/foreman-installer"
|
||
cp "#{BUILDDIR}/foreman-hiera.conf", "#{DATADIR}/foreman-installer/config/foreman-hiera.conf"
|
||
copy_entry "#{BUILDDIR}/foreman.migrations/.applied", "#{DATADIR}/foreman-installer/config/foreman.migrations/.applied"
|
||
cp_r "#{BUILDDIR}/modules", "#{DATADIR}/foreman-installer", :preserve => true
|
||
cp_r "#{BUILDDIR}/parser_cache", "#{DATADIR}/foreman-installer"
|
Also available in: Unified diff
fixes #14789 - disable apache::mod::passenger::manage_repo (#185)
Add Hiera configuration using Kafo 0.9.0's hiera_config option to set
the Passenger class' manage_repo parameter to false on "RedHat" OSes,
preferring the EPEL or Foreman packages.
Hiera data files are installed as data files rather than configuration
files, as they're shipped by the installer only to configure modules
rather than for the user to configure the installer.