This message was deleted.
# puppet
s
This message was deleted.
c
I've read the docs and am still having issues. My dir layout looks like this: So where exactly is the <MODULE> part that the docs refer to?
Copy code
├── data
│   ├── nodes
│   └── private
│       └── role
├── local_modules
│   ├── profile
│   │   ├── files
│   │   │   ├── strapi
│   │   │       └── ecosystem.config.js.epp
│   │   ├── lib
│   │   │   └── facter
│   │   └── manifests
│   │       ├── nodejs
│   │           └── main_file.pp
│   └── role
│       └── manifests
└── manifests
b
profile and role are your modules
c
so this should work then:
content => epp('profile/files/strapi/ecosystem.config.js.epp')
Still doesn't work.
Copy code
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not find template 'profile/files/strapi/ecosystem.config.js.epp' (file: /etc/puppetlabs/code/environments/prod/local_modules/profile/manifests/nodejs/strapi_install.pp, line: 35, column: 16) on node xxxxx
b
templates are placed into the templates dir, not files
c
I've got past that error now...so thanks @bastelfreak for the push in the right direction.