Skip to content

Commit

Permalink
MNIP-4762: Add backup user to local group
Browse files Browse the repository at this point in the history
  • Loading branch information
billglick committed Mar 8, 2024
1 parent 365cf18 commit 1c209fb
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,21 @@

# SETUP BACKUP USER & GROUP
group { $groupname:
ensure => 'present',
gid => $gid,
ensure => 'present',
forcelocal => true,
gid => $gid,
}

user { $username:
ensure => 'present',
uid => $uid,
gid => $gid,
home => $backup_directory,
password => '!!',
shell => '/bin/bash',
comment => 'NCSA Service Backups',
ensure => 'present',
uid => $uid,
forcelocal => true,
gid => $gid,
groups => [ $gid ],
home => $backup_directory,
password => '!!',
shell => '/bin/bash',
comment => 'NCSA Service Backups',
}

# COLLECT EXPORTED RESOURCES FOR backup_allow_client_on_server
Expand Down

0 comments on commit 1c209fb

Please sign in to comment.