Comments (3)
these parameters are more or less directly passed to the file
type, and that's where the restrictions are
what behaviour would you expect of you specify content and source?
how should it be merged?
from puppet-fail2ban.
Sorry, my bad, I didn't paste the whole code:
class { 'fail2ban':
package_ensure => 'latest',
config_file_source => "puppet:///modules/base_sys/jail.local",
}
This is everything to trigger the error. In the end I tracked down this is the cause: manifests/init.pp:51
$config_file_content = extlib::default_content($config_file_string, $config_file_template)
for some reason this returns something that's not undef, and the only workaround i found for now was either:
if $config_file_string and $config_file_template {
$config_file_content = extlib::default_content($config_file_string, $config_file_template)
}
or better yet, just copy the config file without relying on the module, with file
from puppet-fail2ban.
same here
fail2ban::config_file_source: "puppet:///modules/fail2ban/etc/fail2ban/jail.conf"
Validation of File[fail2ban.conf] failed: You cannot specify more than one of content, source, target (file: /etc/puppetlabs/code/environments/fail/modules/fail2ban/manifests/config.pp, line: 16)
from puppet-fail2ban.
Related Issues (20)
- Update puppet forge HOT 3
- Missing directories when using custom jails HOT 4
- ignoreip in custom jails not populating HOT 3
- Support for RHEL/CentOS 8 HOT 1
- Move templates HOT 8
- Allow multiple data types
- Option to disable service start/stop notifications HOT 1
- Why is firewalld being "deactivated" HOT 2
- Fail2ban does not work on Centos 7 HOT 1
- custom_jail overrides default filters or correct way to change just logpath in default jail HOT 2
- hiera jails are not picked up HOT 1
- Add Ubuntu 22.04 Template HOT 5
- Template for Rocky Linux 8 HOT 2
- Change in case for operatingsystem fact on opensuse
- Please add Debian 12 template HOT 4
- puppet-extlib version HOT 1
- Request for release HOT 4
- Add Ubuntu 24.04 template HOT 1
- Add support for Debian 12. 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-fail2ban.