Skip to content

Commit b03b46e

Browse files
committed
Remove cfn-hup from login node
1 parent 2edfec1 commit b03b46e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cookbooks/aws-parallelcluster-computefleet/recipes/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313

1414
include_recipe 'aws-parallelcluster-computefleet::fleet_status'
1515

16-
if ['ComputeFleet'].include?(node['cluster']['node_type'])
16+
if ['ComputeFleet', 'LoginNode'].include?(node['cluster']['node_type'])
1717
include_recipe 'aws-parallelcluster-computefleet::config_check_update_systemd_service'
1818
end

cookbooks/aws-parallelcluster-environment/templates/cfn_hup_configuration/cfn-hook-update.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[parallelcluster-update]
22
triggers=post.update
33
<% case node['cluster']['node_type'] -%>
4-
<% when 'HeadNode', 'LoginNode' -%>
4+
<% when 'HeadNode' -%>
55
path=Resources.<%= @launch_template_resource_id %>.Metadata.AWS::CloudFormation::Init
66
action=PATH=/usr/local/bin:/bin:/usr/bin:/opt/aws/bin; . /etc/parallelcluster/pcluster_cookbook_environment.sh; $CFN_BOOTSTRAP_VIRTUALENV_PATH/cfn-init -v --stack <%= @stack_id %> --resource <%= @launch_template_resource_id %> --configsets update --region <%= @region %> --url <%= @cloudformation_url %> --role <%= @cfn_init_role %>; echo "Update triggered at $(date)" >> <%= @update_dir %>
77
<% end %>

cookbooks/aws-parallelcluster-platform/templates/supervisord/parallelcluster_supervisord.conf.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generated by Chef for AWS ParallelCluster <%= node['cluster']['node_type'] -%>
22
# Local modifications could be overwritten.
33
<% case node['cluster']['node_type'] -%>
4-
<% when 'HeadNode', 'LoginNode' -%>
4+
<% when 'HeadNode' -%>
55
[program:cfn-hup]
66
command = <%= node['cluster']['scripts_dir']%>/cfn-hup-runner.sh
77
autorestart = true

0 commit comments

Comments
 (0)