You must put the puppet environment code on the Linux Puppet server.
/etc/puppetlabs/code/environments/production/manifests/*.pp

Windows systems can only act as Puppet agent.

hth,
Martin


> On 7. Dec 2024, at 21:48, Mijarena “Mijarena” P. <[email protected]> wrote:
> 
> Hello there.
> 
> I do have strange Problem, at least for me and I do not find a solution.
> It seems, that all is running well.
> 
> I do have almalinux 9 as server
> 
> [root@s01 manifests]# rpm -qa | grep puppet
> puppet8-release-1.0.0-9.el9.noarch
> puppet-agent-8.10.0-1.el9.x86_64
> puppetserver-8.7.0-1.el9.noarch
> [root@s01 manifests]#
> 
> On Windows I do have
> PS C:\ProgramData\PuppetLabs\code\environments\production\manifests> puppet 
> --version
> 8.10.0
> 
> PS C:\ProgramData\PuppetLabs\puppet\etc> puppet resource service puppet
> service { 'puppet':
>   ensure       => 'running',
>   enable       => 'true',
>   logonaccount => 'LocalSystem',
>   provider     => 'windows',
> }
> 
> 
> This is the log on the server
> [root@s01 manifests]# journalctl 2>&1 | tail -n 50 | grep puppet 
> Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Requesting 
> catalog from s01.randondomain.bayern:8140 (192.168.0.107)
> Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Catalog compiled 
> by s01.randondomain.bayern
> Dez 07 21:24:46 s01.randondomain.bayern puppet-agent[16868]: Applied catalog 
> in 0.01 seconds
> 
> I did this
> PS C:\ProgramData\PuppetLabs\puppet\var> sc stop puppet && sc start puppet 
> --debug --trace
> but there re no Errors in the eventlog:
> ------------------ eventlog ------------------------
> - System
> - Provider
> [ Name] Puppet
> - EventID 1
> [ Qualifiers] 0
> Version 0 Level 4 Task 0 Opcode 0 Keywords 0x80000000000000 - TimeCreated
> [ SystemTime] 2024-12-07T19:11:01.4894555Z
> EventRecordID 4274 Correlation - Execution
> [ ProcessID] 38580 [ ThreadID] 0
> Channel Application Computer jancis Security
> - EventData
> Executing agent with arguments: - -
> --------------------- /eventlog ------------------------
> 
> This are the manifest files
> [root@s01 manifests]# cat *pp 
> node default {
>   notify { 'this node did not match any of the listed definitions': }
> }
> node 'jancis.randomdomain.bayern' {
>   file { 'C:/tmp/jancis.txt':
>     ensure  => 'present',
>     content => 'This file is created by Puppet for the client jancis.',
>   }
> }
> node 'ronald' {
>   file { 'C:/tmp/ronald.txt':
>     ensure  => 'present',
>     content => 'This file is created by Puppet for the client ronald.',
>   }
> }
> node 's01.randomdomain.bayern' {
>   file { '/tmp/s01.txt':
>     ensure  => 'present',
>     content => 'This file is created by Puppet for the client s01.',
>   }
> }[root@s01 manifests]#
> 
> 
> ronald is just a fake, because I wanted to test that this is not executed on 
> Windows. I deleted that for another test but no different outcome
> jancis should be executet, I tested it with jancis ony and with its fqdn
> s01 is the server just to test functionality... and it is working
> 
> Linux/s01
> [root@s01 manifests]# ls /tmp/s01.txt
> /tmp/s01.txt
> 
> Windows/jancis
> PS C:\ProgramData\PuppetLabs\code\environments\production\manifests> ls c:/tmp
> PS C:\ProgramData\PuppetLabs\code\environments\production\manifests>
> 
> 
> Well, it just is not happening!
> 
> I do not know where to look and what to do. No errors, puppetserver ca list 
> --all lists all my certificates.
> All is working nicely, except, that on the Windows client nothing is 
> happening.
> 
> Any ideas?
> Thanks for reading.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/puppet-users/0290a305-656e-45c5-b48c-8f5a718e56f0n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/puppet-users/6ADD75FD-5BF6-4F80-969A-59AB428128CF%40gmail.com.

Reply via email to