Revert commit 6561158b203f1eaeeedc1b5c2c81a58cbc1dc562
Locking the account prevents access on Redhat based systems. Using old
method until a uniform method for disabling account passwords is found.
diff --git a/manifests/client.pp b/manifests/client.pp
index 5caf424..2fbbc98 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -349,33 +349,14 @@
content => "${system_account} ALL=(ALL:ALL) NOEXEC:NOPASSWD: ${sudo_commands_noexec}\n",
}
- case $::osfamily {
- 'Debian': {
- user { $system_account:
- ensure => $ensure,
- home => $system_home_directory,
- managehome => true,
- shell => '/bin/bash',
- comment => 'BackupPC',
- system => true,
- password => '*',
- }
- }
- 'RedHat': {
- user { $system_account:
- ensure => $ensure,
- home => $system_home_directory,
- managehome => true,
- shell => '/bin/bash',
- comment => 'BackupPC',
- system => true,
- password => '!!',
- }
- }
- default: {
- notify { "If you've added support for ${::operatingsystem} you'll need to extend this case statement to.":
- }
- }
+ user { $system_account:
+ ensure => $ensure,
+ home => $system_home_directory,
+ managehome => true,
+ shell => '/bin/bash',
+ comment => 'BackupPC',
+ system => true,
+ password => sha1("tyF761_${::fqdn}${::uniqueid}"),
}
file { "${system_home_directory}/.ssh":