diff --git a/manifests/resource/key.pp b/manifests/resource/key.pp index 25eb629..6ec3394 100644 --- a/manifests/resource/key.pp +++ b/manifests/resource/key.pp @@ -13,7 +13,7 @@ $bits=4096, $passphrase='', $type='rsa') { file { $root: ensure => $ensure ? { present => directory, default => absent }, - mode => 0700, + mode => '0700', owner => $user, group => $user, } @@ -28,10 +28,10 @@ } file { $keypath: - mode => 0600, + mode => '0600', require => Exec["create ssh-key for $user with name $title"]; "${keypath}.pub": - mode => 0644, + mode => '0644', require => Exec["create ssh-key for $user with name $title"]; } } diff --git a/manifests/resource/known_hosts.pp b/manifests/resource/known_hosts.pp index 62502f9..be64306 100644 --- a/manifests/resource/known_hosts.pp +++ b/manifests/resource/known_hosts.pp @@ -31,7 +31,7 @@ path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ], } file { $hosthash: - mode => 0600, + mode => '0600', } # Construct the right and proper known_hosts file. @@ -42,7 +42,7 @@ path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ], } file { "${known_hosts}": - mode => 0600, + mode => '0600', } ## Ensure that all files and execs get the correct user/group combinations.