Tutorial: Patching a server in an IPv6 only environment
Patch Manager supports the patching of nodes in environments that only have IPv6. By updating the SSM Agent configuration, patching operations can be configured to only make calls to IPv6 service endpoints.
To patch a server in an IPv6 only environment
-
Ensure that SSM Agent version 3.3270.0 or later is installed on the managed node.
-
On the managed node, navigate to the SSM Agent configuration file. You can find the
amazon-ssm-agent.json
file in the following directories:-
Linux:
/etc/amazon/ssm/
-
macOS:
/opt/aws/ssm/
-
Windows Server:
C:\Program Files\Amazon\SSM
If
amazon-ssm-agent.json
doesn't exist yet, copy the contents ofamazon-ssm-agent.json.template
under the same directory toamazon-ssm-agent.json
. -
-
Update the following entry to set the correct Region and set
UseDualStackEndpoint
totrue
:{ -------- "Agent": { "Region": "region", "UseDualStackEndpoint": true }, -------- }
-
Restart the SSM Agent service using the appropriate command for your operating system:
-
Linux:
sudo systemctl restart amazon-ssm-agent
-
Ubuntu Server using Snap:
sudo snap restart amazon-ssm-agent
-
macOS:
sudo launchctl stop com.amazon.aws.ssm
followed bysudo launchctl start com.amazon.aws.ssm
-
Windows Server:
Stop-Service AmazonSSMAgent
followed byStart-Service AmazonSSMAgent
For the full list of commands per operating system, see Checking SSM Agent status and starting the agent.
-
-
Execute any patching operation to verify patching operations succeed in your IPv6-only environment. Ensure that the nodes being patched have connectivity to the patch source. You can check the Run Command output from the patching execution to check for warnings about inaccessible repositories. When patching a node that is running in an IPv6 only environment, ensure that the node has connectivity to the patch source. You can check the Run Command output from the patching execution to check for warnings about inaccessible repositories. For DNF-based operating systems, it is possible to configure unavailable repositories to be skipped during patching if the
skip_if_unavailable
option is set toTrue
under/etc/dnf/dnf.conf
. DNF-based operating systems include Amazon Linux 2023, Red Hat Enterprise Linux 8 and later versions, Oracle Linux 8 and later versions, Rocky Linux, AlmaLinux, & CentOS 8 and later versions. On Amazon Linux 2023, theskip_if_unavailable
option is set toTrue
by default.Note
When using the Install Override List or Baseline Override features, ensure that the provided URL is reachable from the node. If the SSM Agent config option
UseDualStackEndpoint
is set totrue
, then a dualstack S3 client is used when an S3 URL is provided.