Claude 1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="update">
|
||||
<NTP>
|
||||
<Servers>
|
||||
{% for server in sophos_ntp.servers %}
|
||||
<Server>{{ server }}</Server>
|
||||
{% endfor %}
|
||||
</Servers>
|
||||
<Timezone>{{ sophos_ntp.timezone | default('UTC') }}</Timezone>
|
||||
</NTP>
|
||||
</Set>
|
||||
</Request>
|
||||
@@ -0,0 +1,35 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="update">
|
||||
<SNMP>
|
||||
<Status>{{ 'Enable' if sophos_snmp.enabled | default(false) else 'Disable' }}</Status>
|
||||
<Version>{{ sophos_snmp.version | default('v2c') }}</Version>
|
||||
{% if sophos_snmp.version | default('v2c') == 'v2c' %}
|
||||
<Community>{{ sophos_snmp.community }}</Community>
|
||||
{% endif %}
|
||||
<Location>{{ sophos_snmp.location | default('') }}</Location>
|
||||
<Contact>{{ sophos_snmp.contact | default('') }}</Contact>
|
||||
{% if sophos_snmp.allowed_networks is defined %}
|
||||
<AllowedNetworks>
|
||||
{% for network in sophos_snmp.allowed_networks %}
|
||||
<Network>{{ network }}</Network>
|
||||
{% endfor %}
|
||||
</AllowedNetworks>
|
||||
{% endif %}
|
||||
{% if sophos_snmp.trap_destinations is defined %}
|
||||
<TrapDestinations>
|
||||
{% for trap in sophos_snmp.trap_destinations %}
|
||||
<Destination>
|
||||
<Host>{{ trap.host }}</Host>
|
||||
<Port>{{ trap.port | default(162) }}</Port>
|
||||
<Community>{{ trap.community }}</Community>
|
||||
</Destination>
|
||||
{% endfor %}
|
||||
</TrapDestinations>
|
||||
{% endif %}
|
||||
</SNMP>
|
||||
</Set>
|
||||
</Request>
|
||||
@@ -0,0 +1,15 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="add">
|
||||
<SyslogServer>
|
||||
<Host>{{ item.host }}</Host>
|
||||
<Port>{{ item.port | default(514) }}</Port>
|
||||
<Protocol>{{ item.protocol | default('udp') | upper }}</Protocol>
|
||||
<Facility>{{ item.facility | default('local0') }}</Facility>
|
||||
<Severity>{{ item.severity | default('informational') }}</Severity>
|
||||
</SyslogServer>
|
||||
</Set>
|
||||
</Request>
|
||||
Reference in New Issue
Block a user