Files
zulip/puppet/zulip/manifests/apt_repository.pp
Alex Vandiver d15e6990e5 puppet: Only execute setup-apt-repo if necessary.
This means that in steady-state, `zulip-puppet-apply` is expected to
produce no changes or commands to execute.  The verification step of
`setup-apt-repo` is quite fast, so this cleans up the output for very
little cost.
2021-02-23 18:16:02 -08:00

8 lines
242 B
Puppet

class zulip::apt_repository {
$setup_apt_repo_file = "${::zulip_scripts_path}/lib/setup-apt-repo"
exec{'setup_apt_repo':
command => "bash -c '${setup_apt_repo_file}'",
unless => "bash -c '${setup_apt_repo_file} --verify'",
}
}