-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
@@ -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, |
There was a problem hiding this comment.
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
manifests/config.pp
Outdated
@@ -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) |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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? -%> |
There was a problem hiding this comment.
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
.
add missing URL-Rewrite Feature for using squidguard or other stuff