This message was deleted.
# bolt
s
This message was deleted.
v
Somehow this fact is null…
y
It seems facter is unable to determine the OS or you’re running the puppet 8 where legacy facts are disabled by default
Try to replace with something under $facts[‘os’]
v
But from my local machine, where I use the same docker image, I have no errors 😅
That is build in manifest of Bolt, I can’t change it
y
Cannot say exactly from my smartphone :)
Wow
Which underlying image is it btw?
v
Copy code
docker run --entrypoint "" --mount type=bind,source=/…./ministration,destination=/Boltdir puppet/puppet-bolt bolt apply /Boltdir/manifests/site.pp -t all --private-key "/Boltdir/id_rsa" --log-level debug
Copy code
puppet/puppet-bolt:3.27.1
Latest avaliable
Same in gitlab
y
Hm.. somehow I was not aware of this image :) never tried it. I’ll recheck a bit later. Maybe we should raise a ticket
v
Image works correctly from my machine 😂
y
Try to pin the image tag in gitlab just in case it has different version cached
Ah, it’s pinned already as I see
v
Copy code
Using docker image sha256:32e9a922eb695840176fbbe3336f8454459f4a53644f0c9d478a9a285c1c01f7 for puppet/puppet-bolt:3.27.1 with digest puppet/puppet-bolt@sha256:ef2568c819280d7b7704b4d01162d30d79d943cf0cdc0905aa7f3646a8fa209d ...
Yep
Just to be sure)
y
I’d try with
/opt/puppetlabs/bolt/bin/puppet facts osfamily
as a CMD
just to see if osfamily fact exists
cannot check it on my macbook m1.. somehow multi-arch via qemu doesn’t work for me now.. will have a look later maybe
v
Downgrading puppet agent to 7.25.0 fixed the problem
Crazy…
y
what was the agent version before?
8.x?
v
8.1.0
y
yeah, legacy facts are disabled in 8.x
v
But running bolt from my machine on the same bolt version was not worked
Wtf
y
so no
$osfamily
and other top-level facts
v
But it was if running from my instance)
y
which puppet agent version do you have on your machine?
well.. on the target
v
Neither, it was run from docker image
In both cases
y
but what is the target? docker image?
-t localhost?
v
macos physical mashine
same one
y
hm.. that’s strange
v
Yep…
y
but anyway, this puppet_agent module should be updated in next bolt release to be compatible with puppet 8.x
1
Copy code
class puppet_agent::prepare (
  $package_version = undef
) {
  include puppet_agent::params
  $_windows_client = downcase($facts['os']['family']) == 'windows'
it is fixed already in the module
v
Ah, but not deployed I think
y
yes, it isn’t released in any Bolt version so far.. it uses older version
1