Hi, i'm new to puppet and just testing; I have a simple module I created that creates a motd file. When I use puppet apply -e 'include ::motd' the class is applied. But when the PE server tries to run it on the agent I always get this error. The same for when I run puppet agent -t.
I feel like this is a simple issue but I can't figure it out. Any help would be appreciated. Thank you in advance.
## Here is my environment ##
the environment is
production
/etc/puppetlabs/code/environments
the modules inatalled are
/etc/puppetlabs/code/environments/production/modules
├── puppetlabs-stdlib (v4.13.1)
└── serdelivery-motd (v0.1.0)
/etc/puppetlabs/code/modules
├── Delivery-jboss (v0.1.0)
├── ntp (???)
└── puppetlabs-stdlib (v4.14.0)
/opt/puppetlabs/puppet/modules (no modules installed)
the version of puppet is
4.8.0
## Here is what's included in the init.pp file located in /etc/puppetlabs/code/environments/development/modules/motd/manifests ##
class motd {
file { '/etc/motd':
ensure => 'file',
content => file('motd/message'),
}
}
↧