Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-2647) Optinally set parameters for mod_ext_filter module #1213

Merged
merged 1 commit into from
Sep 30, 2015
Merged

(MODULES-2647) Optinally set parameters for mod_ext_filter module #1213

merged 1 commit into from
Sep 30, 2015

Conversation

traylenator
Copy link
Contributor

Permits the

  • ExtFilterDefine to be set multiple times on a server.
  • ExtFilterOptions to be set on a directory context.
class{'apache':
  default_mods => false,
  directories  => [
    { path               => '/var/www/filter',
      ext_filter_options => 'LogStderr Onfail=abort',
    },
  ],
}
class{'apache::mod::ext_filter':
  ext_filter_define => { 'slowdown'       => 'mode=output cmd=/bin/cat preservescontentlength',
                         'puppetdb-strip' => 'mode=output outtype=application/json cmd="pdb-resource-filter"'
  },
}

@traylenator
Copy link
Contributor Author

class{'apache::mod::ext_filter':
ext_filter_define => { 'slowdown' => 'mode=output cmd=/bin/cat preservescontentlength',
'puppetdb-strip' => 'mode=output outtype=application/json cmd="pdb-resource-filter"'},
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd rather write this as:

class { 'apache::mod::ext_filter':
  ext_filter_define => {
    'slowdown'       => 'mode=output cmd=/bin/cat preservescontentlength',
    'puppetdb-strip' => 'mode=output outtype=application/json cmd="pdb-resource-filter"',
  },
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Squashed also.

Permits the

* ExtFilterDefine to be set multiple times on a server.
* ExtFilterOptions to be set on a directory context.

```puppet
class{'apache':
  default_mods => false,
  directories  => [
    { path               => '/var/www/filter',
      ext_filter_options => 'LogStderr Onfail=abort',
    },
  ],
}
class{'apache::mod::ext_filter':
  ext_filter_define => {
    'slowdown'       => 'mode=output cmd=/bin/cat preservescontentlength',
    'puppetdb-strip' => 'mode=output outtype=application/json cmd="pdb-resource-filter"',
  },
}
```

* https://tickets.puppetlabs.com/browse/MODULES-2647
* http://httpd.apache.org/docs/current/mod/mod_ext_filter.html
igalic added a commit that referenced this pull request Sep 30, 2015
(MODULES-2647) Optinally set parameters for mod_ext_filter module
@igalic igalic merged commit 3df2a4f into puppetlabs:master Sep 30, 2015
@igalic
Copy link
Contributor

igalic commented Sep 30, 2015

thanks a lot @traylenator!

@traylenator traylenator deleted the mod_ext_filter branch September 30, 2015 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants