Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility for the new file mode argument #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions manifests/resource/key.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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"];
}
}
4 changes: 2 additions & 2 deletions manifests/resource/known_hosts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down