File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
specs/default/chef/site-cookbooks/pbspro Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 22name = pbspro
33label = PBS Professional OSS
44type = scheduler
5- version = 1.3.4
5+ version = 1.3.5
66autoupgrade = true
77
88[blobs]
Original file line number Diff line number Diff line change 22# Copyright (c) Microsoft Corporation. All rights reserved.
33# Licensed under the MIT License.
44#
5+ set -e
56
67/opt/pbs/bin/qmgr -c ' set server managers = root@*'
78/opt/pbs/bin/qmgr -c ' set server query_other_jobs = true'
@@ -24,14 +25,12 @@ create_resource ngpus size
2425/opt/pbs/bin/qmgr -c " set queue workq resources_default.ungrouped = false"
2526/opt/pbs/bin/qmgr -c " set queue workq resources_default.place = scatter"
2627/opt/pbs/bin/qmgr -c " set queue workq default_chunk.ungrouped = false"
27- /opt/pbs/bin/qmgr -c " set queue workq default_chunk.place = scatter"
2828
2929/opt/pbs/bin/qmgr -c " create queue htcq"
3030/opt/pbs/bin/qmgr -c " set queue htcq queue_type = Execution"
3131/opt/pbs/bin/qmgr -c " set queue htcq resources_default.ungrouped = true"
3232/opt/pbs/bin/qmgr -c " set queue htcq resources_default.place = pack"
3333/opt/pbs/bin/qmgr -c " set queue htcq default_chunk.ungrouped = true"
34- /opt/pbs/bin/qmgr -c " set queue htcq default_chunk.place = pack"
3534/opt/pbs/bin/qmgr -c " set queue htcq enabled = true"
3635/opt/pbs/bin/qmgr -c " set queue htcq started = true"
3736
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # Licensed under the MIT License.
4+ #
5+ set -e
6+
7+ sed -i " s/^if /#if /g" /opt/pbs/lib/init.d/limits.pbs_mom
8+ sed -i " s/^fi/#fi /g" /opt/pbs/lib/init.d/limits.pbs_mom
Original file line number Diff line number Diff line change 3939 action :create
4040end
4141
42+ cookbook_file "/var/spool/pbs/modify_limits.sh" do
43+ source "modify_limits.sh"
44+ mode "0755"
45+ owner "root"
46+ group "root"
47+ action :create
48+ end
49+
4250cookbook_file "/var/spool/pbs/sched_priv/sched_config" do
4351 source "sched.config"
4452 owner "root"
5159end
5260
5361execute "serverconfig" do
54- command "/var/spool/pbs/doqmgr.sh && touch /etc/qmgr.config"
62+ command "/var/spool/pbs/doqmgr.sh && /var/spool/pbs/modify_limits.sh && touch /etc/qmgr.config"
5563 creates "/etc/qmgr.config"
5664 notifies :restart , 'service[pbs]' , :delayed
5765end
You can’t perform that action at this time.
0 commit comments