puppetlabs / puppetlabs-windows_eventlog Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://forge.puppet.com/puppet/windows_eventlog
License: MIT License
Home Page: https://forge.puppet.com/puppet/windows_eventlog
License: MIT License
puppet module list
puppet-windows_eventlog requires 'puppetlabs-stdlib' (>= 4.13.1 < 6.0.0).
6.2.0 is the current version of stdlib. Stdlib version 5.x is keeping us from upgrading other modules that require version 6 for their respective upgrade dependencies.
windows_eventlog { 'Security':
log_path => 'c:\Logs\SecurityEvents\Security.evtx',
log_size => '1073741824',
max_log_policy => 'archive'
}
then
windows_eventlog { 'Security':
log_path => 'c:\Logs\SecurityEvents\Security.evtx',
log_size => '1073741824',
max_log_policy => 'overwrite'
}
The resource doesn't correctly set the registry value for
'HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Security\AutoBackupLogFiles' back to 0
'HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Security\AutoBackupLogFiles' should be 0
I think this case logic needs to manage both registry keys for every case.
https://github.com/voxpupuli/puppet-windows_eventlog/blob/c630ccd4599a2480ff795774317fdfde5808030c/manifests/init.pp#L80
windows_eventlog { 'Security':
log_size => 209715200
}
Error in compilation
log_size should accept numeric types.
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, validate_re(): input needs to be a String, not a Integer (file: /etc/puppetlabs/code/modules/windows_eventlog/manifests/init.pp, line: 58, column: 3) (file: /etc/puppetlabs/code/environments/jb_exchangelogging/site/profile/manifests/eventlogs.pp, line: 15) on node
Suggest this is changed to:
validate_re("$log_size", '^\d*$','The log_size argument must be a number or a string representation of a number')
This link indicates the first argument needs to be quoted.
I'm currently unable to update to the most recent version of puppetlabs-registry because of dependency conflicts introduced by this module. These dependencies are updated in the latest RC version of this module, but it hasn't been released to the Forge yet.
I am going to refactor this a bit now as I have a immediate need to manage event logs and you have overall good stuff here.
I want the autoloader to just work, and not need use an include to get at the define.
It is considered bad form to put defines in init.pp so I will need to reorg. I will let you know how it goes shortly. ;)
Recent update of puppetlabs-registry (v2.0.1) breaks this module and reverting 1.1.4 breaks too many other modules.
What are the plan to update dependencies?
Thanks
puppet module install puppet-windows_eventlog
module install fails
module install works
Appveyor with registry 1.1.4
https://ci.appveyor.com/project/juju4/puppet-meta-harden-windows/build/1.1.x.115?fullLog=true
Notice: Preparing to install into C:/ProgramData/PuppetLabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
C:/ProgramData/PuppetLabs/code/environments/production/modules
ΓööΓöÇΓö¼ puppet-windows_eventlog (v2.0.0)
Γö£ΓöÇΓöÇ puppetlabs-registry (v1.1.4)
ΓööΓöÇΓöÇ puppetlabs-stdlib (v4.25.1)
Notice: Preparing to install into C:/ProgramData/PuppetLabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Appveyor with 2.0.1
https://ci.appveyor.com/project/juju4/puppet-meta-harden-windows/build/1.1.x.116?fullLog=true
Notice: Preparing to install into C:/ProgramData/PuppetLabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
puppet : Error: Could not install module 'puppet-windows_eventlog' (???)
At line:11 char:1
+ puppet module install puppet-windows_eventlog
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error: C...eventlog' (???):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
No version of 'puppet-windows_eventlog' can satisfy all dependencies
Use `puppet module install --ignore-dependencies` to install only this module
attempt to update puppetlabs-registry
'puppet-windows_eventlog' (v3.0.0) requires 'puppetlabs-registry' (>= 1.1.1 < 3.0.0)
Current version of puppetlabs-registry is 3.1.0. Can you please support it in this module? Thank you
The default MaxSize registry value should be 1048576 instead of 1028. The registry value is in bytes. Users should only use the 1028 value when setting the Maximum log size (KB) value in MMC (Windows Event Viewer.)
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.