If you write your bash script in Ruby (maybe ask chatgpt to do it) and put it in your class in the folder lib/facter your next puppet run will automatically update the facts and it will be available.
Best you read this page; https://www.puppet.com/docs/puppet/6/custom_facts.html On Thursday, 3 August 2023 at 08:32:06 UTC+1 acia...@icloud.com wrote: > Hello All, > > maybe it's already has been discussed, I tried to search but I didn't find > the right thread. > I'm not expert in Puppet and made simple scripts. > > I'm using RHEL Satellite with Puppet 7 ENC (I know that RHEL want to move > out from puppet, but until i can integrate it I will use it, after I will > see). > > I need to crate a custom fact to see some information based on IP Address. > I created a Bash Script that give me an output of the location based on > CIDR, but I want use full automation and begin to launch specific class > based on fact. > > I don't know where I need to start, i read how create a fact but it still > confusing because I can't find the directory where put the script or how > deploy in all my clients. > > Someone can help me, maybe with step by step to understand it. > > Thank you in advance who want to help me. > All the best > Alex > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fd5bfe30-1177-470d-89d0-b8fc96affe3fn%40googlegroups.com.