Comments (7)
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.
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.
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.
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.
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.
Working with bolt 3.29.0.
from bolt.
Yeah, the updated puppet_agent package was included in latest bolt release.
from bolt.
Related Issues (20)
- apply HOT 1
- unable to use _catch_errors for apply_prep function in puppet plan HOT 3
- Analytics collection is not feasible with some plan functions HOT 1
- Add a way to mock a Puppet/Bolt function while testing a plan with BoltSpec HOT 2
- Puppetdb Client *ALWAYS* uses token header even when cert/key is configured HOT 4
- BoltSpec's `expect_plan()` doesn't match `_catch_error` parameter HOT 3
- Add a way to selectively disable `run_command` & co output to `stdout` on `bolt plan`
- Bolt installed from package on linux fails to install modules from git HOT 3
- File transfer to targets does not cater for line ending differences between Windows and Linux HOT 2
- Local transport defaults are not applied when using apply_prep
- Core types/providers are not synced when using bundled-ruby for apply
- Step in plan silently not running when using list of targets HOT 10
- Expose plan/task ID via Bolt API HOT 2
- Bolt Powershell Improvements HOT 1
- "bolt_builtin_content" error when using PCP transport in Bolt v3.30.0 HOT 1
- Publish Gemfile.lock HOT 2
- Suggest `noexec` may be an issue if the task is not executable for local transport HOT 1
- `download_file()` improvements HOT 3
- run_command: support array of commands
- Reading binary file using file::read in bolt plan, causes apply blocks to fail. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt.