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

Module doesn't install and bugs puppet. #34

Closed
BloodBlight opened this issue Sep 1, 2020 · 1 comment
Closed

Module doesn't install and bugs puppet. #34

BloodBlight opened this issue Sep 1, 2020 · 1 comment

Comments

@BloodBlight
Copy link

After running this:

exec { 'puppet_module_install':
  command => "puppet module install elastic/elastic_stack",
  unless  => "puppet module list | grep 'elastic/elastic_stack'",
  path    => ['/bin', '/usr/bin', '/opt/puppetlabs/bin']
}

class { 'elastic_stack::repo':
  prerelease => false,
}
include elastic_stack::repo

I get:

Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class elastic_stack::repo (file: /......../Packs/App_ElasticStack.pp, line: 9, column: 1) on node elastistack

I then run another pack (not at the same time, I am running them one at a time) and get this error:

Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::mtulio::ssh for elastistack (file: /......../Packs/Config_SSH-Server_AllowRoot.pp, line: 7, column: 1) on node elastistack

Note that this file (SSH-Server) makes no reference to elastistack:

exec { 'puppet_module_install':
  command => "puppet module install mtulio/ssh",
  unless  => "puppet module list | grep 'mtulio/ssh'",
  path    => ['/bin', '/usr/bin', '/opt/puppetlabs/bin']
}

include mtulio::ssh
class { '::ssh::sshd_config': 
  permitrootlogin   => 'yes'
}

The puppet module list command does NOT list the elastistack command as being installed...

Manually running puppet module install elastic/elastic_stack command installs the module, but does not resolve the issue with other packs.

Uninstalling it also does not resolve the issue.

Puppet is effectively killed on this box now. Ideas?

This was a clean install (with a few other puppet packs installed) just to build out the elastic stack process.

@BloodBlight
Copy link
Author

Ignore... "elastistack" is also the host name. DUH!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant