cohdjn / cisecurity Goto Github PK
View Code? Open in Web Editor NEWConfigures Linux systems to Center for Internet Security Linux hardening standard.
License: Apache License 2.0
Configures Linux systems to Center for Internet Security Linux hardening standard.
License: Apache License 2.0
I have tried several possibilities to specify two or more users for the sshd_allowed_users parameter in RedHat7.yaml.
For example:
cisecurity::redhat7::services::sshd_allowed_users:
- 'user1'
- 'user2'
Or:
cisecurity::redhat7::services::sshd_allowed_users: ['user1', 'user2']
But each time I get this error:
Notice: /Stage[main]/Cisecurity::Redhat7::Services/Sshd_config[AllowUsers]/value: value changed ['user1'] to 'user1 user2'
Debug: Puppet::Type::Sshd_config::ProviderAugeas: Save failure details:
/augeas/files/etc/ssh/sshd_config/error/path = /files/etc/ssh/sshd_config/AllowUsers
/augeas/files/etc/ssh/sshd_config/error/lens = /opt/puppetlabs/puppet/share/augeas/lenses/dist/sshd.aug:84.7-.46:
/augeas/files/etc/ssh/sshd_config/error/message = Failed to match
{ /[0123456789]+/ = /[^\001-\004\t\n ]+/ }*
with tree
{ "1" = "user1 user2" }
Error: /Stage[main]/Cisecurity::Redhat7::Services/Sshd_config[AllowUsers]: Could not evaluate: Failed to save Augeas tree to file. See debug logs for details.
If have tested with only augeasproviders_ssh and there is no problem specifying more users.
What am I doing wrong?
puppet --version
4.10.9
Line 376 of manifests/redhat7/services.pp refers to class ntpd which should be ntp.
The module is only compatible with puppet >= 4.7.0 < 5.0.0 but the only available versions of puppet I can find in any yum repository is 3.x (epel repo) or 5.x (puppet labs repo).
Looking at the code I can see it's clearly not compatible with 3.x so I installed puppet 5.3.3 to give it a try. The following is the output when following the installation instructions from the forge.
puppet module install cohdjn-cisecurity --version 0.6.5
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Error: Could not install module 'cohdjn-cisecurity' (???)
No version of 'cohdjn-cisecurity' can satisfy all dependencies
Use `puppet module install --ignore-dependencies` to install only this module
Any ETA on when this can be puppet 5 compatible?
root@puppet:/etc/puppetlabs/code/environments/devops_testing/modules# puppet module install cohdjn-cisecurity --version 0.7.1 --environment devops_testing
Notice: Preparing to install into /etc/puppetlabs/code/environments/devops_testing/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Error: Could not install module 'cohdjn-cisecurity' (???)
No version of 'cohdjn-cisecurity' can satisfy all dependencies
Use puppet module install --ignore-dependencies
to install only this module
hey,
one of the problems is the hiera.yaml
is: path: 'os/%{facts.os.name}%{facts.os.release.major}.yaml'
should be: path: 'os/%{facts.os.family}%{facts.os.release.major}.yaml'
the other issue is that facts.d/cisecurity relies on the subscription manager to be installed.
after this, is stopped testing.
Kind regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.