I am trying to complete the task
Puppet Setup File Permissions and after having followed several tutorials online I keep arriving at the same roadblock when trying to run
puppet agent --test from the `Agent Node/App Server:
Error: The certificate for ‘CN=stapp03.stratos.xfusioncorp.com 1’ does not match its private key Error: Could not run: The certificate for ‘CN=stapp03.stratos.xfusioncorp.com 1’ does not match its private key
Here are the task instructions:
- The Nautilus DevOps team has put data on all app servers in Stratos DC. `jump host` is configured as `Puppet master server`, and `all app servers are already been configured as Puppet agent nodes`. The team needs to update content of some of the existing files as well as update its permissions, etc. Please find below more details about the task: - Create a Puppet programming file `games.pp` under `/etc/puppetlabs/code/environments/production/manifests` directory on `master node` i.e `Jump Server`. Using puppet `file resource`, perform the below mentioned tasks. - File `beta.txt` already exists under `/opt/security` directory on `App Server 3`. - Add content `Welcome to xFusionCorp Industries!` in file `beta.txt` on `App Server 3`. - Set permissions `0655` for file `beta.txt` on `App Server 3`. - Note: Please perform this task using `games.pp` only, `do not create any separate inventory file`.
When I ping both hosts from either server, the ping is successful:
ping jump_host.stratos.xfusioncorp.com ping stapp03.stratos.xfusioncorp.com
I’m at a loss as I am completely new to Puppet.
Does anyone have any idea as to what could be wrong? Most of the tutorials that I have come across online are out of date with deprecated commands.
Thanks in advance to anyone who can help:-)