-
Notifications
You must be signed in to change notification settings - Fork 2
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 #464 from lsst-it/ccs-tu-tts
CCS changes for Tucson test-stand
- Loading branch information
Showing
8 changed files
with
114 additions
and
6 deletions.
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
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--- | ||
classes: | ||
- "profile::ccs::common" | ||
- "profile::ccs::daq4" | ||
- "profile::ccs::daq_client" | ||
- "profile::ccs::daq_interface" | ||
- "profile::ccs::graphical" | ||
- "profile::core::common" | ||
- "profile::core::nfsclient" | ||
- "profile::core::nfsserver" | ||
|
||
profile::ccs::facts::daq: true | ||
|
||
profile::ccs::daq_client::version: "R5-V0.6" |
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,10 @@ | ||
--- | ||
ccs_site: "tucson" | ||
|
||
## FIXME this should be "comcam-mcm-dds", same as real comcam. | ||
ccs_sal::dds_interface: "140.252.147.52" | ||
|
||
ccs_monit::alert: | ||
## tucson-teststand-alerts | ||
- "tucson-teststand-aler-aaaae4zsdubhmm3n7mowaugr2y@lsstc.slack.com" | ||
ccs_monit::hwraid: false |
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,77 @@ | ||
## @summary | ||
## Installation of DAQ client: | ||
## Download DAQ tarfile, extract it, create /etc/ccs config files. | ||
|
||
class profile::ccs::daq_client ( | ||
String $prefix = '/opt/lsst/daq', | ||
String $repo = 'https://repo-nexus.lsst.org/nexus/repository/daq/daq-sdk', | ||
String $version = 'R5-V0.6', | ||
String $owner = 'ccsadm', | ||
String $group = 'ccsadm', | ||
String $config_dir = '/etc/ccs', | ||
String $instrument = 'comcam', | ||
) { | ||
ensure_packages(['tar', 'gzip']) | ||
|
||
ensure_resources('file', { | ||
$prefix => { | ||
ensure => directory, | ||
mode => '0775', | ||
owner => $owner, | ||
group => $group, | ||
}, | ||
}) | ||
|
||
$tarfile = "${version}.tgz" | ||
|
||
$daq_home = "${prefix}/${version}" | ||
|
||
## todo: tarfile is owned by root:root. | ||
archive { "${prefix}/${tarfile}": | ||
ensure => present, | ||
source => "${repo}/${tarfile}", | ||
extract => true, | ||
extract_path => $prefix, | ||
cleanup => false, | ||
creates => $daq_home, | ||
user => $owner, | ||
group => $group, | ||
} | ||
|
||
## Point the "current" symlink to this version. | ||
file { "${prefix}/current": | ||
ensure => link, | ||
target => $version, | ||
owner => $owner, | ||
group => $group, | ||
} | ||
|
||
if $version =~ /R(\d+)/ { | ||
$daq_version = $1 | ||
|
||
$daq_setup = "${config_dir}/daqv${daq_version}-setup" | ||
|
||
file { $daq_setup: | ||
ensure => file, | ||
content => epp("${module_name}/ccs/daq_client/daqvX-setup.epp", { 'home' => $daq_home }), | ||
owner => $owner, | ||
group => $group, | ||
mode => '0644', | ||
} | ||
|
||
## TODO Is it -ih for v4 and -fp for v5? | ||
$appfiles = ['store.app', "${instrument}-ih.app", "${instrument}-fp.app"] | ||
|
||
$appfiles.each | $appfile | { | ||
file { "${config_dir}/${appfile}": | ||
ensure => file, | ||
content => epp("${module_name}/ccs/daq_client/daq.app.epp", { 'setup_file' => "${basename($daq_setup)}" }), | ||
owner => $owner, | ||
group => $group, | ||
mode => '0644', | ||
} | ||
} | ||
} else { | ||
fail("Could not figure out DAQ version from ${version}") | ||
} | ||
} |
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,2 @@ | ||
<%- | String $setup_file | -%> | ||
system.pre-execute=<%= $setup_file %> |
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,4 @@ | ||
<%- | String $home | -%> | ||
# This file is managed by Puppet; changes may be overwritten | ||
export DAQ_HOME=<%= $home %> | ||
export LD_LIBRARY_PATH=$DAQ_HOME/x86/lib:$LD_LIBRARY_PATH |