Skip to content

Commit

Permalink
Merge pull request #994 from lsst-it/IT-4906/allsky-cam-gphoto2
Browse files Browse the repository at this point in the history
(role/allsky-cam) install libgphoto2 package
  • Loading branch information
jhoblitt authored Nov 17, 2023
2 parents 030ce10 + a325cba commit 98a3208
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hieradata/role/allsky-cam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
classes:
- "profile::core::common"
- "profile::core::nfsclient"
packages:
- "libgphoto2"

files:
/dimm:
Expand Down
33 changes: 33 additions & 0 deletions spec/hosts/roles/allsky_cam_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# frozen_string_literal: true

require 'spec_helper'

role = 'allsky-cam'

describe "#{role} role" do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }
let(:node_params) do
{
role: role,
site: site,
}
end

lsst_sites.each do |site|
fqdn = "#{role}.#{site}.lsst.org"
override_facts(os_facts, fqdn: fqdn, networking: { fqdn => fqdn })

describe fqdn, :sitepp do
let(:site) { site }

it { is_expected.to compile.with_all_deps }

include_examples 'common', os_facts: os_facts
it { is_expected.to contain_package('libgphoto2') }
end # host
end # lsst_sites
end # on os
end # on_supported_os
end # role

0 comments on commit 98a3208

Please sign in to comment.