Skip to content

ManageIQ on RHEL8 | Puppet exec `find_spec_for_exe': can't find gem manageiq-appliance_console error #22457

Closed Answered by needle2k
needle2k asked this question in Q&A
Discussion options

You must be logged in to vote

Hey kbrock,

sourcing directly /etc/default/evm didn´t help on the "appliance_console_cli" part, i´ve added an additional 'environment' paramter to my puppet exec command with values taken from your hint about the manageiq*.properties files

$command.each |$i, $cmd| {
      exec {"db_create_${i}":
        command     => "appliance_console_cli ${cmd}",
        environment => ['BUNDLE_GEMFILE=/var/www/miq/vmdb/Gemfile','GEM_HOME=/opt/manageiq/manageiq-gemset','GEM_PATH=/opt/manageiq/manageiq-gemset:/usr/share/gems:/usr/local/share/gems','TERM=xterm'],
        path        => $::path,
        onlyif      => "test ! -f /root/db_created_${i}.sem",
        require     => Package['manageiq-gemset']…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by needle2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants