mirror of https://github.com/zulip/zulip.git
puppet: Switch from top-level fact variables to facts dict, again.
These were somehow missed in 57f8b48ff9
.
This commit is contained in:
parent
7072794871
commit
235e2eefc8
|
@ -18,7 +18,7 @@ class kandra::aws_tools {
|
|||
}
|
||||
|
||||
if ! $is_ec2 {
|
||||
if $::os['architecture'] != 'amd64' {
|
||||
if $facts['os']['architecture'] != 'amd64' {
|
||||
# We would need to build aws_signing_helper from source
|
||||
fail('Only amd64 hosts supported on non-EC2')
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class kandra::ksplice_uptrack {
|
|||
mode => '0644',
|
||||
content => template('kandra/uptrack/uptrack.conf.erb'),
|
||||
}
|
||||
$setup_apt_repo_file = "${::zulip_scripts_path}/lib/setup-apt-repo"
|
||||
$setup_apt_repo_file = "${facts['zulip_scripts_path']}/lib/setup-apt-repo"
|
||||
exec{ 'setup-apt-repo-ksplice':
|
||||
command => "${setup_apt_repo_file} --list ksplice",
|
||||
unless => "${setup_apt_repo_file} --list ksplice --verify",
|
||||
|
|
|
@ -50,7 +50,7 @@ class kandra::profile::base {
|
|||
mode => '0644',
|
||||
source => 'puppet:///modules/kandra/apt/apt.conf.d/50unattended-upgrades',
|
||||
}
|
||||
if $::os['distro']['release']['major'] == '22.04' {
|
||||
if $facts['os']['distro']['release']['major'] == '22.04' {
|
||||
file { '/etc/needrestart/conf.d/zulip.conf':
|
||||
ensure => file,
|
||||
mode => '0644',
|
||||
|
@ -83,7 +83,7 @@ class kandra::profile::base {
|
|||
file { '/etc/chrony/chrony.conf':
|
||||
ensure => file,
|
||||
mode => '0644',
|
||||
source => "puppet:///modules/kandra/chrony-${::os['distro']['release']['major']}.conf",
|
||||
source => "puppet:///modules/kandra/chrony-${facts['os']['distro']['release']['major']}.conf",
|
||||
require => Package['chrony'],
|
||||
notify => Service['chrony'],
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class kandra::teleport::base {
|
||||
include zulip::supervisor
|
||||
|
||||
$setup_apt_repo_file = "${::zulip_scripts_path}/lib/setup-apt-repo"
|
||||
$setup_apt_repo_file = "${facts['zulip_scripts_path']}/lib/setup-apt-repo"
|
||||
exec{ 'setup-apt-repo-teleport':
|
||||
command => "${setup_apt_repo_file} --list teleport",
|
||||
unless => "${setup_apt_repo_file} --list teleport --verify",
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
class kandra::teleport::db {
|
||||
include kandra::teleport::base
|
||||
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
$is_ec2 = zulipconf('machine', 'hosting_provider', 'ec2') == 'ec2'
|
||||
$join_token = zulipsecret('secrets', 'teleport_join_token', '')
|
||||
file { '/etc/teleport_db.yaml':
|
||||
|
|
|
@ -5,7 +5,7 @@ class kandra::vector {
|
|||
$dir = "/srv/zulip-vector-${version}"
|
||||
$bin = "${dir}/bin/vector"
|
||||
|
||||
$arch = $::os['architecture'] ? {
|
||||
$arch = $facts['os']['architecture'] ? {
|
||||
'amd64' => 'x86_64',
|
||||
'aarch64' => 'aarch64',
|
||||
}
|
||||
|
|
|
@ -5,11 +5,12 @@ define zulip::external_dep(
|
|||
String $sha256 = '',
|
||||
String $mode = '0755',
|
||||
) {
|
||||
$arch = $facts['os']['architecture']
|
||||
if $sha256 == '' {
|
||||
if $zulip::common::versions[$title]['sha256'] =~ Hash {
|
||||
$sha256_filled = $zulip::common::versions[$title]['sha256'][$::os['architecture']]
|
||||
$sha256_filled = $zulip::common::versions[$title]['sha256'][$arch]
|
||||
if $sha256_filled == undef {
|
||||
err("No sha256 found for ${title} for architecture ${facts['os']['architecture']}")
|
||||
err("No sha256 found for ${title} for architecture ${arch}")
|
||||
fail()
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -2,7 +2,7 @@ class zulip::postfix_localmail {
|
|||
include zulip::snakeoil
|
||||
$postfix_packages = [ 'postfix', ]
|
||||
|
||||
$fqdn = $::networking['fqdn']
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
if $fqdn == '' {
|
||||
fail('Your system does not have a fully-qualified domain name defined. See hostname(1).')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue