Sha256: d63ed026fe872a58cad9a5ba51c3edb1fa2beb1a0f17adf907cefc4c6d58332c
Contents?: true
Size: 736 Bytes
Versions: 6
Compression:
Stored size: 736 Bytes
Contents
target_test 'hostname is set' do |config| if config[:hostname].blank? && !config[:host].blank? next { severity: :warning, message: "config has a host (#{[:host]}) but is missing a hostname" } end end target_test 'hostnames in ssh config' do |config| next if config[:hostname].blank? unless ssh_hostnames.include? config[:hostname] {severity: :info, message: "config has a hostname (#{config[:hostname]}) which is not in your ssh config"} end end target_test 'required hostnames' do |config| types = %i(rsync rsync_with_version maria) if types.include?(config[:type]) && config[:hostname].blank? next {severity: :error, message: "config requires a hostname (#{config[:hostname]})"} end end
Version data entries
6 entries across 6 versions & 1 rubygems