Skip to content

Commit

Permalink
Merge pull request #961 from lsst-it/IT-4713/ipareplica
Browse files Browse the repository at this point in the history
(role/ipareplica) fix auto-fqdn /etc/hosts conflict with tailscale IP
  • Loading branch information
jhoblitt authored Oct 20, 2023
2 parents f5e88cd + 38ce6c3 commit 5c024fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hieradata/role/ipareplica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ tailscale::up_options:
accept-dns: false # leave /etc/resolv.conf alone
hostname: "%{facts.fqdn}" # use fqdn instead of short hostname

hosts::manage_fqdn: false # avoid conflict with tailscale address
hosts::entries:
ipa1.dev.lsst.org:
ip: "100.76.95.74"
Expand Down
2 changes: 2 additions & 0 deletions spec/hosts/roles/ipareplica_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
)
end

it { is_expected.to contain_class('hosts').with_manage_fqdn(false) }

{
'ipa1.dev.lsst.org': '100.76.95.74',
'ipa2.dev.lsst.org': '100.77.145.58',
Expand Down

0 comments on commit 5c024fa

Please sign in to comment.