From e43d79b11c91f2ad2ddd7ae0bdc4339217ba7034 Mon Sep 17 00:00:00 2001 From: Hiroshi Tanaka Date: Sat, 31 Aug 2019 13:37:52 +0900 Subject: [PATCH] initial commit --- LICENSE | 21 + README.md | 94 ++ project.ini | 31 + .../default/chef/roles/pbspro_execute_role.rb | 9 + specs/default/chef/roles/pbspro_login_role.rb | 9 + .../default/chef/roles/pbspro_master_role.rb | 14 + .../chef/site-cookbooks/pbspro/README.md | 29 + .../pbspro/attributes/default.rb | 35 + .../pbspro/files/default/autostart.py | 606 +++++++++ .../pbspro/files/default/autostart_hook.py | 61 + .../pbspro/files/default/autostart_test.py | 1210 +++++++++++++++++ .../pbspro/files/default/autostop.rb | 74 + .../pbspro/files/default/config | 1 + .../pbspro/files/default/doqmgr.sh | 40 + .../pbspro/files/default/logging_init.py | 40 + .../pbspro/files/default/mockpbs.py | 131 ++ .../pbspro/files/default/pbs_driver.py | 301 ++++ .../pbspro/files/default/pbscc.py | 239 ++++ .../site-cookbooks/pbspro/files/default/pi.py | 76 ++ .../site-cookbooks/pbspro/files/default/pi.sh | 8 + .../pbspro/files/default/runpi.sh | 9 + .../pbspro/files/default/sched.config | 28 + .../pbspro/files/default/submit_hook.py | 259 ++++ .../pbspro/files/default/submit_hook_test.py | 269 ++++ .../chef/site-cookbooks/pbspro/metadata.rb | 12 + .../pbspro/recipes/autostart.rb | 60 + .../site-cookbooks/pbspro/recipes/autostop.rb | 19 + .../site-cookbooks/pbspro/recipes/default.rb | 3 + .../site-cookbooks/pbspro/recipes/execute.rb | 130 ++ .../site-cookbooks/pbspro/recipes/login.rb | 32 + .../pbspro/recipes/scheduler.rb | 51 + .../site-cookbooks/pbspro/recipes/skel.rb | 22 + .../pbspro/recipes/submit_hook.rb | 51 + .../pbspro/spec/default_spec.rb | 110 ++ .../site-cookbooks/pbspro/spec/spec_helper.rb | 20 + .../pbspro/templates/default/mom_config.erb | 1 + .../pbspro/templates/default/pbs.conf.erb | 9 + .../templates/default/pbsmastercron.rb.erb | 16 + .../pbspro/templates/default/server_name.erb | 1 + .../templates/default/server_name_exec.erb | 1 + specs/default/chefstar.tar.gz | Bin 0 -> 35656 bytes specs/default/cluster-init/files/README.txt | 5 + specs/default/cluster-init/files/runpbs.sh | 14 + specs/default/cluster-init/files/script.sh | 19 + .../default/cluster-init/files/starccmrun.sh | 15 + .../cluster-init/files/starccmsetup.sh | 8 + specs/default/cluster-init/scripts/README.txt | 10 + specs/default/cluster-init/tests/README.txt | 5 + .../execute/chef/roles/pbspro_execute_role.rb | 9 + specs/execute/chef/roles/pbspro_login_role.rb | 9 + .../execute/chef/roles/pbspro_master_role.rb | 14 + .../chef/site-cookbooks/pbspro/README.md | 29 + .../pbspro/attributes/default.rb | 35 + .../pbspro/files/default/autostart.py | 606 +++++++++ .../pbspro/files/default/autostart_hook.py | 61 + .../pbspro/files/default/autostart_test.py | 1210 +++++++++++++++++ .../pbspro/files/default/autostop.rb | 74 + .../pbspro/files/default/config | 1 + .../pbspro/files/default/doqmgr.sh | 40 + .../pbspro/files/default/logging_init.py | 40 + .../pbspro/files/default/mockpbs.py | 131 ++ .../pbspro/files/default/pbs_driver.py | 301 ++++ .../pbspro/files/default/pbscc.py | 239 ++++ .../site-cookbooks/pbspro/files/default/pi.py | 76 ++ .../site-cookbooks/pbspro/files/default/pi.sh | 8 + .../pbspro/files/default/runpi.sh | 9 + .../pbspro/files/default/sched.config | 28 + .../pbspro/files/default/submit_hook.py | 259 ++++ .../pbspro/files/default/submit_hook_test.py | 269 ++++ .../chef/site-cookbooks/pbspro/metadata.rb | 12 + .../pbspro/recipes/autostart.rb | 60 + .../site-cookbooks/pbspro/recipes/autostop.rb | 19 + .../site-cookbooks/pbspro/recipes/default.rb | 3 + .../site-cookbooks/pbspro/recipes/execute.rb | 130 ++ .../site-cookbooks/pbspro/recipes/login.rb | 32 + .../pbspro/recipes/scheduler.rb | 51 + .../site-cookbooks/pbspro/recipes/skel.rb | 22 + .../pbspro/recipes/submit_hook.rb | 51 + .../pbspro/spec/default_spec.rb | 110 ++ .../site-cookbooks/pbspro/spec/spec_helper.rb | 20 + .../pbspro/templates/default/mom_config.erb | 1 + .../pbspro/templates/default/pbs.conf.erb | 9 + .../templates/default/pbsmastercron.rb.erb | 16 + .../pbspro/templates/default/server_name.erb | 1 + .../templates/default/server_name_exec.erb | 1 + specs/execute/cluster-init/files/README.txt | 5 + specs/execute/cluster-init/files/runpbs.sh | 14 + specs/execute/cluster-init/files/script.sh | 19 + .../execute/cluster-init/files/starccmrun.sh | 15 + .../cluster-init/files/starccmsetup.sh | 8 + .../cluster-init/scripts/10.execute.sh | 70 + specs/execute/cluster-init/tests/README.txt | 5 + specs/master/cluster-init/files/starccmrun.sh | 22 + .../scripts/10.install_starccm.sh | 110 ++ specs/master/cluster-init/tests/README.txt | 5 + templates/pbs_extended_nfs_starccm.txt | 281 ++++ 96 files changed, 8748 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 project.ini create mode 100644 specs/default/chef/roles/pbspro_execute_role.rb create mode 100644 specs/default/chef/roles/pbspro_login_role.rb create mode 100644 specs/default/chef/roles/pbspro_master_role.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/README.md create mode 100644 specs/default/chef/site-cookbooks/pbspro/attributes/default.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/autostart.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/autostart_hook.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/autostart_test.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/autostop.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/config create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/doqmgr.sh create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/logging_init.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/mockpbs.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/pbs_driver.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/pbscc.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/pi.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/pi.sh create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/runpi.sh create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/sched.config create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/submit_hook.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/files/default/submit_hook_test.py create mode 100644 specs/default/chef/site-cookbooks/pbspro/metadata.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/autostart.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/autostop.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/default.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/execute.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/login.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/scheduler.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/skel.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/recipes/submit_hook.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/spec/default_spec.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/spec/spec_helper.rb create mode 100644 specs/default/chef/site-cookbooks/pbspro/templates/default/mom_config.erb create mode 100644 specs/default/chef/site-cookbooks/pbspro/templates/default/pbs.conf.erb create mode 100644 specs/default/chef/site-cookbooks/pbspro/templates/default/pbsmastercron.rb.erb create mode 100644 specs/default/chef/site-cookbooks/pbspro/templates/default/server_name.erb create mode 100644 specs/default/chef/site-cookbooks/pbspro/templates/default/server_name_exec.erb create mode 100644 specs/default/chefstar.tar.gz create mode 100644 specs/default/cluster-init/files/README.txt create mode 100644 specs/default/cluster-init/files/runpbs.sh create mode 100644 specs/default/cluster-init/files/script.sh create mode 100644 specs/default/cluster-init/files/starccmrun.sh create mode 100644 specs/default/cluster-init/files/starccmsetup.sh create mode 100644 specs/default/cluster-init/scripts/README.txt create mode 100644 specs/default/cluster-init/tests/README.txt create mode 100644 specs/execute/chef/roles/pbspro_execute_role.rb create mode 100644 specs/execute/chef/roles/pbspro_login_role.rb create mode 100644 specs/execute/chef/roles/pbspro_master_role.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/README.md create mode 100644 specs/execute/chef/site-cookbooks/pbspro/attributes/default.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/autostart.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/autostart_hook.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/autostart_test.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/autostop.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/config create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/doqmgr.sh create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/logging_init.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/mockpbs.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/pbs_driver.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/pbscc.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/pi.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/pi.sh create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/runpi.sh create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/sched.config create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/submit_hook.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/files/default/submit_hook_test.py create mode 100644 specs/execute/chef/site-cookbooks/pbspro/metadata.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/autostart.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/autostop.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/default.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/execute.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/login.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/scheduler.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/skel.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/recipes/submit_hook.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/spec/default_spec.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/spec/spec_helper.rb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/templates/default/mom_config.erb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/templates/default/pbs.conf.erb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/templates/default/pbsmastercron.rb.erb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/templates/default/server_name.erb create mode 100644 specs/execute/chef/site-cookbooks/pbspro/templates/default/server_name_exec.erb create mode 100644 specs/execute/cluster-init/files/README.txt create mode 100644 specs/execute/cluster-init/files/runpbs.sh create mode 100644 specs/execute/cluster-init/files/script.sh create mode 100644 specs/execute/cluster-init/files/starccmrun.sh create mode 100644 specs/execute/cluster-init/files/starccmsetup.sh create mode 100644 specs/execute/cluster-init/scripts/10.execute.sh create mode 100644 specs/execute/cluster-init/tests/README.txt create mode 100644 specs/master/cluster-init/files/starccmrun.sh create mode 100644 specs/master/cluster-init/scripts/10.install_starccm.sh create mode 100644 specs/master/cluster-init/tests/README.txt create mode 100644 templates/pbs_extended_nfs_starccm.txt diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2d48557 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright Hiroshi Tanaka. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/README.md b/README.md new file mode 100644 index 0000000..f20afb0 --- /dev/null +++ b/README.md @@ -0,0 +1,94 @@ +# Azure CycleCloud template for Siemens STAR-CCM+ + +## Prerequisites + +1. Prepaire for your STAR-CCM+ bilnary. +2. Install CycleCloud CLI + +## How to install + +1. tar zxvf cyclecloud-STAR-CCM+.tar.gz +2. cd cyclecloud-STAR-CCM+ +2. put STAR-CCM+ library/model on