Commit cf165739 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

deploy: Add archipelago user and group manually



In NFS and Mount components add archipelago user manually. For NFS
permissions to work properly across all nodes, the group owner of
the exported directory must exist on all nodes and have a common
gid. Thus, prior adduser, we create archipelago group with high gid
(200) to avoid conflicts.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 1df27925
...@@ -1185,6 +1185,9 @@ EOF ...@@ -1185,6 +1185,9 @@ EOF
return [ return [
"mkdir -p %s" % config.shared_dir, "mkdir -p %s" % config.shared_dir,
"addgroup --gid 200 archipelago",
"adduser --system --no-create-home \
--gecos 'Archipelago user' --gid 200 archipelago",
fstab, fstab,
] ]
...@@ -1221,6 +1224,9 @@ class NFS(base.Component): ...@@ -1221,6 +1224,9 @@ class NFS(base.Component):
"mkdir -p %s" % config.images_dir, "mkdir -p %s" % config.images_dir,
"mkdir -p %s" % config.ganeti_dir, "mkdir -p %s" % config.ganeti_dir,
"mkdir -p %s" % config.archip_dir, "mkdir -p %s" % config.archip_dir,
"addgroup --gid 200 archipelago",
"adduser --system --no-create-home \
--gecos 'Archipelago user' --gid 200 archipelago",
"cd %s && mkdir {maps,blocks,locks}" % config.archip_dir, "cd %s && mkdir {maps,blocks,locks}" % config.archip_dir,
"cd %s && chown archipelago:archipelago {maps,blocks,locks}" % \ "cd %s && chown archipelago:archipelago {maps,blocks,locks}" % \
config.archip_dir, config.archip_dir,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment