-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure rundeck directories are owned by $user and $group
- Loading branch information
Showing
1 changed file
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,10 +89,35 @@ | |
} | ||
|
||
file { $rdeck_home: | ||
ensure => directory, | ||
owner => $user, | ||
group => $group, | ||
mode => '0755', | ||
ensure => directory, | ||
recurse => true, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jyaworski
Member
|
||
owner => $user, | ||
group => $group, | ||
mode => '0640', | ||
} | ||
|
||
file { $rundeck::params::service_logs_dir: | ||
ensure => directory, | ||
recurse => true, | ||
owner => $user, | ||
group => $group, | ||
mode => '0640', | ||
} | ||
|
||
file { $rundeck::params::framework_config['framework.etc.dir']: | ||
ensure => directory, | ||
recurse => true, | ||
owner => $user, | ||
group => $group, | ||
mode => '0640', | ||
} | ||
|
||
file { '/var/rundeck/': | ||
ensure => directory, | ||
recurse => true, | ||
owner => $user, | ||
group => $group, | ||
mode => '0640', | ||
} | ||
|
||
ensure_resource(file, $projects_dir, {'ensure' => 'directory', 'owner' => $user, 'group' => $group}) | ||
|
This line is causing some problems with activities using the Rundeck ssh keys, as 'recurse => true' also affects the ~/.ssh/ directory, which in turn changes mode of the private key 'id_rsa' from '0600' (default, correct) to '0640' (unsecure for a private key). Opening a defect here.