diff --git a/manifests/install.pp b/manifests/install.pp index 493061ee..6d3353ae 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -121,18 +121,16 @@ } if ($consul::bash_completion) and ($consul::install_method != 'docker' ) { + file { $consul::bash_completion_compat_dir: + ensure => 'directory', + } - file { $consul::bash_completion_compat_dir: - ensure => 'directory', - } - - file { "${consul::bash_completion_compat_dir}/consul": - ensure => file, - owner => 'root', - group => 'root', - mode => '0644', - content => "complete -C ${consul::bin_dir}/${consul::binary_name} consul\n" - } + file { "${consul::bash_completion_compat_dir}/consul": + ensure => file, + owner => 'root', + group => 'root', + mode => '0644', + content => "complete -C ${consul::bin_dir}/${consul::binary_name} consul\n", + } } - }