Skip to content

Commit

Permalink
(chango) add network config and role
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Oct 11, 2023
1 parent 06060fd commit e1edb97
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hieradata/cluster/chango.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
clustershell::groupmembers:
chango: {group: "chango", member: "chango[01-03]"}
profile::core::rke::version: "1.4.6-rc4"
44 changes: 44 additions & 0 deletions spec/hosts/nodes/chango01.ls.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'chango01.ls.lsst.org', :sitepp do
alma9 = FacterDB.get_facts({ operatingsystem: 'AlmaLinux', operatingsystemmajrelease: '9' }).first
# rubocop:disable Naming/VariableNumber
{ 'almalinux-9-x86_64': alma9 }.each do |os, facts|
# rubocop:enable Naming/VariableNumber
context "on #{os}" do
let(:facts) { override_facts(facts, fqdn: 'chango01.ls.lsst.org') }
let(:node_params) do
{
role: 'rke',
site: 'ls',
cluster: 'chango',
}
end

include_context 'with nm interface'

it { is_expected.to compile.with_all_deps }

Check failure on line 22 in spec/hosts/nodes/chango01.ls.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

chango01.ls.lsst.org on almalinux-9-x86_64 is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Error while evaluating a Function Call, Unknown checksum for rke version: 1.4.6-rc4 (file: /home/runner/work/lsst-control/lsst-control/site/profile/manifests/core/rke.pp, line: 53, column: 5) on node chango01.ls.lsst.org

it do

Check failure on line 24 in spec/hosts/nodes/chango01.ls.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

chango01.ls.lsst.org on almalinux-9-x86_64 is expected to contain Class[clustershell] with groupmembers => {"chango"=>{"group"=>"chango", "member"=>"chango[01-03]"}} Failure/Error: is_expected.to contain_class('clustershell').with( groupmembers: { 'chango' => { 'group' => 'chango', 'member' => 'chango[01-03]', }, }, ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, Unknown checksum for rke version: 1.4.6-rc4 (file: /home/runner/work/lsst-control/lsst-control/site/profile/manifests/core/rke.pp, line: 53, column: 5) on node chango01.ls.lsst.org
is_expected.to contain_class('clustershell').with(
groupmembers: {
'chango' => {
'group' => 'chango',
'member' => 'chango[01-03]',
},
},
)
end

it do

Check failure on line 35 in spec/hosts/nodes/chango01.ls.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

chango01.ls.lsst.org on almalinux-9-x86_64 is expected to contain Class[profile::core::rke] with version => "1.4.6-rc4" Failure/Error: is_expected.to contain_class('profile::core::rke').with( version: '1.4.6-rc4', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, Unknown checksum for rke version: 1.4.6-rc4 (file: /home/runner/work/lsst-control/lsst-control/site/profile/manifests/core/rke.pp, line: 53, column: 5) on node chango01.ls.lsst.org
is_expected.to contain_class('profile::core::rke').with(
version: '1.4.6-rc4',
)
end

it { is_expected.to have_nm__connection_resource_count(0) }

Check failure on line 41 in spec/hosts/nodes/chango01.ls.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

chango01.ls.lsst.org on almalinux-9-x86_64 is expected to contain exactly 0 Nm::Connection resources Failure/Error: it { is_expected.to have_nm__connection_resource_count(0) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, Unknown checksum for rke version: 1.4.6-rc4 (file: /home/runner/work/lsst-control/lsst-control/site/profile/manifests/core/rke.pp, line: 53, column: 5) on node chango01.ls.lsst.org
end # on os
end # on_supported_os
end

0 comments on commit e1edb97

Please sign in to comment.