Open hopenbr opened 2 years ago
I assume you meant include
instead of incldue
?
Out of curiosity, what does facter osfamily
say on your system?
factory osfamily
windows
Are you able to change the code where you run puppet?
If so, can you remove the line in lib/facter/scoop.rb
, which says confine { basedir }
?
sorry for delay, yeah I did so and it failed in same way
further
...
Debug: Facter: fact "puppet_stringify_facts" has resolved to false.
Debug: Facter: fact "puppet_vardir" has resolved to "C:/ProgramData/PuppetLabs/puppet/cache".
Debug: Facter: fact "root_home" resolved to null and will not be added.
Error: Facter: error while resolving custom fact "scoop": The system cannot find the file specified.
Debug: Facter: fact "scoop" resolved to null and will not be added.
Debug: Puppet::Type::Service::ProviderBase: file kill does not exist
...
I see above logs when running puppet facts --debug
on host I am trying to configure
with or without the confine { basedir }
in lib/facter/scoop.rb
not sure what that means, what file?
A lot of this seems like a chicken and egg problem, the module expects things to be there yet they have yet to be installed by module and it fails.
plus I am no puppet expert
if I run
[environment]::SetEnvironmentVariable('scoop', 'c:\programdata\scoop', [System.EnvironmentVariableTarget]::Machine)
than run puppet facts, it works.
looking to see if I can add that env var before hand
Yes, I had a lot of trouble getting the environment to work. This will sound silly, but did you reboot after scoop installation?
Work around is in place I just set the environment var SCOOP
in the EC2 user_data in my Cloudformation template
Puppet is now installing scoop and the configured scoop packages
What am I doing wrong, it seems that on the initial run of puppet I get below error and continues until we get scoop installed
$facts['scoop'] is not available yet since it first run and we need scoop installed
my code looks like
error hits on line 20 which is
I have tried having
yet same error