Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Plan de cuques
eole-wol
Commits
d18966b6
Verified
Commit
d18966b6
authored
6 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Adapting post_install for cuques
see
#2
parent
bbc612f1
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
config.eol
+1
-0
1 addition, 0 deletions
config.eol
creole/acng.conf
+62
-0
62 additions, 0 deletions
creole/acng.conf
do_postinstall.sh
+22
-10
22 additions, 10 deletions
do_postinstall.sh
postinstall.sh
+0
-1
0 additions, 1 deletion
postinstall.sh
postinstall_partage.sh
+1
-0
1 addition, 0 deletions
postinstall_partage.sh
with
86 additions
and
11 deletions
config.eol
0 → 100644
+
1
−
0
View file @
d18966b6
{"type_amon": {"owner": "gen_config", "val": "2zones-amonecole-cuques"}, "adresse_ip_eth1_proxy_link": {"owner": "gen_config", "val": "10.20.1.2"}, "activer_ajout_hosts": {"owner": "gen_config", "val": "oui"}, "nom_domaine_local": {"owner": "gen_config", "val": "ecoletest.plandecuques.fr"}, "nom_court_hosts": {"owner": {"0": "gen_config"}, "val": {"0": "dnsproxy"}}, "activer_squid_auth": {"owner": "gen_config", "val": "non"}, "bareos_sd_password": {"owner": "forced", "val": "01006d73c6f13edbff49539ea6a50b744c26d4f1380cfad072df4daf"}, "bareos_db_mysql_password": {"owner": "gen_config", "val": "38a0a5ed7180cb6fc3660b4049dc111deecf5e67aed721e839e88536"}, "adresse_ip_fichier_link": {"owner": "gen_config", "val": "10.20.1.3"}, "web_url": {"owner": "gen_config", "val": "test.ac-marseille.fr"}, "bareos_dir_password": {"owner": "forced", "val": "548c71a8e99ce2452009f2d21d225da30e6f2bba95cb05bfc8cf7b98"}, "ip_haute_dhcp": {"owner": {"0": "gen_config"}, "val": {"0": "10.20.1.254"}}, "domaine_messagerie_etab": {"owner": "gen_config", "val": "test.ac-marseille.fr"}, "___version___": "2.6.2", "nom_long_hosts": {"owner": {"0": "gen_config"}, "val": {"0": "dnsproxy.ecoletest.plandecuques.fr"}}, "activer_dhcp": {"owner": "gen_config", "val": "oui"}, "bareos_dir_name": {"owner": "forced", "val": "amonecole-dir"}, "adresse_ip_hosts": {"owner": "gen_config", "val": ["10.20.1.2"]}, "bareos_fd_password": {"owner": "forced", "val": "0d2b71cdcc90c4367dcd47fe16bd7d308b7e22aca4c4fe36014c22e0"}, "nom_plage_dhcp": {"owner": {"0": "gen_config"}, "val": {"0": "ecole"}}, "system_mail_to": {"owner": "gen_config", "val": "root@test.ac-marseille.fr"}, "eth0_method": {"owner": "gen_config", "val": "dhcp"}, "ip_basse_dhcp": {"owner": {"0": "gen_config"}, "val": {"0": "10.20.1.20"}}, "ip_admin_eth0": {"owner": "gen_config", "val": ["192.168.211.1"]}, "cert_type": {"owner": "gen_config", "val": "autosign\u00e9"}, "ip_admin_eth1": {"owner": "gen_config", "val": ["10.20.0.30"]}, "numero_etab": {"owner": "gen_config", "val": "test"}, "netmask_admin_eth1": {"owner": {"0": "gen_config"}, "val": {"0": "255.255.255.255"}}, "netmask_admin_eth0": {"owner": {"0": "gen_config"}, "val": {"0": "255.255.255.255"}}, "bareos_db_type": {"owner": "forced", "val": "mysql"}, "esu_proxy_default": {"owner": "forced", "val": "oui"}, "ip_ssh_eth1": {"owner": "gen_config", "val": ["10.20.0.30"]}, "ip_ssh_eth0": {"owner": "gen_config", "val": ["192.168.211.228", "193.33.56.228"]}, "libelle_etab": {"owner": "gen_config", "val": "test"}, "smb_workgroup": {"owner": "gen_config", "val": "ecole-wg"}, "smb_netbios_name": {"owner": "gen_config", "val": "ecole-srv"}, "netmask_ssh_eth0": {"owner": {"1": "gen_config", "0": "gen_config"}, "val": {"1": "255.255.255.255", "0": "255.255.255.255"}}, "netmask_ssh_eth1": {"owner": {"0": "gen_config"}, "val": {"0": "255.255.255.255"}}, "omapi_secret": {"owner": "forced", "val": "42f0707bbf047e86da7fb90aa0752f750503be5899135f2ea6542a34"}, "activer_exim_relay_smtp": {"owner": "gen_config", "val": "non"}, "adresse_ip_eth1": {"owner": "gen_config", "val": "10.20.1.1"}, "nom_machine": {"owner": "gen_config", "val": "ecoletest"}, "nom_academie": {"owner": "gen_config", "val": "ac-marseille"}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
creole/acng.conf
0 → 100644
+
62
−
0
View file @
d18966b6
# Letter case in directive names does not matter. Must be separated with colons.
# Valid boolean values are a zero number for false, non-zero numbers for true.
CacheDir
: /
var
/
cache
/
apt
-
cacher
-
ng
# set empty to disable logging
LogDir
: /
var
/
log
/
apt
-
cacher
-
ng
# place to look for additional configuration and resource files if they are not
# found in the configuration directory
# SupportDir: /usr/lib/apt-cacher-ng
# TCP (http) port
# Set to 9999 to emulate apt-proxy
Port
:%%
getVar
(
'apt_cacher_port'
,
3142
)
# Addresses or hostnames to listen on. Multiple addresses must be separated by
# spaces. Each entry must be an exact local address which is associated with a
# local interface. DNS resolution is performed using getaddrinfo(3) for all
# available protocols (IPv4, IPv6, ...). Using a protocol specific format will
# create binding(s) only on protocol specific socket(s) (e.g. 0.0.0.0 will listen
# only to IPv4).
#
# Default: not set, will listen on all interfaces and protocols
#
%
set
%%
bindaddresses
=
"localhost"
+
' '
+ %%
getVar
(
'adresse_ip_eth1'
,
'10.0.0.1'
)
%
if
%%
getVar
(
'mode_conteneur_actif'
,
'non'
) ==
'oui'
%
set
%%
bindaddresses
+=
' '
+ %%
getVar
(
'adresse_ip_br0'
,
'192.0.2.1'
)
%
end
if
BindAddress
: %%
bindaddresses
%
if
%%
getVar
(
'activer_proxy_client'
,
'non'
) ==
'oui'
# The specification of another proxy which shall be used for downloads.
# Username and password are, and see manual for limitations.
#
Proxy
:
http
://%%
proxy_client_adresse
:%%
proxy_client_port
%
end
if
# Repository remapping. See manual for details.
# EOLE configuration
# Add backends to list of mirrors and remap to backends
Remap
-
uburep
:
file
:
ubuntu_mirrors
/
ubuntu
file
:
backends_ubuntu
;
file
:
backends_ubuntu
# Ubuntu Archives
Remap
-
eolerep
:
file
:
backends_eole
/
eole
;
file
:
backends_eole
# EOLE archives
# Virtual page accessible in a web browser to see statistics and status
# information, i.e. under http://localhost:3142/acng-report.html
ReportPage
:
acng
-
report
.
html
# Forbid all downloads that don't run through preconfigured backends (.where)
#ForceManaged: 0
# Days before considering an unreferenced file expired (to be deleted).
# Warning: if the value is set too low and particular index files are not
# available for some days (mirror downtime) there is a risk of deletion of
# still useful package files.
ExTreshold
:
4
# Arbitrary set of data to append to request headers sent over the wire. Should
# be a well formated HTTP headers part including newlines (DOS style) which
# can be entered as escape sequences (\r\n).
RequestAppendix
:
X
-
Tracking
-
Choice
:
do
-
not
-
track
\
r
\
n
This diff is collapsed.
Click to expand it.
do_postinstall.sh
+
22
−
10
View file @
d18966b6
...
@@ -22,9 +22,26 @@ then
...
@@ -22,9 +22,26 @@ then
exit
1
exit
1
fi
fi
if
[
!
-z
"
`
which lxc-ls
`
"
]
if
[
-z
"
`
which lxc-ls
`
"
]
then
then
echo
"Please run postinstall on the master"
exit
1
fi
DIR
=
`
dirname
$0
`
DIR
=
`
dirname
$0
`
# Update
Maj-Auto
gen_conteneurs
cp
$DIR
/config.eol /etc/eole/
instance
diagnose
-L
cp
$DIR
/creole/
*
/usr/share/eole/creole/modif
gen_patch
reconfigure
for
ctn
in
partage reseau
for
ctn
in
partage reseau
do
do
echo
"Running post install for
$ctn
"
echo
"Running post install for
$ctn
"
...
@@ -32,8 +49,3 @@ then
...
@@ -32,8 +49,3 @@ then
ssh
$ctn
./postinstall_
$ctn
.sh
ssh
$ctn
./postinstall_
$ctn
.sh
ssh
$ctn
rm
postinstall_
$ctn
.sh
ssh
$ctn
rm
postinstall_
$ctn
.sh
done
done
else
echo
"Please run postinstall on the master"
exit
1
fi
This diff is collapsed.
Click to expand it.
postinstall.sh
+
0
−
1
View file @
d18966b6
#!/bin/bash
#!/bin/bash
git pull
git pull
`
dirname
$0
`
/do_postinstall.sh
`
dirname
$0
`
/do_postinstall.sh
This diff is collapsed.
Click to expand it.
postinstall_partage.sh
+
1
−
0
View file @
d18966b6
...
@@ -60,4 +60,5 @@ do
...
@@ -60,4 +60,5 @@ do
sleep
10
sleep
10
done
done
# TODO : change me
cp
~/.ssh/id_rsa.pub /var/lib/tftpboot/ltsp/id_rsa.pub
cp
~/.ssh/id_rsa.pub /var/lib/tftpboot/ltsp/id_rsa.pub
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