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.keep
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
Ivan Tyagov
slapos.package.keep
Commits
6d851db1
Commit
6d851db1
authored
Sep 03, 2019
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
e39327ab
206b4f15
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
200 additions
and
214 deletions
+200
-214
obs/re6st/Makefile.in
obs/re6st/Makefile.in
+1
-1
obs/re6st/buildout.cfg.in
obs/re6st/buildout.cfg.in
+7
-0
obs/re6st/make.py
obs/re6st/make.py
+4
-2
packer/debian7-testing-version.json
packer/debian7-testing-version.json
+0
-64
packer/debian7-vm-bootstrap.json
packer/debian7-vm-bootstrap.json
+0
-64
packer/debian8-erp5-standalone.json
packer/debian8-erp5-standalone.json
+2
-2
packer/debian8-testing-version.json
packer/debian8-testing-version.json
+2
-2
packer/debian8-vm-boostrap.json
packer/debian8-vm-boostrap.json
+2
-2
packer/debian8-webrunner-standalone.json
packer/debian8-webrunner-standalone.json
+2
-2
packer/debian8-wendelin-standalone.json
packer/debian8-wendelin-standalone.json
+2
-2
packer/debian8.json
packer/debian8.json
+2
-2
packer/debian9-rs-base.json
packer/debian9-rs-base.json
+13
-7
packer/debian9.json
packer/debian9.json
+2
-2
packer/scripts/debug-env.sh
packer/scripts/debug-env.sh
+4
-0
packer/scripts/setup-base-slapos.sh
packer/scripts/setup-base-slapos.sh
+26
-0
packer/scripts/setup-erp5-standalone.sh
packer/scripts/setup-erp5-standalone.sh
+1
-1
packer/scripts/setup-testing-version.sh
packer/scripts/setup-testing-version.sh
+1
-1
packer/scripts/setup-webrunner-standalone.sh
packer/scripts/setup-webrunner-standalone.sh
+1
-1
packer/scripts/setup-wendelin-standalone.sh
packer/scripts/setup-wendelin-standalone.sh
+1
-5
packer/util/request-freefib-token.sh
packer/util/request-freefib-token.sh
+4
-0
playbook/erp5-standalone.yml
playbook/erp5-standalone.yml
+1
-1
playbook/imt-re6stnet.yml
playbook/imt-re6stnet.yml
+1
-1
playbook/roles/etckeeper/tasks/main.yml
playbook/roles/etckeeper/tasks/main.yml
+1
-0
playbook/roles/repository/tasks/main.yml
playbook/roles/repository/tasks/main.yml
+8
-0
playbook/roles/slapcache/tasks/main.yml
playbook/roles/slapcache/tasks/main.yml
+20
-5
playbook/roles/upgrader/tasks/main.yml
playbook/roles/upgrader/tasks/main.yml
+1
-3
playbook/roles/vifib-kernel/files/slapos-trigger-reboot.sh
playbook/roles/vifib-kernel/files/slapos-trigger-reboot.sh
+8
-0
playbook/roles/vifib-kernel/handlers/main.yml
playbook/roles/vifib-kernel/handlers/main.yml
+7
-0
playbook/roles/vifib-kernel/tasks/main.yml
playbook/roles/vifib-kernel/tasks/main.yml
+21
-3
playbook/roles/vifib-server/tasks/kvm.yml
playbook/roles/vifib-server/tasks/kvm.yml
+16
-7
playbook/roles/vifib-team-ssh-key/files/georgios_key
playbook/roles/vifib-team-ssh-key/files/georgios_key
+1
-0
playbook/roles/vifib-team-ssh-key/files/kazuhiko_key
playbook/roles/vifib-team-ssh-key/files/kazuhiko_key
+1
-0
playbook/roles/vifib-team-ssh-key/files/remove_key_5
playbook/roles/vifib-team-ssh-key/files/remove_key_5
+0
-0
playbook/roles/vifib-team-ssh-key/files/remove_key_6
playbook/roles/vifib-team-ssh-key/files/remove_key_6
+0
-0
playbook/roles/vifib-team-ssh-key/files/remove_key_7
playbook/roles/vifib-team-ssh-key/files/remove_key_7
+0
-0
playbook/roles/vifib-team-ssh-key/tasks/main.yml
playbook/roles/vifib-team-ssh-key/tasks/main.yml
+14
-8
playbook/roles/vifib-upgrade/meta/main.yml
playbook/roles/vifib-upgrade/meta/main.yml
+1
-0
playbook/roles/vm-bootstrap/tasks/main.yml
playbook/roles/vm-bootstrap/tasks/main.yml
+0
-2
playbook/roles/vm-bootstrap/tasks/sudo.yml
playbook/roles/vm-bootstrap/tasks/sudo.yml
+0
-21
playbook/roles/vm-bootstrap/tasks/user.yml
playbook/roles/vm-bootstrap/tasks/user.yml
+19
-0
playbook/settings/imt.yml
playbook/settings/imt.yml
+1
-1
playbook/settings/upgrader.yml
playbook/settings/upgrader.yml
+1
-1
playbook/wendelin-standalone.yml
playbook/wendelin-standalone.yml
+1
-1
No files found.
obs/re6st/Makefile.in
View file @
6d851db1
...
...
@@ -25,7 +25,7 @@ $(BUILD)/bin/buildout:
cd
$(BUILD)
&&
$(PYTHON2)
-S
$(CURDIR)
/rebootstrap
$(BUILD)/.installed.cfg
:
$(BUILD)/bin/buildout $(BUILD)/buildout.cfg
cd
$(BUILD)
&&
bin/buildout
cd
$(BUILD)
&&
bin/buildout
babeld-repository:recipe
=
touch
$@
PROGS
=
$(
patsubst
%,
$(DESTDIR)
/usr/bin/%,
$(BIN)
)
...
...
obs/re6st/buildout.cfg.in
View file @
6d851db1
...
...
@@ -15,6 +15,13 @@ allow-picked-versions = true
parts += chrpath python
[babeld-repository]
git-executable =
location = ${buildout:directory}/babeld
[babeld]
post-install = make clean
[python]
recipe = zc.recipe.egg
interpreter = ${:_buildout_section_name_}.tmp
...
...
obs/re6st/make.py
View file @
6d851db1
...
...
@@ -52,7 +52,7 @@ BOOTSTRAP_URL = "https://bootstrap.pypa.io/bootstrap-buildout.py"
PACKAGE
=
"re6st-node"
BIN
=
"re6st-conf re6st-registry re6stnet"
.
split
()
BUILD_KEEP
=
"b
uildout.cfg"
,
"extends-cache"
,
"download
-cache"
BUILD_KEEP
=
"b
abeld"
,
"buildout.cfg"
,
"download-cache"
,
"extends
-cache"
NOPART
=
"chrpath flex glib lunzip m4 patch perl popt site_perl xz-utils"
.
split
()
TARGET
=
"opt/re6st"
...
...
@@ -178,8 +178,10 @@ def tarball(task):
t
.
add
(
"re6stnet/daemon"
)
for
x
in
upstream
.
outputs
:
t
.
add
(
x
)
def
exclude
(
path
):
return
path
.
endswith
(
'/.git'
)
for
x
in
BUILD_KEEP
:
t
.
add
(
BUILD
+
"/"
+
x
)
t
.
add
(
BUILD
+
"/"
+
x
,
exclude
=
exclude
)
@
task
(
sdist
,
"debian/changelog"
)
def
dch
(
task
):
...
...
packer/debian7-testing-version.json
deleted
100644 → 0
View file @
e39327ab
{
"variables"
:
{
"user"
:
"slapos"
,
"password"
:
"slapos"
,
"disk_size"
:
"100000"
,
"domain"
:
""
},
"builders"
:
[
{
"name"
:
"debian7-testing-version"
,
"type"
:
"qemu"
,
"format"
:
"qcow2"
,
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/mirror/cdimage/archive/7.9.0/amd64/iso-cd/debian-7.9.0-amd64-netinst.iso"
,
"iso_checksum"
:
"774d1fc8c5364e63b22242c33a89c1a3"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
"ssh_username"
:
"{{user `user`}}"
,
"ssh_password"
:
"{{user `password`}}"
,
"ssh_wait_timeout"
:
"1800s"
,
"shutdown_command"
:
"echo '{{user `password`}}'|sudo -S shutdown -h now"
,
"headless"
:
true
,
"boot_wait"
:
"2s"
,
"boot_command"
:
[
"<esc><wait><wait>"
,
"install auto "
,
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian7.cfg "
,
"debian-installer=en_US locale=en_US keymap=us "
,
"netcfg/get_hostname={{ .Name }} "
,
"netcfg/get_domain={{ user `domain`}} "
,
"fb=false debconf/frontend=noninteractive "
,
"passwd/user-fullname={{user `user`}} "
,
"passwd/user-password={{user `password`}} "
,
"passwd/user-password-again={{user `password`}} "
,
"passwd/username={{user `user`}} "
,
"<enter>"
]
}
],
"provisioners"
:
[
{
"type"
:
"shell"
,
"execute_command"
:
"echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"scripts"
:
[
"scripts/update.sh"
,
"scripts/packages.sh"
,
"scripts/setup-testing-version.sh"
,
"scripts/cleanup.sh"
]
}
]
}
packer/debian7-vm-bootstrap.json
deleted
100644 → 0
View file @
e39327ab
{
"variables"
:
{
"user"
:
"slapos"
,
"password"
:
"slapos"
,
"disk_size"
:
"200000"
,
"domain"
:
""
},
"builders"
:
[
{
"name"
:
"debian7-vm-bootstrap"
,
"type"
:
"qemu"
,
"format"
:
"qcow2"
,
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/mirror/cdimage/archive/7.11.0/amd64/iso-cd/debian-7.11.0-amd64-netinst.iso"
,
"iso_checksum"
:
"096c1c18b44c269808bd815d58c53c8f"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
"ssh_username"
:
"{{user `user`}}"
,
"ssh_password"
:
"{{user `password`}}"
,
"ssh_wait_timeout"
:
"1800s"
,
"shutdown_command"
:
"echo '{{user `password`}}'|sudo -S shutdown -h now"
,
"headless"
:
true
,
"boot_wait"
:
"2s"
,
"boot_command"
:
[
"<esc><wait><wait>"
,
"install auto "
,
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian7.cfg "
,
"debian-installer=en_US locale=en_US keymap=fr "
,
"netcfg/get_hostname={{ .Name }} "
,
"netcfg/get_domain={{ user `domain`}} "
,
"fb=false debconf/frontend=noninteractive "
,
"passwd/user-fullname={{user `user`}} "
,
"passwd/user-password={{user `password`}} "
,
"passwd/user-password-again={{user `password`}} "
,
"passwd/username={{user `user`}} "
,
"<enter>"
]
}
],
"provisioners"
:
[
{
"type"
:
"shell"
,
"execute_command"
:
"echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"scripts"
:
[
"scripts/update.sh"
,
"scripts/packages.sh"
,
"scripts/cleanup.sh"
,
"scripts/vm-bootstrap.sh"
]
}
]
}
packer/debian8-erp5-standalone.json
View file @
6d851db1
...
...
@@ -16,8 +16,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.3.0/amd64/iso-cd/debian-8.3.0
-amd64-netinst.iso"
,
"iso_checksum"
:
"
a9b490b4215d1e72e876b031dafa7184
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1
-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian8-testing-version.json
View file @
6d851db1
...
...
@@ -16,8 +16,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.7.1/amd64/iso-cd/debian-8.7
.1-amd64-netinst.iso"
,
"iso_checksum"
:
"
453312bf56fc45669fec5ebc0f025ac7
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11
.1-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian8-vm-boostrap.json
View file @
6d851db1
...
...
@@ -16,8 +16,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.7.1/amd64/iso-cd/debian-8.7
.1-amd64-netinst.iso"
,
"iso_checksum"
:
"
453312bf56fc45669fec5ebc0f025ac7
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11
.1-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian8-webrunner-standalone.json
View file @
6d851db1
...
...
@@ -16,8 +16,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.3.0/amd64/iso-cd/debian-8.3.0
-amd64-netinst.iso"
,
"iso_checksum"
:
"
a9b490b4215d1e72e876b031dafa7184
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1
-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian8-wendelin-standalone.json
View file @
6d851db1
...
...
@@ -16,8 +16,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.3.0/amd64/iso-cd/debian-8.3.0
-amd64-netinst.iso"
,
"iso_checksum"
:
"
a9b490b4215d1e72e876b031dafa7184
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1
-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian8.json
View file @
6d851db1
...
...
@@ -18,8 +18,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"iso_url"
:
"http://cdimage.debian.org/
debian-cd/8.6.0/amd64/iso-cd/debian-8.6.0
-amd64-netinst.iso"
,
"iso_checksum"
:
"
e9f61bf327db6d8f7cee05a99f2353cc
"
,
"iso_url"
:
"http://cdimage.debian.org/
mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1
-amd64-netinst.iso"
,
"iso_checksum"
:
"
df0ce86d0b1d81e232ad08eef58754ed
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/debian
7
.json
→
packer/debian
9-rs-base
.json
View file @
6d851db1
...
...
@@ -3,23 +3,26 @@
"user"
:
"slapos"
,
"password"
:
"slapos"
,
"domain"
:
""
,
"disk_size"
:
"
100
"
,
"disk_size"
:
"
6
"
,
"name"
:
"image"
,
"custom_script"
:
"scripts/empty.sh"
"custom_script"
:
"scripts/empty.sh"
,
"re6st_token"
:
"{{env `RE6STTOKEN`}}"
,
"computer_token"
:
"{{env `COMPUTERTOKEN`}}"
"computer_name"
:
"{{env `COMPUTERNAME`}}"
},
"builders"
:
[
{
"name"
:
"debian
7
-{{ user `disk_size`}}G-{{ user `name`}}"
,
"name"
:
"debian
9-rs-base
-{{ user `disk_size`}}G-{{ user `name`}}"
,
"type"
:
"qemu"
,
"format"
:
"
qcow2
"
,
"format"
:
"
raw
"
,
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"iso_url"
:
"http
://cdimage.debian.org/mirror/cdimage/archive/7.11.0/amd64/iso-cd/debian-7.11
.0-amd64-netinst.iso"
,
"iso_checksum"
:
"
096c1c18b44c269808bd815d58c53c8f
"
,
"iso_url"
:
"http
s://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9
.0-amd64-netinst.iso"
,
"iso_checksum"
:
"
e494e78d531352f0f3fdb210f13f7577
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
@@ -34,7 +37,7 @@
"boot_command"
:
[
"<esc><wait><wait>"
,
"install auto "
,
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian
7
.cfg "
,
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian
9
.cfg "
,
"debian-installer=en_US locale=en_US keymap=fr "
,
"netcfg/get_hostname={{ .Name }} "
,
"netcfg/get_domain={{ user `domain`}} "
,
...
...
@@ -55,10 +58,13 @@
{
"type"
:
"shell"
,
"execute_command"
:
"echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
,
"environment_vars"
:
[
"re6st_token={{ user `re6st_token` }}"
,
"computer_name={{user `computer_name`}}"
,
"computer_token={{ user `computer_token` }}"
],
"scripts"
:
[
"scripts/update.sh"
,
"scripts/packages.sh"
,
"scripts/network-debian9.sh"
,
"scripts/cleanup.sh"
,
"scripts/setup-base-slapos.sh"
,
"{{ user `custom_script` }}"
]
}
...
...
packer/debian9.json
View file @
6d851db1
...
...
@@ -18,8 +18,8 @@
"accelerator"
:
"kvm"
,
"disk_size"
:
"{{ user `disk_size`}}000"
,
"iso_url"
:
"http
://cdimage.debian.org/debian-cd/9.2.1/amd64/iso-cd/debian-9.2.1
-amd64-netinst.iso"
,
"iso_checksum"
:
"
5c583fd40360fd039b3ac98387b77dbb
"
,
"iso_url"
:
"http
s://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0
-amd64-netinst.iso"
,
"iso_checksum"
:
"
e494e78d531352f0f3fdb210f13f7577
"
,
"iso_checksum_type"
:
"md5"
,
"http_directory"
:
"http"
,
...
...
packer/scripts/debug-env.sh
0 → 100644
View file @
6d851db1
#!/bin/bash
# Verbose environment vars
env
packer/scripts/setup-base-slapos.sh
0 → 100644
View file @
6d851db1
#!/bin/bash
set
-e
aptitude
-y
install
--without-recommends
python-setuptools
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip2
install
--exists-action
=
i six
pip2
install
--exists-action
=
i requests
pip2
install
--exists-action
=
i slapcache
wget http://deploy.erp5.net/vifib-base
-O
/root/run-vifib-base
RE6STTOKEN
=
$re6st_token
COMPUTERTOKEN
=
$computer_token
COMPUTERNAME
=
$computer_name
bash /root/run-vifib-base
re6st-conf
--registry
http://re6stnet.gnet.erp5.cn/
--token
$RE6STTOKEN
-r
title
$RE6STTOKEN
-d
/etc/re6stnet
slapos node register
--token
$COMPUTERTOKEN
--interface-name
lo
$COMPUTERNAME
# Re-run after the register to finish up the configuration
bash /root/run-vifib-base
packer/scripts/setup-erp5-standalone.sh
View file @
6d851db1
wget http://deploy.erp5.
cn
/erp5-standalone
-O
/root/run-standalone
wget http://deploy.erp5.
net
/erp5-standalone
-O
/root/run-standalone
bash /root/run-standalone
sleep
10
...
...
packer/scripts/setup-testing-version.sh
View file @
6d851db1
...
...
@@ -32,7 +32,7 @@ fi
export TERM=xterm
sleep 5
wget -O /root/launch-test http://deploy.erp5.
cn
/launch-test
wget -O /root/launch-test http://deploy.erp5.
net
/launch-test
chmod +x /root/launch-test
bash -lc /root/launch-test
...
...
packer/scripts/setup-webrunner-standalone.sh
View file @
6d851db1
wget http://deploy.erp5.
cn
/webrunner-standalone
-O
/root/run-standalone
wget http://deploy.erp5.
net
/webrunner-standalone
-O
/root/run-standalone
bash /root/run-standalone
sleep
10
...
...
packer/scripts/setup-wendelin-standalone.sh
View file @
6d851db1
wget http://deploy.erp5.
cn
/wendelin-standalone
-O
/root/run-standalone
wget http://deploy.erp5.
net
/wendelin-standalone
-O
/root/run-standalone
bash /root/run-standalone
sleep
10
...
...
@@ -16,7 +16,3 @@ do
slapos node instance
sleep
5
done
wget https://lab.nexedi.com/nexedi/wendelin/raw/master/utils/wendelin-standalone-bind.sh
-O
/root/wendelin-standalone-bind.sh
bash /root/wendelin-standalone-bind.sh
packer/util/request-freefib-token.sh
0 → 100644
View file @
6d851db1
#!/bin/bash
# This script with the values bellow only works for slapos.vifib.com.
slapos request FREEFIB-TOKEN-
$1
product.re6st
--type
default
--slave
--node
instance_guid
=
SOFTINST-76379
playbook/erp5-standalone.yml
View file @
6d851db1
...
...
@@ -3,7 +3,7 @@
connection
:
local
vars
:
software_release_url
:
https://lab.node.vifib.com/nexedi/slapos/raw/1.0.
56.1
/software/erp5/software.cfg
software_release_url
:
https://lab.node.vifib.com/nexedi/slapos/raw/1.0.
112
/software/erp5/software.cfg
bt5_list
:
erp5_full_text_myisam_catalog erp5_configurator_standard
startup_playbook_id
:
erp5-standalone.yml
playbook_name
:
erp5
...
...
playbook/imt-re6stnet.yml
View file @
6d851db1
...
...
@@ -34,7 +34,7 @@
-
name
:
Include interface
lineinfile
:
dest=/etc/re6stnet/re6stnet.conf line="interface {{ lan_iface_name }}"
when
:
inter
face_name != "noname"
when
:
lan_i
face_name != "noname"
-
name
:
restart re6stnet service
service
:
name=re6stnet state=restarted enabled=yes
...
...
playbook/roles/etckeeper/tasks/main.yml
View file @
6d851db1
...
...
@@ -54,6 +54,7 @@
chdir
:
/etc
-
shell
:
git commit -a -m "Initial Commit"
ignore_errors
:
True
when
:
etckeeper_configuration.stat.exists == False
args
:
chdir
:
/etc
playbook/roles/repository/tasks/main.yml
View file @
6d851db1
...
...
@@ -16,6 +16,10 @@
-
include
:
fedora_init.yml
-
name
:
Install Debian 10 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_10/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "10"
-
name
:
Install Debian 9 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_9.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
...
...
@@ -32,6 +36,10 @@
apt_key
:
url={{ base_open_build_url }}/Debian_6.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
-
name
:
Install Debian 10 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_10/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "10"
-
name
:
Install Debian 9 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_9.0/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
...
...
playbook/roles/slapcache/tasks/main.yml
View file @
6d851db1
...
...
@@ -3,16 +3,31 @@
-
name
:
Register pip installation status
command
:
which pip
changed_when
:
false
failed_when
:
fals
e
ignore_errors
:
Tru
e
register
:
pip_installed
-
name
:
Register pip3 installation status
command
:
which pip3
changed_when
:
false
ignore_errors
:
True
register
:
pip3_installed
-
name
:
Make sure pip is installed
shell
:
easy_install pip
when
:
pip_installed
|
failed
when
:
pip_installed
is failed and pip3_installed is
failed
# install module with pip so that on debian 8 we can download the playbook in shacache
-
name
:
Install/Upgrade latest slapos.libnetworkcache
-
name
:
Install/Upgrade latest slapos.libnetworkcache using pip
shell
:
pip install --upgrade slapos.libnetworkcache
when
:
pip_installed is success
-
name
:
Instal
/Upgrade latest slapcache
-
name
:
Instal
l/Upgrade latest slapcache using pip
shell
:
pip install --upgrade slapcache
when
:
pip_installed is success
-
name
:
Install/Upgrade latest slapos.libnetworkcache using pip3
shell
:
pip3 install --upgrade slapos.libnetworkcache
when
:
pip3_installed is success
-
name
:
Install/Upgrade latest slapcache using pip3
shell
:
pip3 install --upgrade slapcache
when
:
pip3_installed is success
playbook/roles/upgrader/tasks/main.yml
View file @
6d851db1
...
...
@@ -66,12 +66,10 @@
chdir
:
/opt/upgrader/playbook-tmp/
-
name
:
Set Cron
cron
:
name="Launch Upgrader with ansible" minute="0" hour="*/3" job='rm -rf /opt/upgrader/playbook && cp -R /opt/upgrader/playbook-tmp /opt/upgrader/playbook && cd /opt/upgrader/playbook && PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook upgrader-run.yml --extra-vars "upgrader_playbook={{ upgrader_playbook }}" -i hosts 2>>/opt/upgrader/latest_upgrade.log >> /opt/upgrader/latest_upgrade.log'
cron
:
name="Launch Upgrader with ansible" minute="0" hour="*/3" job='rm -rf /opt/upgrader/playbook && cp -R /opt/upgrader/playbook-tmp /opt/upgrader/playbook && cd /opt/upgrader/playbook && PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook upgrader-run.yml --extra-vars "upgrader_playbook={{ upgrader_playbook }}
upgrade_kernel={{ upgrade_kernel | default(False) == True }}
" -i hosts 2>>/opt/upgrader/latest_upgrade.log >> /opt/upgrader/latest_upgrade.log'
-
cron
:
name="Launch Upgrader" state=absent
-
name
:
Upgrade Current Upgrade Signature
shell
:
cat /opt/upgrader/next-upgrade-signature > /opt/upgrader/current-upgrade-signature
when
:
(upgrade_after > lookup('file', '/opt/upgrader/last-upgrade')|int ) and (lookup('file', '/opt/upgrader/next-upgrade-signature') != lookup('file', '/opt/upgrader/current-upgrade-signature'))
...
...
playbook/roles/vifib-kernel/files/slapos-trigger-reboot.sh
0 → 100644
View file @
6d851db1
#!/bin/bash
FILE
=
/opt/upgrader/REBOOT_REQUIRED
if
[[
-f
"
$FILE
"
]]
;
then
rm
$FILE
reboot
fi
playbook/roles/vifib-kernel/handlers/main.yml
0 → 100644
View file @
6d851db1
---
-
name
:
Mark to reboot
file
:
path
:
/opt/upgrader/REBOOT_REQUIRED
state
:
touch
mode
:
u=rw,g=r,o=r
playbook/roles/vifib-kernel/tasks/main.yml
View file @
6d851db1
---
-
name
:
Install Debian stable-proposed-updates repository
apt_repository
:
repo='deb http://deb.debian.org/debian/ oldstable-proposed-updates main' state=present update_cache=yes
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
-
name
:
Install kernel 4.9 on debian
9.0
apt
:
name=linux-image-4.9.0-
5-amd64 state=latest
update_cache=no
apt
:
name=linux-image-4.9.0-
10-amd64 state=latest default_release=oldstable-proposed-updates
update_cache=no
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
notify
:
[
'
Mark
to
reboot'
]
-
name
:
Install Debian jessie-backports repository
apt_repository
:
repo='deb http://ftp.debian.org/debian jessie-backports main' state=present update_cache=yes
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
-
name
:
Install kernel 4.9 on debian
8.0
apt
:
name=linux-image-4.9.0-0.bpo.
5
-amd64 state=latest default_release=jessie-backports update_cache=yes
apt
:
name=linux-image-4.9.0-0.bpo.
9
-amd64 state=latest default_release=jessie-backports update_cache=yes
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
notify
:
[
'
Mark
to
reboot'
]
-
name
:
Install Debian jessie repository on debian
7
lineinfile
:
...
...
@@ -27,3 +33,15 @@
-
name
:
Dist upgrade debian 7 to debian
8
apt
:
upgrade=dist update_cache=yes
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
notify
:
[
'
Mark
to
reboot'
]
-
name
:
create trigger reboot script
copy
:
src=slapos-trigger-reboot.sh dest=/usr/local/bin/slapos-trigger-reboot.sh mode=700
-
name
:
Stat AUTOREBOOT
stat
:
path=/opt/upgrader/AUTOREBOOT
register
:
autoreboot
-
name
:
Setup auto-reboot cron
cron
:
name="Launch Reboot when REBOOT is Required" minute="*/30" job='/usr/local/bin/slapos-trigger-reboot.sh'
when
:
autoreboot.stat.exists == True
playbook/roles/vifib-server/tasks/kvm.yml
View file @
6d851db1
---
-
modprobe
:
name=kvm_intel state=present params='nested=Y'
-
name
:
Insert kvm_intel module with parameter nested=Y
modprobe
:
name=kvm_intel state=present params='nested=Y'
ignore_errors
:
True
-
name
:
Prevent kvm_intel module from being loaded by udev
lineinfile
:
dest
:
/etc/modprobe.d/blacklist.conf
line
:
"
blacklist
kvm_intel"
state
:
present
create
:
yes
-
pause
:
seconds=2
-
stat
:
path=/dev/kvm
...
...
@@ -13,7 +21,8 @@
when
:
dev_kvm.stat.exists == True
-
modprobe
:
name=vhost-net state=present
-
name
:
Insert vhost-net module
modprobe
:
name=vhost-net state=present
ignore_errors
:
True
-
pause
:
seconds=2
...
...
playbook/roles/vifib-team-ssh-key/files/georgios_key
0 → 100644
View file @
6d851db1
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1e2ur8La53AqozInGbJr/VIcsDwhWe6YYl8Y/WxBGj1P7f3ZjxykBtOxGkfu4IJNQK1shzSnm7qdjvSC+womI6bortipWAMkcahagyiG1RsvxsVXADFefGhfyNRyMMm2lXEk47YDr3Wojk3JCxCG5PO0Vr8khIBGh6EdHYvGYC3iktaBrbodub3jDH5y/BOmfV2SnZ97SPVP+TKmMqFhcExpuMrITyaHVXyVNgVasbIQAaZ81pe0lZWrM/QJqRnt3Fwvcn5/6D9oXAL2T5rK60UXd4rrmFEh8BRJqKrf8cvZ0CcyicgUPOYxbZYTZA8XFljdyP9PrnVv0eUWr2K78foc+gPSVzyxThaPDBWl6D1qT+pDBSAGmS5XdF2VKJkkH7Gd9Gv2jeEi71AdiTdgtIM84sJQbqnv8M3N0pY8CmjNJO4LVv13In/lKpuqSUTp90gjmSdH48m3md0dvULFxvpzI6Z0Xp4HerqGL8jAGICR+tRUBxtYtxqwkWveq7y4CWdIaAs6WhAPW4yEysnKtrfNWr1q3Mwgs8YlhWKLJ/JfmlA+EKN4o8jT9880oSBzQYV+ri/JcJamEypn+C7I3bpXcQIHf2+tCUe7SsugsLlaUHoXJyrT2X+y6gTx0U4/S7pwa9ymT3PkBI7Fcud0XpX+MYLBnWRtLUwsH10o1IQ== georgios.dagkakis@nexedi.com
\ No newline at end of file
playbook/roles/vifib-team-ssh-key/files/kazuhiko_key
0 → 100644
View file @
6d851db1
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsBUtIRLdGksVq4tk06ZBfXS+kMXz71apdD7GMeFDrohbd402Ej/nNj+J1/lVvuEwczBHXqy1MDIjLpS3sQ9qkjebRelmdn1G54V/A6u2slko2Tj7/Ib+UalaTbANLraNU1woVJAjAKQpFVnzZPcZMZf25aJd5TcuZ9ha7fk1STKKCiyA3Ibo2zgYM4j+SAu6/L1xxIRylbjh59M1fdtk3wTDbqLYWkPzijw8rPxwt8ws3gmmrZqcEOm1bLz0mQ+G5M26bRG3/M4qBZSYPQISBkLhVONCJP6/Yde0iRAKf8JF1DUHlY1Kgw4bMbKemoLlYix5KOoZHulNRrdbc6M+Dw== kazuhiko@nexedi.com
playbook/roles/vifib-team-ssh-key/files/
guillaume_key
→
playbook/roles/vifib-team-ssh-key/files/
remove_key_5
View file @
6d851db1
File moved
playbook/roles/vifib-team-ssh-key/files/
nicolas_key
→
playbook/roles/vifib-team-ssh-key/files/
remove_key_6
View file @
6d851db1
File moved
playbook/roles/vifib-team-ssh-key/files/
tatuya_key
→
playbook/roles/vifib-team-ssh-key/files/
remove_key_7
View file @
6d851db1
File moved
playbook/roles/vifib-team-ssh-key/tasks/main.yml
View file @
6d851db1
...
...
@@ -8,17 +8,11 @@
-
name
:
Add A SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'alain_key') }}"
-
name
:
Add N SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'nicolas_key') }}"
-
name
:
Add Y SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'yusei_key') }}"
-
name
:
Add T SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'tatuya_key') }}"
-
name
:
Add G SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'guillaume_key') }}"
-
name
:
Add GD SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'georgios_key') }}"
-
name
:
Add TG SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'thomas_key') }}"
...
...
@@ -41,6 +35,18 @@
-
name
:
Add KW SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'klaus_key') }}"
-
name
:
Add KS SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'kazuhiko_key') }}"
-
name
:
Remove T SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'remove_key_7') }}" state=absent
-
name
:
Remove N SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'remove_key_6') }}" state=absent
-
name
:
Remove G SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'remove_key_5') }}" state=absent
-
name
:
Remove Hardik SSH Key
authorized_key
:
user=root key="{{ lookup('file', 'remove_key_4') }}" state=absent
...
...
playbook/roles/vifib-upgrade/meta/main.yml
View file @
6d851db1
...
...
@@ -10,6 +10,7 @@ dependencies:
-
{
role
:
package
,
package_name
:
strace
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
htop
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
ioping
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
fuse
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
exim4-base
,
package_state
:
absent
}
-
{
role
:
package
,
package_name
:
slapos-node
,
package_state
:
latest
}
-
{
role
:
package
,
package_name
:
re6st-node
,
package_state
:
latest
}
...
...
playbook/roles/vm-bootstrap/tasks/main.yml
View file @
6d851db1
...
...
@@ -41,8 +41,6 @@
-
include
:
network.yml
-
include
:
hostname.yml
-
include
:
user.yml
-
include
:
sudo.yml
when
:
is_playbook_ok in [False, "False"]
-
include
:
ssh.yml
-
name
:
Enable hotplugged CPU and Memory automatically
...
...
playbook/roles/vm-bootstrap/tasks/sudo.yml
deleted
100644 → 0
View file @
e39327ab
---
-
name
:
Ensure sudo is installed
apt
:
name=sudo state=latest update_cache=yes cache_valid_time=86400
when
:
ansible_os_family == "Debian"
-
include
:
../../yum/tasks/main.yml name=sudo cache_valid_time=86400
when
:
ansible_os_family == "RedHat"
-
name
:
Ensure /etc/sudoers.d directory is present
file
:
path=/etc/sudoers.d state=directory
-
name
:
Ensure /etc/sudoers.d is scanned by sudo
action
:
lineinfile dest=/etc/sudoers regexp="#includedir\s+/etc/sudoers.d" line="#includedir /etc/sudoers.d"
-
name
:
Add hadoop user to the sudoers
lineinfile
:
dest=/etc/sudoers.d/netadmin state=present create=yes regexp="netadmin .*" line="netadmin ALL=(root) NOPASSWD:ALL"
-
name
:
Ensure /etc/sudoers.d/netadmin file has correct permissions
action
:
file path=/etc/sudoers.d/netadmin mode=0440 state=file owner=root group=root
playbook/roles/vm-bootstrap/tasks/user.yml
View file @
6d851db1
...
...
@@ -3,6 +3,25 @@
-
name
:
create netadmin
user
:
name=netadmin shell=/bin/bash groups=root password=$6$rounds=100000$RcjiHRBJa/ORaqst$0L2hFmL5kwGpP6sY2r.hENK3DR5YLdlSDf.r57hwsLjKioYx36CdeLso.52av1UA61rhWIJWdoRYI5bFz.RAC1 update_password=on_create
-
name
:
Ensure sudo is installed
apt
:
name=sudo state=latest update_cache=yes cache_valid_time=86400
when
:
ansible_os_family == "Debian"
-
include
:
../../yum/tasks/main.yml name=sudo cache_valid_time=86400
when
:
ansible_os_family == "RedHat"
-
name
:
Ensure /etc/sudoers.d directory is present
file
:
path=/etc/sudoers.d state=directory
-
name
:
Ensure /etc/sudoers.d is scanned by sudo
action
:
lineinfile dest=/etc/sudoers regexp="#includedir\s+/etc/sudoers.d" line="#includedir /etc/sudoers.d"
-
name
:
Add netadmin user to the sudoers
lineinfile
:
dest=/etc/sudoers.d/netadmin state=present create=yes regexp="netadmin .*" line="netadmin ALL=(root) NOPASSWD:ALL"
-
name
:
Ensure /etc/sudoers.d/netadmin file has correct permissions
action
:
file path=/etc/sudoers.d/netadmin mode=0440 state=file owner=root group=root
-
name
:
remove other unwanted users
user
:
name={{ item }} state=absent
with_items
:
...
...
playbook/settings/imt.yml
View file @
6d851db1
...
...
@@ -2,6 +2,6 @@
re6st_registry_url
:
http://slapos.tl.teralab-datascience.fr:8088/
re6st_fingerprint
:
sha256:19f072ec13ae08bb9b3b2a9ff6cd21811fb4fc306f9046b548ea48ec1f38ab93
slapos_master_url
:
https://slap.imt.vifib.com/
slapos_web_master_url
:
https://
slapos.tl
.teralab-datascience.fr/
slapos_web_master_url
:
https://
master.slapos
.teralab-datascience.fr/
interface_name
:
lo
re6st_annon
:
False
playbook/settings/upgrader.yml
View file @
6d851db1
---
upgrade_after
:
15
59834941
upgrade_after
:
15
61646753
playbook/wendelin-standalone.yml
View file @
6d851db1
...
...
@@ -3,7 +3,7 @@
connection
:
local
vars
:
software_release_url
:
https://lab.node.vifib.com/nexedi/slapos/raw/
master
/software/wendelin/software.cfg
software_release_url
:
https://lab.node.vifib.com/nexedi/slapos/raw/
1.0.112
/software/wendelin/software.cfg
bt5_list
:
erp5_full_text_myisam_catalog erp5_configurator_standard erp5_wendelin_configurator
startup_playbook_id
:
wendelin-standalone.yml
request_instance_template
:
request-erp5.j2
...
...
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