jenkins-bot has submitted this change and it was merged.

Change subject: Add /etc/aliases
......................................................................


Add /etc/aliases

Change-Id: Icc56ae3f7204c83f9718120b139f7e9c1981a010
---
A puppet/modules/users/files/aliases
M puppet/modules/users/manifests/init.pp
2 files changed, 41 insertions(+), 0 deletions(-)

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



diff --git a/puppet/modules/users/files/aliases 
b/puppet/modules/users/files/aliases
new file mode 100644
index 0000000..d2f0e0e
--- /dev/null
+++ b/puppet/modules/users/files/aliases
@@ -0,0 +1,29 @@
+# /etc/aliases
+
+mailer-daemon: postmaster
+postmaster: root
+nobody: root
+hostmaster: root
+usenet: root
+news: root
+webmaster: root
+www: root
+www-data: root
+ftp: root
+abuse: root
+noc: root
+security: root
+l10n-bot: root
+
+root: [email protected], [email protected]
+
+amir: [email protected]
+lcawte: [email protected]
+mah: [email protected]
+nike: [email protected]
+raymond: [email protected]
+siebrand: [email protected]
+translatewiki: [email protected]
+federico: [email protected]
+
+blockly: [email protected]
diff --git a/puppet/modules/users/manifests/init.pp 
b/puppet/modules/users/manifests/init.pp
index a33b762..84001dd 100644
--- a/puppet/modules/users/manifests/init.pp
+++ b/puppet/modules/users/manifests/init.pp
@@ -1,4 +1,16 @@
 class users {
+  # Pull down the main aliases file
+  file { '/etc/aliases':
+    source => 'puppet:///modules/users/aliases'
+  }
+
+  # Rebuild the database, but only when the file changes
+  exec { newaliases:
+    path        => ["/usr/bin", "/usr/sbin"],
+    subscribe   => File["/etc/aliases"],
+    refreshonly => true
+  }
+
   group { "betawiki":
     ensure => present,
     gid => 1002

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icc56ae3f7204c83f9718120b139f7e9c1981a010
Gerrit-PatchSet: 3
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to