Git Product home page Git Product logo

Comments (7)

FredPraca avatar FredPraca commented on September 21, 2024

The file custom_facts.rb uses #! /opt/puppetlabs/puppet/bin/ruby as shebang which does not exist on the target.
Changing the shebang to #! /usr/bin/ruby on the Bolt machine makes the script work.

from bolt.

FredPraca avatar FredPraca commented on September 21, 2024

The problem seems to be in fact that Puppet is not currently officially ported to Debian 12 Bookworm as there is no puppet-release-bookworm.deb on apt.puppet.com.
So installing Puppet from Bolt requires to configure the plugin-hooks to use the task plugin with the package task. It installs Ruby as /usr/bin/ruby so the expected ruby path in the custom_facts.rb does not exist.

from bolt.

donoghuc avatar donoghuc commented on September 21, 2024

Did you try upgrading the puppet_agent package to >= 4.17.0 ? puppetlabs/puppetlabs-puppet_agent@43fbd93 Bolt ships with an older one, but if you install a newer one into your project that should be used.

from bolt.

FredPraca avatar FredPraca commented on September 21, 2024

I'm not sure what I have to do but I added puppetlabs-puppet_agent to my PuppetFile and ran bolt module install --no-resolve.
The problem remains so I maybe done it the wrong way.

from bolt.

ibuclaw avatar ibuclaw commented on September 21, 2024

Still not fixed in bolt 3.28. Plan still fails as there's a hardcoded download url. Missing case for bookworm results in /modules/puppet_agent/tasks/install_shell.sh attempting to download https://apt.puppet.com/puppet-release-.deb

Adding the missing case to the script (here), then the missing package file at https://apt.puppet.com/puppet-release-bookworm.deb can be worked around by adding the following to inventory.yaml

plugin_hooks:
    puppet_library:
        plugin: task
        task: puppet_agent::install
        parameters:
            collection: puppet7  # or puppet8

from bolt.

h0tw1r3 avatar h0tw1r3 commented on September 21, 2024

Working with bolt 3.29.0.

from bolt.

donoghuc avatar donoghuc commented on September 21, 2024

Yeah, the updated puppet_agent package was included in latest bolt release.

from bolt.

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.