File tree 3 files changed +11
-72
lines changed
aws-parallelcluster-environment/resources/network_service
aws-parallelcluster-slurm
files/amazon-2023/dns_domain 3 files changed +11
-72
lines changed Original file line number Diff line number Diff line change 20
20
use 'partial/_network_service_redhat_based'
21
21
22
22
def network_service_name
23
- 'NetworkManager '
23
+ 'systemd-resolved '
24
24
end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
end
14
14
15
15
use 'partial/_dns_domain_common'
16
- use 'partial/_dns_domain_redhat'
17
16
18
- # Configure custom dns domain (only if defined) by appending the Route53 domain created within the cluster
19
- # ($CLUSTER_NAME.pcluster) and be listed as a "search" domain in the resolv.conf file.
20
- action :configure do
21
- return if on_docker?
17
+ def search_domain_config_path
18
+ # Configure resolved to automatically append Route53 search domain in resolv.conf.
19
+ # On Ubuntu18 resolv.conf is managed by systemd-resolved.
20
+ '/etc/systemd/resolved.conf'
21
+ end
22
22
23
- # On RHEL8 dhclient is not enabled by default
24
- # Put pcluster version of NetworkManager.conf in place
25
- # dhcp = dhclient needs to be added under [main] section to enable dhclient
26
- # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/networking_considerations-in-adopting-rhel-8#dhcp_plugin_networking
27
- cookbook_file 'NetworkManager.conf' do
28
- path '/etc/NetworkManager/NetworkManager.conf'
29
- source 'dns_domain/NetworkManager.conf'
30
- cookbook 'aws-parallelcluster-slurm'
31
- user 'root'
32
- group 'root'
33
- mode '0644'
34
- end
23
+ def append_pattern
24
+ 'Domains=*'
25
+ end
35
26
36
- action_update_search_domain
37
- network_service 'Restart network service'
27
+ def append_line
28
+ "Domains= #{ node [ 'cluster' ] [ 'dns_domain' ] } "
38
29
end
You can’t perform that action at this time.
0 commit comments