Issue
So I have two AWS instances: a Puppet master and a Puppet client. When I run sudo puppet agent --test
on my client, the tasks defined in my master's manifest didn't apply to the client instance.
Where I am right now
/etc/puppet/manifests/site.pp
server=dns_of_master
lineDetails
Here's the content on my master's /etc/puppet/manifests/site.pp
:
node default {
package { 'nginx':
ensure => installed
}
service { 'nginx':
ensure => running,
require => Package['nginx']
}
file { '/tmp/hello_world':
ensure => present,
content => 'Hello, World!'
}
}
The file has a permission of 777.
Here's the ouput when I run sudo puppet agent --test
. This is after I ran sudo puppet agent --enable
:
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for my_client_dns
Info: Applying configuration version '1578968015'
Notice: Applied catalog in 0.02 seconds
I have looked at other StackOverflow posts with this issue. I know that my catalog is not getting applied due to the lack of status messages and the quick time. Unfortunately, the solutions didn't apply to my case:
site.pp
is named correctly and in the correct file path /etc/puppet/manifests
puppet.conf
filesudo systemctl
but nothing happensSo I have fixed the issue. The guide that I was following required an older version of Ubuntu (16.4, rather than 18.4 as I'm using). This needs a different AMI than the one that I used to create the instances.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.