aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro <pietro@riseup.net>2008-07-31 21:52:35 +0000
committerPietro <pietro@riseup.net>2008-07-31 21:52:35 +0000
commit2d0b9a3efac4bd18bf2102b3ac9520197abe64db (patch)
tree7fb74927a0fc9171f9bf051cd3ae7d586cdd75b4
parenta41f5cf4a0d3b1f936db9d52474b354987e5c641 (diff)
downloadpuppet-backupninja-2d0b9a3efac4bd18bf2102b3ac9520197abe64db.tar.gz
puppet-backupninja-2d0b9a3efac4bd18bf2102b3ac9520197abe64db.tar.bz2
change permissions to octals.
-rw-r--r--manifests/client.pp2
-rw-r--r--manifests/server.pp10
2 files changed, 6 insertions, 6 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index c9193c9..d27b556 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -74,7 +74,7 @@ class backupninja::client {
true: {
file { "${backupninja::client::real_keydestination}":
ensure => directory,
- mode => 700, owner => $key_owner, group => $key_group,
+ mode => 0700, owner => $key_owner, group => $key_group,
}
file { "${backupninja::client::real_keydestination}/id_${key_type}":
source => "${key_store}/${real_user}_id_${key_type}",
diff --git a/manifests/server.pp b/manifests/server.pp
index a4f09a4..c04137a 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -15,12 +15,12 @@ class backupninja::server {
group { "backupninjas":
ensure => "present",
- gid => 700
+ gid => 0700
}
file { "$real_backupdir":
ensure => "directory",
- mode => 710, owner => root, group => "backupninjas"
+ mode => 0710, owner => root, group => "backupninjas"
}
User <<| tag == "backupninja-$real_backupserver_tag" |>>
@@ -66,7 +66,7 @@ class backupninja::server {
@@file { "$real_dir":
ensure => directory,
- mode => 750, owner => $user, group => 0,
+ mode => 0750, owner => $user, group => 0,
tag => "$real_backuptag",
}
case $installuser {
@@ -75,7 +75,7 @@ class backupninja::server {
true: {
@@file { "${real_ssh_dir}":
ensure => directory,
- mode => 700, owner => $user, group => 0,
+ mode => 0700, owner => $user, group => 0,
require => File["$real_dir"],
tag => "$real_backuptag",
}
@@ -83,7 +83,7 @@ class backupninja::server {
}
@@file { "${real_ssh_dir}/${real_authorized_keys_file}":
ensure => present,
- mode => 644, owner => 0, group => 0,
+ mode => 0644, owner => 0, group => 0,
source => "$real_backupkeys/${user}_id_rsa.pub",
require => File["${real_ssh_dir}"],
tag => "$real_backuptag",