|
471 | 471 | ensure => 'file', |
472 | 472 | mode => '0755', |
473 | 473 | seltype => 'bin_t', |
474 | | - content => @("EOT"/$) |
475 | | -#!/bin/bash |
476 | | -{ |
477 | | - source /etc/slurm/env.secrets |
478 | | - export PATH=\$PATH:/opt/software/slurm/bin |
479 | | - ${autoscale_env_prefix}/bin/slurm_resume \$@ |
480 | | -} &>> /var/log/slurm/slurm_autoscale.log |
481 | | -|EOT |
| 474 | + content => epp('profile/slurm/slurm_autoscale', { |
| 475 | + 'prefix' => $autoscale_env_prefix, |
| 476 | + 'cmd' => 'slurm_resume', |
| 477 | + } |
| 478 | + ), |
482 | 479 | } |
483 | 480 |
|
484 | 481 | file { '/usr/bin/slurm_resume_fail': |
485 | 482 | ensure => 'file', |
486 | 483 | mode => '0755', |
487 | 484 | seltype => 'bin_t', |
488 | | - content => @("EOT"/$) |
489 | | -#!/bin/bash |
490 | | -{ |
491 | | - source /etc/slurm/env.secrets |
492 | | - export PATH=\$PATH:/opt/software/slurm/bin |
493 | | - ${autoscale_env_prefix}/bin/slurm_resume_fail \$@ |
494 | | -} &>> /var/log/slurm/slurm_autoscale.log |
495 | | -|EOT |
| 485 | + content => epp('profile/slurm/slurm_autoscale', { |
| 486 | + 'prefix' => $autoscale_env_prefix, |
| 487 | + 'cmd' => 'slurm_resume_fail', |
| 488 | + } |
| 489 | + ), |
496 | 490 | } |
497 | 491 |
|
498 | 492 | file { '/usr/bin/slurm_suspend': |
499 | 493 | ensure => 'file', |
500 | 494 | mode => '0755', |
501 | 495 | seltype => 'bin_t', |
502 | | - content => @("EOT"/$) |
503 | | -#!/bin/bash |
504 | | -{ |
505 | | - source /etc/slurm/env.secrets |
506 | | - export PATH=\$PATH:/opt/software/slurm/bin |
507 | | - ${autoscale_env_prefix}/bin/slurm_suspend \$@ |
508 | | -} &>> /var/log/slurm/slurm_autoscale.log |
509 | | -|EOT |
| 496 | + content => epp('profile/slurm/slurm_autoscale', { |
| 497 | + 'prefix' => $autoscale_env_prefix, |
| 498 | + 'cmd' => 'slurm_suspend', |
| 499 | + } |
| 500 | + ), |
510 | 501 | } |
511 | 502 |
|
512 | 503 | file { '/etc/slurm/job_submit.lua': |
|
0 commit comments