Opened 5 years ago

Closed 5 years ago

#7072 closed Feature/Enhancement Request (fixed)

Install drush from squeeze backports on all MOSH's and other relevant servers

Reported by: https://id.mayfirst.org/joseph Owned by: https://id.mayfirst.org/joseph
Priority: Medium Component: Tech
Keywords: drush puppet squeeze-backports Cc:
Sensitive: no

Description

Drush in squeeze is version 3.3. In squeeze backports it's 4.5.

All MOSH's have the backports repositories added. Some servers hosting Drupal sites don't use the mosh.pp file, so will need to have backports added to the server's node stanza with this line:

  m_apt::source { "squeeze.backports.list":
    content => "deb http://backports.debian.org/debian-backports squeeze-backports main"
  }

To set the apt preferences for drush, this line needs to be added to the mosh.pp file and any other servers that need it.

  file { "/etc/apt/preferences.d/drush.squeeze.backports.pref":
   source => "puppet:///modules/mayfirst/apt/drush.squeeze.backports.pref",
   ensure => present
  }

I'm not totally sure how to audit the non-MOSH servers running Drupal sites. Peltier was one.

Change History (5)

comment:1 follow-up: Changed 5 years ago by https://id.mayfirst.org/ross

  • Owner set to https://id.mayfirst.org/joseph
  • Status changed from new to assigned

I suspect that peltier specifically had drush installed manually. I think the additional line you need to add to peliter's (and others) node stanza is:

package { [ "drush" ] :
  ensure => installed
}

I'm not sure if your reporting this also means you're volunteering, but I'm assigning the ticket to you, Joseph. You're welcome to reassign it to me if you don't have time to work on it.

~/ross

Last edited 5 years ago by https://id.mayfirst.org/ross (previous) (diff)

comment:2 Changed 5 years ago by https://id.mayfirst.org/dkg

how does mailman relate to drush?

comment:3 in reply to: ↑ 1 ; follow-up: Changed 5 years ago by https://id.mayfirst.org/joseph

Replying to https://id.mayfirst.org/ross:

I'm not sure if your reporting this also means you're volunteering, but I'm assigning the ticket to you, Joseph. You're welcome to reassign it to me if you don't have time to work on it.

ross, I was asking to make sure there were no objections. I can take care of this at some point in the near future, but not immediately.

Replying to https://id.mayfirst.org/dkg:

how does mailman relate to drush?

dkg, I think he's just giving an example of the syntax.

comment:4 in reply to: ↑ 3 Changed 5 years ago by https://id.mayfirst.org/ross

Replying to https://id.mayfirst.org/dkg:

how does mailman relate to drush?

dkg, I think he's just giving an example of the syntax.

Yes, thanks for clarifying dkg. I've changed the example above to reflect the correct package.

comment:5 Changed 5 years ago by https://id.mayfirst.org/joseph

  • Resolution set to fixed
  • Status changed from assigned to closed

This appears to be done.

0 joseph@allenian:~/work/mfpl/puppet/confdir$ cat modules/mayfirst/files/apt/drush.squeeze.backports.pref 
Package: drush
Pin: release n=squeeze-backports
Pin-Priority: 600

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.