Skip to content

Instantly share code, notes, and snippets.

@ekohl
Created February 11, 2014 20:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekohl/8943924 to your computer and use it in GitHub Desktop.
Save ekohl/8943924 to your computer and use it in GitHub Desktop.
define foreman::config::passenger::fragment(
$content='',
$ssl_content='',
) {
require foreman::config::passenger
file { "${apache::mod_dir}/05-foreman.d/${name}.conf":
ensure => present,
content => $content,
owner => 'root',
group => 'root',
mode => '0644',
notify => Class['apache::service'],
}
file { "${apache::mod_dir}/05-foreman-ssl.d/${name}.conf":
ensure => present,
content => $ssl_content,
owner => 'root',
group => 'root',
mode => '0644',
notify => Class['apache::service'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment