Jira (PUP-5196) puppet module tool validates the wrong directory when used w/ --environment

2 views
Skip to first unread message

Ben Ford (JIRA)

unread,
Sep 3, 2015, 1:22:03 PM9/3/15
to puppe...@googlegroups.com
Ben Ford created an issue
 
Puppet / Bug PUP-5196
puppet module tool validates the wrong directory when used w/ --environment
Issue Type: Bug Bug
Assignee: Unassigned
Components: PMT
Created: 2015/09/03 10:21 AM
Priority: Normal Normal
Reporter: Ben Ford

When installing to an environment, puppet module tool validates the $basemodulepath instead of the correct environment directory.

root@puppetfactory:/etc/puppetlabs/code/environments # puppet module install puppetlabs/motd --environment binford2k
Notice: Preparing to install into /etc/puppetlabs/code/environments/binford2k/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Error: Could not install module 'puppetlabs-motd' (latest)
  Installation would overwrite /etc/puppetlabs/code/modules/motd      <===== not the right env!
    Use `puppet module install --force` to install this module anyway
root@puppetfactory:/etc/puppetlabs/code/environments # puppet module install puppetlabs/motd --environment binford2k --force
Notice: Preparing to install into /etc/puppetlabs/code/environments/binford2k/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/binford2k/modules
└── puppetlabs-motd (v1.2.0)

Also fails:

  • --target-dir /etc/puppetlabs/code/environments/binford2k/modules

Works:

  • --modulepath /etc/puppetlabs/code/environments/binford2k/modules
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4)
Atlassian logo

Kylo Ginsberg (JIRA)

unread,
Sep 3, 2015, 2:53:03 PM9/3/15
to puppe...@googlegroups.com
Kylo Ginsberg updated an issue

I assigned this one to the code management scrum team. /cc Adrien Thebo, Alex Dreyer, Alexander Johnson.

Change By: Kylo Ginsberg
Scrum Team: Code Management

Alexander Johnson (JIRA)

unread,
Sep 3, 2015, 3:02:03 PM9/3/15
to puppe...@googlegroups.com

Alexander Johnson (JIRA)

unread,
Sep 3, 2015, 3:03:04 PM9/3/15
to puppe...@googlegroups.com

Anderson Mills (JIRA)

unread,
Sep 9, 2015, 6:15:02 PM9/9/15
to puppe...@googlegroups.com

Heidi Pio (JIRA)

unread,
Sep 9, 2015, 6:17:03 PM9/9/15
to puppe...@googlegroups.com
Heidi Pio updated an issue
Change By: Heidi Pio
Sprint: CODEMGMT 2015- 09 10 - 23 07

Heidi Pio (JIRA)

unread,
Sep 9, 2015, 6:18:02 PM9/9/15
to puppe...@googlegroups.com

Heidi Pio (JIRA)

unread,
Sep 23, 2015, 7:03:02 PM9/23/15
to puppe...@googlegroups.com

Ben Ford (JIRA)

unread,
May 15, 2017, 4:19:03 PM5/15/17
to puppe...@googlegroups.com
Ben Ford commented on Bug PUP-5196
 
Re: puppet module tool validates the wrong directory when used w/ --environment

root@master:~ # puppet module install puppetlabs/motd --environment binford2k
Notice: Preparing to install into /etc/puppetlabs/code/environments/binford2k/modules ...
Notice: Created target directory /etc/puppetlabs/code/environments/binford2k/modules
Notice: Downloading from https://forgeapi.puppet.com ...
Error: Could not install module 'puppetlabs-motd' (latest)
  Installation would overwrite /etc/puppetlabs/code/modules/motd
    Use `puppet module install --force` to install this module anyway

This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Branan Riley (JIRA)

unread,
May 15, 2017, 4:38:03 PM5/15/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 15, 2017, 4:39:04 PM5/15/17
to puppe...@googlegroups.com

Branan Riley (JIRA)

unread,
May 15, 2017, 4:39:04 PM5/15/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
May 16, 2017, 6:47:04 PM5/16/17
to puppe...@googlegroups.com

Lindsey Smith (JIRA)

unread,
Nov 27, 2017, 2:31:03 PM11/27/17
to puppe...@googlegroups.com
Lindsey Smith assigned an issue to Unassigned
Change By: Lindsey Smith
Assignee: Anderson Mills
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 1:29:03 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-5196
 
Re: puppet module tool validates the wrong directory when used w/ --environment

This was fixed awhile ago, I think when we started explicitly passing the current environment:

[root@resonant-try ~]# puppet module install puppetlabs/motd --version 1.0.0
Notice: Preparing to install into /etc/puppetlabs/code/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/production/modules
└── puppetlabs-motd (v1.0.0)
[root@resonant-try ~]# mkdir /etc/puppetlabs/code/environments/dev
[root@resonant-try ~]# puppet module install puppetlabs/motd --environment dev
Notice: Preparing to install into /etc/puppetlabs/code/environments/dev/modules ...
Notice: Created target directory /etc/puppetlabs/code/environments/dev/modules
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/code/environments/dev/modules
└─┬ puppetlabs-motd (v4.1.0)
  ├── puppetlabs-registry (v3.1.0)
  ├── puppetlabs-stdlib (v6.2.0)
  └── puppetlabs-translate (v2.1.0)

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages