I failed this task, but I’d like to know if it is because I missed a step or because it is buggy.
I needed to revoke the certificates from the Jump_host (Puppet Master) so the App Servers running the Puppet Agent could connect to it. After doing this, the App Servers could successfully connect using ‘puppet agent -t’ with the Puppet Master. No further complains about this point but I’m not sure if this step is really intended to be performed as part of the task.
Behavior seen in the 3 App Servers.
The Manifest in the Puppet master looks like below, but I kept getting the following error messages on the App servers when running ‘puppet agent -t’.
Error: Could not prefetch package provider ‘yum’: The yum provider can only be used as root Error: Failed to apply catalog: The yum provider can only be used as root
I tried running ‘puppet agent -t’ as root on the App Servers but a bunch of error messages flooded the screen so it wasn’t even possible to connect with the Puppet Master. Also, I do not think it is intended to run the Agent as ‘root’.
Thanks but I don’t think that was the case. Commands on Jump_host (Puppet Master) were running all in ‘root’. I did try on App Servers (Puppet Agents) running the commands with ‘sudo’ and/or moving to ‘root’ user but it gave me the same bunch of error messages on both cases. I didn’t capture that screenshot though.
Thank you. I first found the “native” ntp class that is available for Puppet. However, I didn’t use it because tasks’ instructions explicitly say “define a custom class ntpconfig”. Therefore, I went that route.
Shouldn’t the instructions change so we can confidently use the Puppet’s “native” ntp class to perform this task?
One more reason I think this task is a bit buggy is because the Task Status - Failed log package httpd as seen in the screenshot. Is the validation script really looking for the httpd service on the App Servers? If so, it must be fixed.
Although, I must agree that because “Error: Could not prefetch package provider ‘yum’: The yum provider can only be used as root” the ntp configs were not in the App Servers at the moment I submitted the task. Perhaps, this ‘yum’ error message wouldn’t have appeared by using Puppet’s ‘native’ ntp class but again, instructions were explicit here.
One more thing to clarify, please don’t mind if its a basic question… how to define custom class ntpconfig using ntp module? I checked the links that @Goldenor shared but its everywhere class ntp but the question says to use class ntpconfig. What does that mean?
Is it okay. We are learning so no words of ‘dont’ mind’ comes in b/w. Btw what kind of links you are talking about? I haven’t share yet i guess? or point me out where i have shared?