Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/users/manifests/init.pp

Issue 29339079: Issue 3587 - Remove module users (Closed)
Patch Set: Created March 29, 2016, 8:58 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/users/files/sudoers-puppet ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/users/manifests/init.pp
diff --git a/modules/users/manifests/init.pp b/modules/users/manifests/init.pp
deleted file mode 100644
index 213c04cc57c3b3da9563bd5745aadc03ac755fe7..0000000000000000000000000000000000000000
--- a/modules/users/manifests/init.pp
+++ /dev/null
@@ -1,45 +0,0 @@
-class users {
- define user (
- $user_name = $title,
- $authorized_keys,
- $password = undef,
- $groups = [],
- ) {
- user {$user_name:
- home => "/home/${user_name}",
- shell => "/bin/bash",
- managehome => true,
- password => $password,
- groups => $groups,
- }
-
- file {"/home/${user_name}/.ssh":
- ensure => directory,
- owner => $user_name,
- mode => 0700,
- require => User[$user_name]
- }
-
- file {"/home/${user_name}/.ssh/authorized_keys":
- ensure => present,
- owner => $user_name,
- content => $authorized_keys
- }
- }
-
- user {'root':
- password => '*'
- }
-
- file {'/root/.ssh/authorized_keys':
- ensure => absent
- }
-
- file {'/etc/sudoers.d/puppet':
- ensure => present,
- owner => root,
- group => root,
- mode => 0440,
- source => 'puppet:///modules/users/sudoers-puppet'
- }
-}
« no previous file with comments | « modules/users/files/sudoers-puppet ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld