Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Make sure that shared drush command folder is present #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patcon
Copy link

@patcon patcon commented Jun 6, 2013

What about including this in init.pp, like @tizzo has done at @zivtech:
https://github.com/zivtech/vagrant-development-vm/blob/master/puppet-modules/drush/manifests/init.pp#L29-L42

  file { "/usr/share/drush":
    ensure => directory,
    owner => root,
    group => root,
    mode => 755,
  }

  file {  "/usr/share/drush/commands":
    require => File['/usr/share/drush'],
    ensure => directory,
    owner => root,
    group => root,
    mode => 755,
  }

Still new to puppet, but I think the rationale is so that globally-installed drush commands can depend on the drush module without redeclaring:
https://github.com/zivtech/vagrant-development-vm/blob/master/puppet-modules/drushfetcher/manifests/init.pp#L1-L4

@patcon
Copy link
Author

patcon commented Jun 6, 2013

Added a version constraint until librarian-puppet fixes up its expectation of strict syntax

See: rodjek/librarian-puppet#94

@erikwebb
Copy link
Owner

erikwebb commented Jun 6, 2013

Because I am just relying on Pear to install Drush, couldn't it be located in different locations based on per-user configuration? I've personally installed Drush through Pear in my home directory on shared servers because of permissions. I know that specifically will not be a problem using Puppet, but it is a hard requirement that I think might not be appropriate. In addition, this should be generally handled by making sure it is installed via pear::package.

To put it another way, if installing via RPM, do you ensure those directories explicitly exist?

@patcon
Copy link
Author

patcon commented Jun 6, 2013

You raise a good point. What if we just made the dir configurable but defaulting to global (since its the pear default)? Would it be reasonable to expect that at least one command directory is going under drush's control? That way, it could always be inherited like drushfetcher does above, to ensure that it's possible for other modules to install drush commands.

@tizzo thoughts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants