-
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 #652 from lsst-it/IHS-6295/tel-lt1
allow ssh between saluser@tel-lt1.tu and saluser@tel-hw1.tu
- Loading branch information
Showing
17 changed files
with
206 additions
and
32 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 |
---|---|---|
|
@@ -126,3 +126,5 @@ RSpec/ImplicitSubject: | |
Enabled: false | ||
Style/CommentedKeyword: | ||
Enabled: false | ||
Naming/FileName: | ||
Enabled: 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
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,7 @@ | ||
--- | ||
profile::core::common::manage_resolv_conf: false | ||
profile::core::k5login::k5login: | ||
"/home/saluser/.k5login": | ||
ensure: "present" | ||
principals: | ||
- "saluser/tel-hw1.tu.lsst.org@LSST.CLOUD" |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# @summary | ||
# Generates profile::util::keytab resources | ||
# | ||
# @param keytab | ||
# Hash of keytab resources to create | ||
# | ||
class profile::core::keytab ( | ||
Optional[Hash[String[1], Hash[String[1], NotUndef]]] $keytab = undef, | ||
) { | ||
if $keytab { | ||
$keytab.each | String $name, Hash $conf | { | ||
profile::util::keytab { $name: | ||
* => $conf, | ||
} | ||
} | ||
} | ||
} |
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
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,40 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'profile::core::keytab' do | ||
on_supported_os.each do |os, facts| | ||
context "on #{os}" do | ||
let(:facts) do | ||
facts | ||
end | ||
|
||
context 'with no parameters' do | ||
it { is_expected.to compile.with_all_deps } | ||
it { is_expected.to have_profile__util__keytab_resource_count(0) } | ||
end | ||
|
||
context 'with keytab param' do | ||
let(:params) do | ||
{ | ||
keytab: { | ||
foo: { | ||
uid: 1234, | ||
keytab_base64: sensitive('Zm9v'), | ||
}, | ||
}, | ||
} | ||
end | ||
|
||
it { is_expected.to have_profile__util__keytab_resource_count(1) } | ||
|
||
it do | ||
is_expected.to contain_profile__util__keytab('foo').with( | ||
uid: 1234, | ||
keytab_base64: sensitive('Zm9v'), | ||
) | ||
end | ||
end | ||
end | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'tel-hw1.tu.lsst.org', :site do | ||
on_supported_os.each do |os, facts| | ||
context "on #{os}" do | ||
let(:facts) do | ||
facts.merge( | ||
fqdn: 'tel-hw1.tu.lsst.org', | ||
) | ||
end | ||
|
||
let(:node_params) do | ||
{ | ||
role: 'generic', | ||
site: 'tu', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
|
||
it do | ||
is_expected.to contain_k5login('/home/saluser/.k5login').with( | ||
ensure: 'present', | ||
principals: ['saluser/tel-lt1.tu.lsst.org@LSST.CLOUD'], | ||
) | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end # role |
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,32 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'tel-lt1.tu.lsst.org', :site do | ||
on_supported_os.each do |os, facts| | ||
context "on #{os}" do | ||
let(:facts) do | ||
facts.merge( | ||
fqdn: 'tel-lt1.tu.lsst.org', | ||
) | ||
end | ||
|
||
let(:node_params) do | ||
{ | ||
role: 'generic', | ||
site: 'tu', | ||
} | ||
end | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
it { is_expected.not_to contain_class('resolv_conf') } | ||
|
||
it do | ||
is_expected.to contain_k5login('/home/saluser/.k5login').with( | ||
ensure: 'present', | ||
principals: ['saluser/tel-hw1.tu.lsst.org@LSST.CLOUD'], | ||
) | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end # role |