Class: Ansible::Ruby::Modules::Win_eventlog
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_eventlog
- Defined in:
- lib/ansible/ruby/modules/generated/windows/win_eventlog.rb
Overview
Allows the addition, clearing and removal of local Windows event logs, and the creation and removal of sources from a given event log. Also allows the specification of settings per log and source.
Instance Method Summary collapse
-
#category_file ⇒ String?
For one or more sources specified, the path to a custom category resource file.
-
#maximum_size ⇒ String?
The maximum size of the event log.,Value must be between 64KB and 4GB, and divisible by 64KB.,Size can be specified in KB, MB or GB (e.g. 128KB, 16MB, 2.5GB).
-
#message_file ⇒ String?
For one or more sources specified, the path to a custom event message resource file.
-
#name ⇒ String
Name of the event log to manage.
-
#overflow_action ⇒ :OverwriteOlder, ...
The action for the log to take once it reaches its maximum size.,For C(OverwriteOlder), new log entries overwrite those older than the C(retention_days) value.,For C(OverwriteAsNeeded), each new entry overwrites the oldest entry.,For C(DoNotOverwrite), all existing entries are kept and new entries are not retained.
-
#parameter_file ⇒ String?
For one or more sources specified, the path to a custom parameter resource file.
-
#retention_days ⇒ Integer?
The minimum number of days event entries must remain in the log.,This option is only used when C(overflow_action) is C(OverwriteOlder).
-
#sources ⇒ Array<String>, ...
A list of one or more sources to ensure are present/absent in the log.,When C(category_file), C(message_file) and/or C(parameter_file) are specified, these values are applied across all sources.
-
#state ⇒ :absent, ...
Desired state of the log and/or sources.,When C(sources) is populated, state is checked for sources.,When C(sources) is not populated, state is checked for the specified log itself.,If C(state) is C(clear), event log entries are cleared for the target log.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#category_file ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 24 attribute :category_file |
#maximum_size ⇒ String?
36 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 36 attribute :maximum_size |
#message_file ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 28 attribute :message_file |
#name ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 12 attribute :name |
#overflow_action ⇒ :OverwriteOlder, ...
40 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 40 attribute :overflow_action |
#parameter_file ⇒ String?
32 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 32 attribute :parameter_file |
#retention_days ⇒ Integer?
44 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 44 attribute :retention_days |
#sources ⇒ Array<String>, ...
20 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 20 attribute :sources |
#state ⇒ :absent, ...
16 |
# File 'lib/ansible/ruby/modules/generated/windows/win_eventlog.rb', line 16 attribute :state |