Skip to content

Commit

Permalink
(role/htcondor) update environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarria committed May 1, 2024
1 parent 5ff7ac2 commit 7bdf4ef
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
14 changes: 12 additions & 2 deletions hieradata/role/htcondor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ packages:
files:
/etc/profile.d/rubin.sh:
ensure: "file"
mode: "0600"
content: "export DAF_BUTLER_REPOSITORY_INDEX=/project/data-repos.yaml"
mode: "0644"
content: |
export DAF_BUTLER_REPOSITORY_INDEX=/project/data-repos.yaml
export PGPASSFILE=/rsphome/$USER/.lsst/postgres-credentials.txt
export PGUSER=oods
export AWS_SHARED_CREDENTIALS_FILE=/rsphome/$USER/.lsst/aws-credentials.ini
/data/lsstdata/base/comcam:
ensure: "link"
target: "/readonly/lsstdata/comcam/base/comcam"
/data/lsstdata/base/auxtel:
ensure: "link"
target: "/readonly/lsstdata/auxtel/base/auxtel"

htcondor::htcondor_version: "23.0"
23 changes: 21 additions & 2 deletions spec/hosts/roles/htcondor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@
it do
is_expected.to contain_file('/etc/profile.d/rubin.sh').with(
ensure: 'file',
mode: '0600',
content: 'export DAF_BUTLER_REPOSITORY_INDEX=/project/data-repos.yaml',
mode: '0644',
content: <<~CONTENT

Check failure on line 45 in spec/hosts/roles/htcondor_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

Style/TrailingCommaInArguments: Put a comma after the last parameter of a multiline method call. (https://rubystyle.guide#no-trailing-params-comma)
export DAF_BUTLER_REPOSITORY_INDEX=/project/data-repos.yaml
export PGPASSFILE=/rsphome/$USER/.lsst/postgres-credentials.txt
export PGUSER=oods
export AWS_SHARED_CREDENTIALS_FILE=/rsphome/$USER/.lsst/aws-credentials.ini
CONTENT

Check failure on line 50 in spec/hosts/roles/htcondor_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

Layout/ClosingHeredocIndentation: `CONTENT` is not aligned with `content: <<~CONTENT`.
)
end

Expand Down Expand Up @@ -174,6 +179,20 @@
atboot: true,
)
end

it do
is_expected.to contain_file('/data/lsstdata/base/comcam').with(
ensure: 'link',
target: '/readonly/lsstdata/comcam/base/comcam',
)
end

it do
is_expected.to contain_file('/data/lsstdata/base/auxtel').with(
ensure: 'link',
target: '/readonly/lsstdata/auxtel/base/auxtel',
)
end
end
end
end # host
Expand Down

0 comments on commit 7bdf4ef

Please sign in to comment.