Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find command 'icinga2' on SLES-11 #374

Closed
hboetes opened this issue Sep 8, 2017 · 2 comments
Closed

Error: Could not find command 'icinga2' on SLES-11 #374

hboetes opened this issue Sep 8, 2017 · 2 comments
Labels

Comments

@hboetes
Copy link

hboetes commented Sep 8, 2017

While installing icinga2 on sles-11 I ran into

Error: Could not find command 'icinga2'
Error: /Stage[main]/Icinga2::Feature::Api/Exec[icinga2 pki create key]/returns: change from notrun to 0 failed: Could not find command 'icinga2'
Notice: /Stage[main]/Icinga2::Feature::Api/Exec[icinga2 pki get trusted-cert]: Dependency Exec[icinga2 pki create key] has failures: true

After this rather blunt change the installation went on again:

diff --git a/manifests/params.pp b/manifests/params.pp
index 6c6192a..e1e91ce 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -84,7 +84,7 @@ class icinga2::params {

     'linux': {
       $icinga2_bin          = 'icinga2'
-      $bin_dir              = '/sbin'
+      $bin_dir              = '/usr/sbin'
       $conf_dir             = '/etc/icinga2'
       $log_dir              = '/var/log/icinga2'
       $run_dir              = '/var/run/icinga2'

So I'm not proposing it as a fix, merely a suggestion on what the cause is.

@baurmatt
Copy link
Contributor

baurmatt commented Sep 8, 2017

#372 should fix this.

@hboetes
Copy link
Author

hboetes commented Sep 8, 2017

That looks like the fix indeed.

@hboetes hboetes closed this as completed Sep 8, 2017
@bobapple bobapple added the bug label Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants