Environment specific module paths not functioning as expected

34 views
Skip to first unread message

Alexander Dacre

unread,
Jun 23, 2015, 6:26:21 AM6/23/15
to puppet...@googlegroups.com
Hi,

I have three directory based environments: development, test, production. Each environment is structured as follows:

[root@puppet environments]# tree -L 2 production
production
├── environment.conf
├── manifests
│   └── site.pp
├── modules
│   ├── apt
│   ├── concat
│   ├── nginx
│   ├── ntp
│   └── stdlib
└── nodes
    └── fqdn.yaml

I've tried setting modulepath configuration directive to ./modules:$basemodulepath and /etc/puppet/environments/production/modules, but Puppet config is not picking it up:

[root@puppet environments]# puppet config print modulepath --environment 'production'
/etc/puppet/modules:/usr/share/puppet/modules

Is there anything else I need to configure for this to work?

Thanks,
Alex

Alexander Dacre

unread,
Jun 23, 2015, 6:27:16 AM6/23/15
to puppet...@googlegroups.com

This is running on Puppet 3.8.1

Alexander Dacre

unread,
Jun 23, 2015, 6:55:26 AM6/23/15
to puppet...@googlegroups.com
Resolved it - missing a configuration item in /etc/puppet/puppet.conf.

Thanks!


On Tuesday, June 23, 2015 at 11:26:21 AM UTC+1, Alexander Dacre wrote:
Reply all
Reply to author
Forward
0 new messages