Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.package
Commits
868e7359
Commit
868e7359
authored
Jan 05, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors-upgrader: install rm-tmp-lte script
parent
e668681b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
playbook/roles/ors-upgrade/files/rm-tmp-lte
playbook/roles/ors-upgrade/files/rm-tmp-lte
+3
-0
playbook/roles/ors-upgrade/files/slapuser-rm-tmp
playbook/roles/ors-upgrade/files/slapuser-rm-tmp
+10
-0
playbook/roles/ors-upgrade/tasks/main.yml
playbook/roles/ors-upgrade/tasks/main.yml
+6
-0
No files found.
playbook/roles/ors-upgrade/files/rm-tmp-lte
0 → 100755
View file @
868e7359
#!/bin/bash
rm
-f
/tmp/.lte
*
playbook/roles/ors-upgrade/files/slapuser-rm-tmp
0 → 100644
View file @
868e7359
slapuser1 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser2 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser3 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser4 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser5 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser6 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser7 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser8 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser9 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
slapuser10 ALL=NOPASSWD:/opt/amarisoft/rm-tmp-lte
playbook/roles/ors-upgrade/tasks/main.yml
View file @
868e7359
...
...
@@ -17,5 +17,11 @@
-
name
:
Install give-cap-sys-nice-lteenb script
copy
:
src=give-cap-sys-nice-lteenb dest={{ install_folder }} owner=root mode=770
-
name
:
Install rm-tmp-lte script
copy
:
src=rm-tmp-lte dest={{ install_folder }} owner=root mode=770
-
name
:
Give permission to slapsoft to execute give-cap-sys-nice-lteenb script
copy
:
src=slapsoft-give-cap-sys-nice-lteenb dest=/etc/sudoers.d owner=root mode=440
-
name
:
Give permission to slapuser to remove tmp files owned by other slapuser
copy
:
src=slapuser-rm-tmp dest=/etc/sudoers.d owner=root mode=440
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment