From 1d612e6991b2db0fa5ede8f86deea6042e836bdf Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Wed, 18 Oct 2023 14:24:14 -0700 Subject: [PATCH] (profile::core::common) order ssh class after easy_ipa class As `ipa-client-install` makes changes to `/etc/ssh/ssh_config`. --- site/profile/manifests/core/common.pp | 2 ++ spec/spec_helper.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/site/profile/manifests/core/common.pp b/site/profile/manifests/core/common.pp index debc57da4a..c59babd1c3 100644 --- a/site/profile/manifests/core/common.pp +++ b/site/profile/manifests/core/common.pp @@ -85,6 +85,8 @@ include timezone include tuned + Class['easy_ipa'] -> Class['ssh'] + if fact('os.family') == 'RedHat' { include epel include profile::core::yum diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 02a6fe074c..43977ee0b1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -159,6 +159,8 @@ def node_files include_examples 'krb5.conf.d files', facts: facts include_examples 'sssd services' + it { is_expected.to contain_class('ssh').that_requires('Class[easy_ipa]') } + it do # XXX dev is using ls ipa servers next if site == 'dev'