Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UNIX command line
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Ghislain Durif
UNIX command line
Commits
9b9da1ff
Unverified
Commit
9b9da1ff
authored
4 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
update VM init script
parent
32a71dd3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deploy.sh
+1
-1
1 addition, 1 deletion
deploy.sh
install.sh
+0
-14
0 additions, 14 deletions
install.sh
ubuntu-shellinabox.yaml
+0
-1
0 additions, 1 deletion
ubuntu-shellinabox.yaml
with
1 addition
and
16 deletions
deploy.sh
+
1
−
1
View file @
9b9da1ff
...
...
@@ -28,7 +28,7 @@ fi
USER_LOGIN
=
etudiant
USER_PASSWORD
=
$(
openssl rand
-hex
12
)
useradd
-m
-s
/bin/bash
-g
users
-G
adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev
${
USER_LOGIN
}
useradd
-m
-s
/bin/bash
-g
users
-G
adm,
docker,
dialout,cdrom,floppy,audio,dip,video,plugdev,netdev
${
USER_LOGIN
}
cp
/etc/skel/.
*
/home/
${
USER_LOGIN
}
/
passwd
${
USER_LOGIN
}
<<
EOF
...
...
This diff is collapsed.
Click to expand it.
install.sh
+
0
−
14
View file @
9b9da1ff
...
...
@@ -4,20 +4,6 @@
# It is used to record a predefined VM-image of the appliance.
# Otherwise executed first during a cloud deployement in IFB-Biosphere
# Install Ansible
export
DEBIAN_FRONTEND
=
noninteractive
APT_OPT
=
""
if
[
$(
lsb_release
-is
)
=
"Debian"
]
;
then
apt-get
install
-y
software-properties-common dirmngr
if
[
$(
lsb_release
-cs
)
=
"stretch"
]
;
then
apt-add-repository
"deb http://deb.debian.org/debian stretch-backports main"
;
fi
APT_OPT
=
"-t
$(
lsb_release
-cs
)
-backports --allow-unauthenticated"
apt-get
-y
--allow-unauthenticated
dist-upgrade
elif
[
$(
lsb_release
-cs
)
!=
"focal"
]
;
then
apt-add-repository
-y
ppa:ansible/ansible
fi
apt-get update
apt-get
install
$APT_OPT
-y
ansible
# Run app playbook
ansible-playbook
-c
local
-i
127.0.0.1,
-b
-e
'ansible_python_interpreter=/usr/bin/python3'
ubuntu-shellinabox.yaml
...
...
This diff is collapsed.
Click to expand it.
ubuntu-shellinabox.yaml
+
0
−
1
View file @
9b9da1ff
...
...
@@ -60,7 +60,6 @@
-
name
:
Configure network
shell
:
iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT && iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT && iptables-save
sudo systemctl restart shellinabox
-
name
:
Enable services
systemd
:
...
...
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