Skip to content

Instantly share code, notes, and snippets.

@ekohl
Created February 11, 2014 20:54
Show Gist options
  • Select an option

  • Save ekohl/8943924 to your computer and use it in GitHub Desktop.

Select an option

Save ekohl/8943924 to your computer and use it in GitHub Desktop.

Revisions

  1. ekohl created this gist Feb 11, 2014.
    25 changes: 25 additions & 0 deletions fragment.pp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    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'],
    }

    }