Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
5bf4e2c0
Commit
5bf4e2c0
authored
3 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
Variable if you want to add maintenance ssh key or not
parent
d0fc503d
Branches
Branches containing commit
No related tags found
1 merge request
!21
Services desk 81 redistributivite securimag
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
install/Base.sh
+5
-1
5 additions, 1 deletion
install/Base.sh
main.env.sample
+6
-0
6 additions, 0 deletions
main.env.sample
with
12 additions
and
1 deletion
README.md
+
1
−
0
View file @
5bf4e2c0
...
...
@@ -20,6 +20,7 @@ All configuration is on .env.main.sample. By default, this environnement is conf
8.
Test the connection with the ssh key (in case of hosting by OVH, remove the waring in '.ssh/authorized_keys')
9.
**Delete temporary user as needed**
`deluser [user] && rm -r /home/[user]`
10.
`. main.env; bash validate.sh`
11.
Put your ssh key in
`/root/.ssh/authorized_keys`
if needed
If dockerweb doesn't have the right uid, you can chaange it
**only if it's not already in use**
thanks to:
```
sh
...
...
This diff is collapsed.
Click to expand it.
install/Base.sh
+
5
−
1
View file @
5bf4e2c0
...
...
@@ -118,7 +118,11 @@ bash $DIR/checks/rkhunter.sh
# Allow maintenance operations:
mkdir
-p
/root/.ssh
cat
id_rsa.pub
>>
/root/.ssh/authorized_keys
if
[
"
$TETRAS_MAINTENACE
"
=
true
]
;
then
cat
id_rsa.pub
>>
/root/.ssh/authorized_keys
else
touch
/root/.ssh/authorized_keys
fi
chmod
600 /root/.ssh/authorized_keys
#Ssh
...
...
This diff is collapsed.
Click to expand it.
main.env.sample
+
6
−
0
View file @
5bf4e2c0
...
...
@@ -11,8 +11,14 @@ export MAINTENANCE_LEVEL="security"
# TODO change domain for you domaine of server
export DOMAIN="dev.tetras-libre.fr"
# TODO change admin mail
export SERVER_ADMIN="sysadmin@tetras-libre.fr"
# TODO put this variable to false if tetras does not provide maintenance
# This has the consequence of whether or not the free tetras ssh public key is added to the authorized keys
export TETRAS_MAINTENACE=true
# TODO change ignore domaines for fail2ban
export IGNORE_DOMAINES=(
"tetrix.tetras-libre.fr"
"piculus.tetras-libre.fr"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment