Comments (5)
How about something along these lines:
define squid::acl (
Boolean $allow_first = true,
String $type,
String $aclname = $title,
Array $entries = [],
String $order = '05',
String $comment = "acl fragment for ${aclname}",
) {
$priority = ($allow_first and $type=='allow') ? {
true => '000',
default => '200',
}
concat::fragment{"squid_acl_${aclname}":
target => $::squid::config,
content => template('squid/squid.conf.acl.erb'),
order => "10-${priority}-${order}-${type}",
}
}
Although allow_first should probably be defined in init.pp
/ params.pp
or you could make a right mess by changing it each time squid::acl
was called
from puppet-squid.
Something like this makes sense. I know it's been a while but would you be interested in writing up a PR for this?
from puppet-squid.
I could, just not sure when I'll get to it though.
@warrenpnz happy to step back if you want to pick this up
from puppet-squid.
So currently the order => "10-${order}-${type_cleaned}"
So allows allways come before denys? Is that not the case? That was the intentions for sure.
Steve.
from puppet-squid.
Hi,
I have the same issue.
I need to set http_access deny to_localhost before allow.
Any news on this?
from puppet-squid.
Related Issues (13)
- auth_param syntaxe error HOT 5
- cache_dir on mounted filesystem
- ssl::server_name syntax error HOT 2
- Duplicate HTTP Port Declarations For Different Bind IPs Produces SELinux Duplicate Resource Declaration Error HOT 3
- Incompatible with released version of puppetlabs-stdlib HOT 2
- no option for squid configuration directive 'hosts_file' HOT 1
- Request release of v3.0.1 HOT 3
- Puppet 7 support HOT 2
- Support extra_config_section to take random configuration HOT 15
- Syntax check when restarting. HOT 3
- Set selinux file context on cache directory HOT 1
- puppet/selinux missing as requirement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-squid.