From d96e43b9060e50a54cde3890af6999d2d85b54c2 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Thu, 12 Dec 2019 09:52:05 +0100 Subject: [PATCH] remove assert_private (#99) --- manifests/authorized_keys.pp | 2 -- manifests/config.pp | 2 -- manifests/group.pp | 2 -- manifests/user.pp | 2 -- 4 files changed, 8 deletions(-) diff --git a/manifests/authorized_keys.pp b/manifests/authorized_keys.pp index f9db3d4..825a50a 100644 --- a/manifests/authorized_keys.pp +++ b/manifests/authorized_keys.pp @@ -32,8 +32,6 @@ Boolean $manage_ssh_dir = true, ){ - assert_private() - if $authorized_keys_file { $ssh_dir = accounts_parent_dir($authorized_keys_file) $auth_key_file = $authorized_keys_file diff --git a/manifests/config.pp b/manifests/config.pp index 66d362c..c0fd22b 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -3,8 +3,6 @@ Hash $options = {} ) { - assert_private() - if has_key($options, 'umask') { $umask = $options['umask'] augeas {'Set umask': diff --git a/manifests/group.pp b/manifests/group.pp index 00bb756..9300546 100644 --- a/manifests/group.pp +++ b/manifests/group.pp @@ -26,8 +26,6 @@ String $provider = 'gpasswd', ) { - assert_private() - # avoid problems when group declared elsewhere ensure_resource('group', $groupname, { 'ensure' => $ensure, diff --git a/manifests/user.pp b/manifests/user.pp index 9542827..c565eaa 100644 --- a/manifests/user.pp +++ b/manifests/user.pp @@ -74,8 +74,6 @@ Optional[Variant[String, Integer]] $ssh_dir_group = undef, ) { - assert_private() - if $pwhash != '' and $password { fail("You cannot set both \$pwhash and \$password for ${username}.") }