GithubHelp home page GithubHelp logo

Comments (10)

mmoll avatar mmoll commented on September 4, 2024

Foreman is not supported with Puppet 4, yet, and even less with AIO packages. AIO packaging is bringing its own Ruby, making it impossible to load e.g. facter into the system Ruby we use, leading to the error seen.

from puppet-foreman.

ekohl avatar ekohl commented on September 4, 2024

Adding to that: we would like to have it supported though. I'd also expect that the puppet module would need fewer arguments and autodetect the AIO install.

from puppet-foreman.

mmoll avatar mmoll commented on September 4, 2024

kind of related: #367 - I still think leveraging the whole AIO/non-AIO/OS detection logic of theforeman-puppet should be used by having -foreman depend on -puppet would be the best way. 💥

from puppet-foreman.

madAndroid avatar madAndroid commented on September 4, 2024

Okay, thanks for the explanation - I had seen some movement in a few commits around puppet 4, but didn't realise there was still a way to go.

from puppet-foreman.

mmoll avatar mmoll commented on September 4, 2024

Yes, changes were made to get this Puppet module itself Puppet 4 compatible as-is, but there are still more changes to make until Foreman with all its subsystems will be compatible with Puppet 4 and AIO packages. BTW, all help would be welcome. :)

from puppet-foreman.

domcleal avatar domcleal commented on September 4, 2024

While I entirely agree that there are loads of systems that aren't compatible, the particular issue here looks like one we could address in the Debian packaging by switching to a vendored version of Facter.

The 'foreman' package has a dep on the 'facter' package and expects to load it from the regular shared Ruby paths under /usr etc. We could include bundler.d/facter.rb in the core package build so it's cached as a gem using Bundler instead of using the system package.

(Facter's only used as a dep in Foreman core for FQDN resolution etc.)

Edit: to be clear, other things - particularly the smart proxy - will still have issues, but this'll get us a bit further.

from puppet-foreman.

mmoll avatar mmoll commented on September 4, 2024

@domcleal true... I'll take the DEB part. :)

from puppet-foreman.

pchineye avatar pchineye commented on September 4, 2024

Team:

I am seeing similar ERROR on foreman 1.12 install on rhel 6 puppet 4:

/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: /usr/sbin/foreman-rake db:migrate returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Failed to call refresh: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]
/Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: /usr/sbin/foreman-rake db:seed returned 1 instead of one of [0]

/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[nydlx0380.us.net.intra]: Could not evaluate: Proxy lx00.example.com cannot be retrieved: unknown error (response 500)

[lx00 ~]$ puppet status
{
"is_alive": true,
"version": "4.5.3"
}
[lx00 ~]$ puppet --version

4.5.3

please assist

from puppet-foreman.

mmoll avatar mmoll commented on September 4, 2024

please open a new issue for his.

from puppet-foreman.

pchineye avatar pchineye commented on September 4, 2024

looks like I already did as....pchineye

from puppet-foreman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.