-
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.
(chango) add network config and role
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 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
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" |
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,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 GitHub Actions / rake_checks
|
||
|
||
it do | ||
Check failure on line 24 in spec/hosts/nodes/chango01.ls.lsst.org_spec.rb GitHub Actions / rake_checks
|
||
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 GitHub Actions / rake_checks
|
||
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 GitHub Actions / rake_checks
|
||
end # on os | ||
end # on_supported_os | ||
end |