Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't separately install drush #271

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Conversation

rosiel
Copy link
Contributor

@rosiel rosiel commented Jan 5, 2024

GitHub Issue: #269

What does this Pull Request do?

There are two things in this PR:

  • add vagrant_user in the Vagrant file. Without this, the Vagrant installation doesn't work. I'm not sure how it worked before.
  • fixes proposed by @RodBruce (many thanks!) for installing Drupal 10 (namely, not installing the Drush Installer.)

Drush is still installed, but because it's required by the Starter Site or (hopefully) whatever you're using in place of the starter site. This is how it's supposed to be installed.

What's new?

  • Adds a value to ansible_user in the Vagrantfile
  • Removes the geerlingguy.drush playbook role from requirements.yml
  • Removes the call to that role in webserver.yml.

In regard to change number 3 in the linked issue, I found that i did not have to change anything in the drupal playbook for it to work. When Composer deployed the drupal project from the starter site, drush 12 was installed into the /vendor/bin folder. The Drupal ansible role looks in this folder for Drush. I ran the playbook using Vagrant with no other alterations (your change no.1 to the playbook version string has already been merged) and I got a Drupal 10.1.5 site with no Playbook errors.

  • Does this change require documentation to be updated? No
  • Does this change add any new dependencies? No
  • Does this change require any other modifications to be made to the repository
    (i.e. Regeneration activity, etc.)? No
  • Could this change impact execution of existing code? No

How should this be tested?

  • clone this repo
  • type vagrant up or use the deploy instructions to deploy it to another server.

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora-Devops/committers

@noahwsmith
Copy link

Maybe @whikloj should review this - looking at commit history he may be the only active committer that uses the Playbook?

@noahwsmith noahwsmith requested a review from whikloj January 11, 2024 14:46
@seth-shaw-asu seth-shaw-asu requested review from seth-shaw-asu and removed request for whikloj January 11, 2024 16:12
@seth-shaw-asu
Copy link
Contributor

@whikloj has a new Mac and can't run the playbook anymore. I'll review it.

@whikloj
Copy link
Member

whikloj commented Jan 11, 2024

Thank you @seth-shaw-asu , I did try to switch to using Packer but haven't been successful yet

@BrzIGH
Copy link

BrzIGH commented Jan 15, 2024

Sorry to report that this does not currently work...keeps failing at the ansible "false" command.

@seth-shaw-asu
Copy link
Contributor

Sorry for the delay. I've been struck down by illness and not getting better as quickly as anticipated. I'll test after I get better.

@BrzIGH
Copy link

BrzIGH commented Jan 15, 2024

No problem. Get better first. Business can come second :-)

Copy link
Contributor

@seth-shaw-asu seth-shaw-asu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran without error and Drush is accessible after launch.

@seth-shaw-asu seth-shaw-asu merged commit eaf133e into Islandora-Devops:dev Jan 18, 2024
@BrzIGH
Copy link

BrzIGH commented Jan 18, 2024

Thank you. Will try again once I am back in the office...

@BrzIGH
Copy link

BrzIGH commented Jan 19, 2024

I am at a loss...still ran into the same problem even after reverting to a base Ubuntu server snapshot and redoing the same steps that I did before Christmas.... (download playbook and edit files as per "Deplying to a remote environment" web document.... :-(

TASK [geerlingguy.drupal : Move Drupal project files to drupal_composer_install_dir (this may take a while).] ***************************************************************************
Friday 19 January 2024 10:30:49 -0800 (0:00:00.273) 0:00:28.835 ********
changed: [default]

TASK [geerlingguy.drupal : Install dependencies with composer require (this may take a while).] *****************************************************************************************
Friday 19 January 2024 10:30:54 -0800 (0:00:04.593) 0:00:33.429 ********
failed: [default] (item=drush/drush:^10.1) => {"ansible_loop_var": "item", "changed": false, "item": "drush/drush:^10.1", "msg": "./composer.json has been updated Running composer update drush/drush Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command. - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Installation failed, reverting ./composer.json and ./composer.lock to their original content.", "stdout": "./composer.json has been updated\nRunning composer update drush/drush\nLoading composer repositories with package information\nUpdating dependencies\nYour requirements could not be resolved to an installable set of packages.\n\n Problem 1\n - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.\n - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.\n - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev].\n\nUse the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.\n\nInstallation failed, reverting ./composer.json and ./composer.lock to their original content.\n", "stdout_lines": ["./composer.json has been updated", "Running composer update drush/drush", "Loading composer repositories with package information", "Updating dependencies", "Your requirements could not be resolved to an installable set of packages.", "", " Problem 1", " - drush/drush[10.1.0, ..., 10.3.1] require chi-teck/drupal-code-generator ^1.30.5 -> found chi-teck/drupal-code-generator[1.30.5, ..., 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.", " - drush/drush[10.3.2, ..., 10.x-dev] require chi-teck/drupal-code-generator ^1.32.1 -> found chi-teck/drupal-code-generator[1.32.1, 1.33.0, 1.33.1, 1.x-dev] but the package is fixed to 3.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.", " - Root composer.json requires drush/drush ^10.1 -> satisfiable by drush/drush[10.1.0, ..., 10.x-dev].", "", "Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.", "", "Installation failed, reverting ./composer.json and ./composer.lock to their original content."]}

@rosiel rosiel deleted the no-drush branch January 19, 2024 19:11
@rosiel
Copy link
Contributor Author

rosiel commented Jan 19, 2024

You don't need to post this twice.

@BrzIGH
Copy link

BrzIGH commented Jan 19, 2024

Yes, I am sorry. I do not hang out on github too often. I find it a tad confusing to navigate.

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

Successfully merging this pull request may close these issues.

5 participants