Quantcast
Viewing latest article 14
Browse Latest Browse All 75

Where is the proper place to put templates using roles and profiles practices?

I'm trying to create a template for use by the motd class in my base profile. I'm not quite sure where I should put it though. I'm also having trouble referencing the path from with the class. Here is my control data structure: /site/profile/manifests --> base.pp --> templates/ ----> motd.erb base.pp: class profile::base { class { 'motd': template => 'templates/motd.erb' } } But I get the following when trying to deploy it: > Could not find template> 'templates/motd.erb' at> /etc/puppetlabs/code/environments/wsaxton/modules/motd/manifests/init.pp:22:21> on node drmbksca.local

Viewing latest article 14
Browse Latest Browse All 75

Trending Articles