Yuvipanda has submitted this change and it was merged.

Change subject: labs-vagrant: Add a stub labs-vagrant command
......................................................................


labs-vagrant: Add a stub labs-vagrant command

Add a `labs-vagrant` script that tells the user that they should be
using `vagrant` instead to help retrain users with `labs-vagrant` muscle
memory. Inspired by an irc conversation with jdlrobson where he didn't
realize that he was using the new role.

Change-Id: I83fed21b3e7f3f3420b751cd05e8843c61def5fc
---
M modules/vagrant/manifests/mediawiki.pp
A modules/vagrant/templates/labs-vagrant.erb
2 files changed, 19 insertions(+), 0 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/vagrant/manifests/mediawiki.pp 
b/modules/vagrant/manifests/mediawiki.pp
index 24b88c9..fbe9260 100644
--- a/modules/vagrant/manifests/mediawiki.pp
+++ b/modules/vagrant/manifests/mediawiki.pp
@@ -63,4 +63,12 @@
         before  => Exec['mediawiki_vagrant_setup'],
         require => Git::Clone['mediawiki/vagrant'],
     }
+
+    file { '/usr/local/bin/labs-vagrant':
+        ensure  => 'present',
+        owner   => 'root',
+        group   => 'root',
+        mode    => '0555',
+        content => template('vagrant/labs-vagrant.erb'),
+    }
 }
diff --git a/modules/vagrant/templates/labs-vagrant.erb 
b/modules/vagrant/templates/labs-vagrant.erb
new file mode 100644
index 0000000..20f1aae
--- /dev/null
+++ b/modules/vagrant/templates/labs-vagrant.erb
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+# Help people who have labs-vagrant muscle memory learn the new commands
+
+echo -e 
"\033[31m==============================================================================\033[0m"
+echo -e "\033[33mThe labs-vagrant command is obsolete.\033[0m"
+echo
+echo -e "Use \033[36mcd <%= @install_directory %>; vagrant 
[up|provision|ssh|...]\033[0m instead"
+echo
+echo "See https://wikitech.wikimedia.org/wiki/Help:MediaWiki-Vagrant_in_Labs
+for more details"
+echo -e 
"\033[31m==============================================================================\033[0m"

-- 
To view, visit https://gerrit.wikimedia.org/r/246857
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I83fed21b3e7f3f3420b751cd05e8843c61def5fc
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BryanDavis <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to