-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Azure/feature/import-from-cyclecloud
Feature/import from cyclecloud
- Loading branch information
Showing
39 changed files
with
3,400 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# | ||
name "pbspro_execute_role" | ||
description "PBSPro Execute Role" | ||
run_list("recipe[cshared::client]", | ||
"recipe[cuser]", | ||
"recipe[pbspro::execute]", | ||
"recipe[cganglia::client]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# | ||
name "pbspro_master_role" | ||
description "Open PBSPro Master Role" | ||
run_list("role[scheduler]", | ||
"recipe[cshared::directories]", | ||
"recipe[pbspro::skel]", | ||
"recipe[cuser]", | ||
"recipe[cshared::server]", | ||
"recipe[pbspro::scheduler]", | ||
"recipe[cganglia::server]") | ||
|
||
default_attributes "cyclecloud" => { "discoverable" => true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Description | ||
==== | ||
|
||
Requirements | ||
==== | ||
|
||
Usage | ||
==== | ||
|
||
|
||
Platform | ||
---- | ||
|
||
Tested on: | ||
|
||
Cookbooks | ||
---- | ||
|
||
|
||
Resources and Providers | ||
==== | ||
|
||
TODO | ||
|
||
Attributes | ||
==== | ||
|
||
TODO | ||
==== |
35 changes: 35 additions & 0 deletions
35
specs/default/chef/site-cookbooks/pbspro/attributes/default.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
# | ||
default[:pbspro][:version] = "18.1.3-0" | ||
default[:pbspro][:slots] = nil | ||
|
||
default[:pbspro][:is_grouped] = true | ||
|
||
default[:pbspro][:submit_hook][:__comment__] = "This file was generated by serializing node[:cyclecloud][:pbspro][:submit_hook]." | ||
default[:pbspro][:submit_hook][:disable_eager_packing] = true | ||
default[:pbspro][:submit_hook][:enabled] = true | ||
|
||
default[:pbspro][:submit_hook][:logging][:level] = "INFO" | ||
default[:pbspro][:submit_hook][:logging][:filename] = "#{node[:cyclecloud][:bootstrap]}/pbs/submit_hook.log" | ||
default[:pbspro][:submit_hook][:logging][:filemode] = "a" | ||
default[:pbspro][:submit_hook][:logging][:format] = "%(asctime)s %(levelname)s %(message)s" | ||
|
||
|
||
default[:pbspro][:autoscale_hook][:__comment__] = "This file was generated by serializing node[:cyclecloud][:pbspro][:autostart_hook]." | ||
default[:pbspro][:autoscale_hook][:src_dirs] = ["#{node[:cyclecloud][:home]}/system/embedded/lib/python2.7/site-packages", | ||
"#{node[:cyclecloud][:bootstrap]}/pbs" | ||
] | ||
# pass through to the hook config json file | ||
default[:pbspro][:autoscale_hook][:cyclecloud_home] = node[:cyclecloud][:home] | ||
default[:pbspro][:autoscale_hook][:autostart_log_level] = "DEBUG" | ||
default[:pbspro][:autoscale_hook][:autostart_log_file_level] = "DEBUG" | ||
|
||
if node[:cyclecloud][:node][:template] == "master" | ||
default[:cyclecloud][:cluster][:autoscale][:idle_time_before_jobs] = 3600 | ||
default[:cyclecloud][:cluster][:autoscale][:idle_time_after_jobs] = 300 | ||
else | ||
# the pbs autoscaler should be removing idle nodes, but if after an hour of idle time assume something is wrong with the autoscaler. | ||
default[:cyclecloud][:cluster][:autoscale][:idle_time_before_jobs] = 4 * 3600 | ||
default[:cyclecloud][:cluster][:autoscale][:idle_time_after_jobs] = 4 * 3600 | ||
end |
Oops, something went wrong.