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

add url_rewrite feature #78

Merged
merged 2 commits into from
May 7, 2018
Merged

add url_rewrite feature #78

merged 2 commits into from
May 7, 2018

Conversation

SourceDoctor
Copy link
Contributor

add missing URL-Rewrite Feature for using squidguard or other stuff

@@ -15,6 +15,7 @@
$auth_params = $::squid::auth_params,
$http_ports = $::squid::http_ports,
$https_ports = $::squid::https_ports,
$url_rewrite_program = $::squid::url_rewrite_program,
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you've forgotten to edit init.pp

@@ -60,6 +61,9 @@
if $cache_dirs {
create_resources('squid::cache_dir', $cache_dirs)
}
if $url_rewrite_program {
create_resources('squid::url_rewrite_program', $url_rewrite_program)
Copy link
Member

Choose a reason for hiding this comment

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

since it's url_rewrite_program singular, I'm assuming this will be a string? (and therefore create_resources isn't what you'll need).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

everything done, something else to handle or ready to merge?

@@ -0,0 +1,5 @@
# fragment for url_rewrite_program <%= @program %>
url_rewrite_program <%= @program %>
<% unless @children.nil? -%>
Copy link
Contributor

Choose a reason for hiding this comment

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

To be consistant the simpler

<% if @children %>

siince it's an Integer.

@traylenator traylenator added enhancement New feature or request and removed needs-tests labels Feb 15, 2018
@traylenator traylenator merged commit 1138dec into voxpupuli:master May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants