Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 5.3.1, PUP 5.5.1
-
None
-
Network Automation
-
Customer Feedback
-
Reviewed
-
Bug Fix
-
-
Needs Assessment
Description
The puppet device command fails with when environment is not 'production' and environment is specified locally in either puppet.conf or via the --environment option ...
[root@pe-201810-agent ~]# puppet device --verbose --environment=development
|
Error: Could not run: undefined method `loaders' for nil:NilClass
|
It succeeds if environment is server-specified ...
[root@pe-201810-agent ~]# puppet device --verbose #--environment=development
|
Info: starting applying configuration to cisco.example.com at file:///etc/puppetlabs/puppet/devices/cisco.example.com.yaml
|
Notice: Local environment: 'production' doesn't match server specified node environment 'development', switching agent to 'development'.
|
Info: Retrieving pluginfacts
|
Info: Retrieving plugin
|
Info: Retrieving locales
|
Info: Caching catalog for cisco.example.com
|
Info: Applying configuration version '1526925344'
|
Notice: Applied catalog in 0.12 seconds
|
Note that even when the agent is not in production, only the production directory is created locally:
[root@pe-201810-agent ~]# ls -al /etc/puppetlabs/code/environments/
|
total 0
|
drwxr-xr-x 3 root root 23 May 21 17:28 .
|
drwxr-xr-x 4 root root 39 May 21 17:12 ..
|
drwxr-x--- 5 root root 87 May 21 17:29 production
|
Attachments
Issue Links
- causes
-
PUP-9584 Puppet Device plugin sync slow
-
- Closed
-
- relates to
-
PUP-7423 Make Pcore loaders available to relevant CLI apps
-
- Closed
-
-
PUP-9748 Puppet Device doesn't honor ENC-set Environment in 5.5.10 or later
-
- Closed
-
-
PUP-8732 Investigate if Puppet Device pluginsync can be limited to remote modules
-
- Closed
-
-
PUP-9356 `puppet device` does not load local plugins for --apply --facts and --resource
-
- Closed
-
1.
|
Fixup puppet device to correctly pluginsync and only put pluginsyncdest on the LOAD_PATH |
|
Closed | David Schmitt |
2.
|
fix --environment handling |
|
Closed | Unassigned |
3.
|
implement tests |
|
Resolved | Unassigned |