Faidon Liambotis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/179086

Change subject: Remove Ubuntu >= 12.04 conditionals for Labs
......................................................................

Remove Ubuntu >= 12.04 conditionals for Labs

We have no Lucid instances in Labs anymore and removing those
conditionals removes cruft and helps with Debian support.

Change-Id: Iea10087adab22428726581a3bb89868fdb37b67e
---
M manifests/role/labsbastion.pp
M modules/ldap/templates/nslcd.conf.erb
M modules/ssh/manifests/server.pp
3 files changed, 7 insertions(+), 15 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/86/179086/1

diff --git a/manifests/role/labsbastion.pp b/manifests/role/labsbastion.pp
index 73ffb55..f7c420a 100644
--- a/manifests/role/labsbastion.pp
+++ b/manifests/role/labsbastion.pp
@@ -12,9 +12,7 @@
         }
     }
 
-    if versioncmp($::lsbdistrelease, '12.04') >= 0 {
-        package { 'mosh':
-            ensure => present,
-        }
+    package { 'mosh':
+        ensure => present,
     }
 }
diff --git a/modules/ldap/templates/nslcd.conf.erb 
b/modules/ldap/templates/nslcd.conf.erb
index d5619a6..3cb2541 100644
--- a/modules/ldap/templates/nslcd.conf.erb
+++ b/modules/ldap/templates/nslcd.conf.erb
@@ -38,12 +38,12 @@
 tls_cacertfile /etc/ssl/certs/<%= @ldapconfig["ca"] %>
 
 
-<% if scope.function_versioncmp([@lsbdistrelease, "12.04"]) >= 0 %># Limit 
user names to this regex. This needs to be kept in sync with OpenStackManager's 
regex.
-validnames /^[a-z][.a-z0-9_-]*$/i<% end %>
+# Limit user names to this regex. This needs to be kept in sync with 
OpenStackManager's regex.
+validnames /^[a-z][.a-z0-9_-]*$/i
 
 # Group mapping for sudo-ldap.
-<% if scope.function_versioncmp([@lsbdistrelease, "12.04"]) < 0 %>map group 
uniquemember member<% end %>
+map group uniquemember member
 <% if @realm == "labs" %>map passwd loginshell "/bin/bash"<% end %>
 
 pagesize <%= @ldapconfig["pagesize"] %>
-<% if scope.function_versioncmp([@lsbdistrelease, "12.04"]) >= 0 %>nss_min_uid 
<%= @ldapconfig["nss_min_uid"] %><% end %>
+nss_min_uid <%= @ldapconfig["nss_min_uid"] %>
diff --git a/modules/ssh/manifests/server.pp b/modules/ssh/manifests/server.pp
index c630b11..501d6c7 100644
--- a/modules/ssh/manifests/server.pp
+++ b/modules/ssh/manifests/server.pp
@@ -13,13 +13,7 @@
     }
 
     if ($::realm == 'labs') {
-        if versioncmp($::lsbdistrelease, '12.04') >= 0 {
-            $ssh_authorized_keys_file 
='/etc/ssh/userkeys/%u/.ssh/authorized_keys 
/public/keys/%u/.ssh/authorized_keys'
-        } else {
-            $ssh_authorized_keys_file 
='/etc/ssh/userkeys/%u/.ssh/authorized_keys'
-            $ssh_authorized_keys_file2 = '/public/keys/%u/.ssh/authorized_keys'
-
-        }
+        $ssh_authorized_keys_file ='/etc/ssh/userkeys/%u/.ssh/authorized_keys 
/public/keys/%u/.ssh/authorized_keys'
     }
 
     # publish this hosts's host key

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea10087adab22428726581a3bb89868fdb37b67e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>

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

Reply via email to