slapos.package:vmhost commitshttps://lab.nexedi.com/nexedi/slapos.package/-/commits/vmhost2018-04-25T15:11:07+02:00https://lab.nexedi.com/nexedi/slapos.package/-/commit/bf925ade06742c916f14b4d708eab8b1df0faff4update vm-bootstrap2018-04-25T15:11:07+02:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/a46f452a8e2fa9f44d03f13982c9a0668d6e32d8playbook: set PATH variable when running upgrader fron cron2018-04-19T15:25:27+02:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/d2e957a30b687095dd47bf49258e648ea2581337playbook: Update upgrader timestamp2018-04-18T11:31:15+02:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/befd0e8f00ad521ebfdd63a09c1aafd0ecc2ffa8playbool vm-bootstrap: correctly check if iface eth1 exists2018-04-09T17:45:18+02:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/dbe19c4da7c4bb2bb40757f07204e45541e01f35repo: Add slapos logs2018-04-04T09:26:12+02:00Lukasz Nowakluke@nexedi.com
It is important to have them in case of problem analysis.https://lab.nexedi.com/nexedi/slapos.package/-/commit/34101b129dd34f8cb5f2d89b2b4795afe6540029repo: Improve install.sh messages2018-04-04T09:26:12+02:00Lukasz Nowakluke@nexedi.com
The most important thing is that Certificate has to match the Key.
The CA certificate is fully optional, so make it seen as this, and also
explain what is its purpose.https://lab.nexedi.com/nexedi/slapos.package/-/commit/2c4b15cd74260e22bf8b60a37b404e0704b930efrepo: Allow to configure software releases2018-04-04T09:26:12+02:00Lukasz Nowakluke@nexedi.com
The install.sh script has to remove all software releases except the provided
ones, and they are different in various scenarios.https://lab.nexedi.com/nexedi/slapos.package/-/commit/a52befcdf873d53533339af113620742af2c3c22playbook: Make re6st.yml generic a bit generic2018-03-30T17:02:30+00:00rootrafael@nexedi.com
VIFIB Users may still using gnet-re6stnet.yml and/or vifib-re6stnet.ymlhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/bd7d58b3e4065c67e1a17095b1135443bcfa0d57playbook: Copy re6stnet.yml to vifib-re6stnet.yml2018-03-30T15:13:08+00:00rootrafael@nexedi.com
The existing configuration is specific to vifib so keep it separated.https://lab.nexedi.com/nexedi/slapos.package/-/commit/830f567b19100df214184a7f4150ffd12a0d8b93playbook: Fix variable ordering on slapos.yml2018-03-30T14:53:10+00:00rootrafael@nexedi.com
vars_files overwrites var_prompt inputs, so keep it minimal on slapos installation.https://lab.nexedi.com/nexedi/slapos.package/-/commit/8b463ca23669c4ed8d4ad80ea7e980c7af873bbeplaybook: Select apache partition to set direct firewall2018-03-29T10:45:04+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/8ef1320ba5164e81ebace3e8b5ea628ec5278363playbook: Move variables to the playbook instead use roles vars2018-03-29T09:01:00+00:00Rafael Monneratrafael@nexedi.com
The roles vars have priority the playbook ones (at least on 2.x):
<a href="http://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#id18" rel="nofollow noreferrer noopener" target="_blank">http://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#id18</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/6101f2c5b4b542daf59c285bc7d9fac11f9754b3playbook: fix typo on setup-firewall-direct2018-03-29T08:53:02+00:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/1f5418b17b53b6a46f94fedac01fb62c9f17fc9arepo: Request certificates and domain name2018-03-27T11:11:30+02:00Lukasz Nowakluke@nexedi.com
The certificates might be needed, so ask the user for domain name and
the certificates.
As a "safe" way to transmit the certificate use mktemp.
This functionality requires "playbook: Allow correct certificate with domain"https://lab.nexedi.com/nexedi/slapos.package/-/commit/8f6889d7c6c4732e9465c368566a1b9aea245486repo: Make install.sh script reusable2018-03-27T11:11:30+02:00Lukasz Nowakluke@nexedi.com
Thanks to using install.rc it is possible to easily select any playbook
to be used during the installation.https://lab.nexedi.com/nexedi/slapos.package/-/commit/0bade6434c84bb7643204cc80676114c5d606485playbook: Allow correct certificate with domain2018-03-27T11:11:30+02:00Lukasz Nowakluke@nexedi.com
For most of cases the default approach, with generated certificate, is
enough, but sometimes the playbooks are used in environment, where
real certificates with domain names shall be used.
For such scenarios, prepare the system to use ansible-playbook
--extra-vars which can override the defaults.
Note that frontend requester is improved, to support case of passed or not
certificate files.https://lab.nexedi.com/nexedi/slapos.package/-/commit/3ec8e43b256360bc6df4a71d572c6a307f5c7295playbook: Add missing key2018-03-23T17:04:09+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/0c84e03f5aa38e5cd45e4baf40392a4e9a09ca44playbook: Update vifib Team keys2018-03-23T16:38:49+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/5fe5177fdbd40d9e07969a80ed2daf2f1d89a6d5Improved Ansible performance for post 2.0 releases.2018-03-22T18:35:54+01:00Hugo Ricateauhugo.ricateau@nexedi.com
Bypasses the new inefficient module manager framework (Ansiballz) using the mitogen strategy plugin (<a href="https://github.com/dw/mitogen" rel="nofollow noreferrer noopener" target="_blank">https://github.com/dw/mitogen</a>).
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/49" data-original="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/49" data-link="false" data-link-reference="true" data-project="13" data-merge-request="1940" data-project-path="nexedi/slapos.package" data-iid="49" data-mr-title="Improved Ansible performance for post 2.0 releases." data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!49</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/c8aee91ab080096ab10a15408949986c158bab6fplaybook: Use tag to setup SlapOS Master2018-03-20T18:18:54+01:00Rafael Monneratrafael@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/e2c295adedccdf6dd3fec19d9a6f923b938c230fplaybook: Add special firewall configuration for slapos master2018-03-19T17:11:51+00:00Rafael Monneratrafael@nexedi.com
The slapos master require that the machines access directly the apache instance on the backend,
for authenticate the computers/software instances. This change is probably temporary considering
that with causase this change might be dropped.https://lab.nexedi.com/nexedi/slapos.package/-/commit/13e9f2ac3a5ca5c3ad17e02395c81fc8e046a55fplaybook: Use correctly roles/vars2018-03-19T17:37:03+01:00Lukasz Nowakluke@nexedi.com
The previous usage lead to impossilibity of overriding variables defined
in role, because they were included forcibly in the tasks for
standalone-shared.
By using default Ansible apporach to role vars, they can be overriden on
playbook basis.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/48" data-original="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/48" data-link="false" data-link-reference="true" data-project="13" data-merge-request="1926" data-project-path="nexedi/slapos.package" data-iid="48" data-mr-title="playbook: Use correctly roles/vars" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!48</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/96f9d0213e0247be791b414384af7e3ca453d804playbook: Use copy module instead of shell+echo2018-03-13T10:02:14+01:00Lukasz Nowakluke@nexedi.com
It is ansible standard and allows to set file mode.https://lab.nexedi.com/nexedi/slapos.package/-/commit/8d126cdb3483362f687b26448fa2588194a66ec2playbook: Fix mode setting2018-03-13T09:56:52+01:00Lukasz Nowakluke@nexedi.com
As explained in <a href="http://docs.ansible.com/ansible/latest/template_module.html" rel="nofollow noreferrer noopener" target="_blank">http://docs.ansible.com/ansible/latest/template_module.html</a>
"Leaving off the leading zero will likely have unexpected results.", so fix it.https://lab.nexedi.com/nexedi/slapos.package/-/commit/abf455bc03167ba1084078cdf34d1744dc3ef41cplaybook (util): Reverse the diff order to make it clear2018-03-09T18:01:49+01:00Rafael Monneratrafael@nexedi.com
This change was suggested by <a href="/luke" data-user="302" data-reference-type="user" data-container="body" data-placement="top" data-html="true" class="gfm gfm-project_member" title="Łukasz Nowak">@luke</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/5f73f19fc5e5f439652668d6895041587c62ffa5playbook: Use master for now to deploy slapos-master2018-03-09T17:59:12+01:00Rafael Monneratrafael@nexedi.com
The current tag is broken, so we use master to validate the deployment, until we can release a new versionhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/eb3f468240672b4855733ef1004f73bcea1c1081playbook: Check Zope availability before exposure2018-03-05T16:00:13+01:00Lukasz Nowakluke@nexedi.com
As frontend can be already available, but still not serving correct content
check that it returns ZMI (Zope Management Interface) before providing it
as working for the user.https://lab.nexedi.com/nexedi/slapos.package/-/commit/e45b4cda12f6dd4f3c3ab53df9a086bc93f0d406playbook: Strip whitespace from IPv42018-03-05T16:00:13+01:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/f8aab787bbe2b2f18f4c2335badf248fefa7e632playbook: Install gcc 4.9 on Debian 92018-03-05T15:59:47+01:00Lukasz Nowakluke@nexedi.com
As standalone-shared is for ERP5-related mainly, and those do require
old gcc version, install (in hackich way) gcc-4.9 on Debian 9.
Also gcc and g++ (and others) are set to be default as 4.9.
The hackish way is based on <a href="https://unix.stackexchange.com/questions/334888/how-install-g-4-9-on-debian-stretch" rel="nofollow noreferrer noopener" target="_blank">https://unix.stackexchange.com/questions/334888/how-install-g-4-9-on-debian-stretch</a>
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/44" data-original="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/44" data-link="false" data-link-reference="true" data-project="13" data-merge-request="1893" data-project-path="nexedi/slapos.package" data-iid="44" data-mr-title="playbook: Install gcc 4.9 on Debian 9" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!44</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/7a706b571f13fa48e69e7af69d80d9f8d41a656aplaybook: Expose more information from the result2018-03-05T13:07:45+01:00Lukasz Nowakluke@nexedi.com
By allowing unittest.longMessage and adding result.content to the
test output on failure it is easier to debug issue with assertion.https://lab.nexedi.com/nexedi/slapos.package/-/commit/bba0cacb77716a8a36f3c823c29f8c907a3cf76cplaybook: Drop not needed import2018-03-05T09:08:07+01:00Lukasz Nowakluke@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/ab05d68fa670002e2d8e55b5ab022dc919a34b1dplaybook: Relax finding of public-ipv4 file2018-03-05T09:03:17+01:00Lukasz Nowakluke@nexedi.com
As more then one type of ERP5ish software release can be build
with the playbook, make finding ipv4 more reliable.
Also, as there can be only one public IPv4 drop the playbook_name
namespace from the detected value.https://lab.nexedi.com/nexedi/slapos.package/-/commit/56d56f91c3f1b2461961963ea19d22d29451a007playbook: Adapt erp5-show to unusual software releases2018-03-05T09:03:17+01:00Lukasz Nowakluke@nexedi.com
As only two software releases shall be present on a box, assume that one
which is NOT apache frontend is the ERP5 one.
We have no control over how the ERP5 SR will be named, so this change
support this case.https://lab.nexedi.com/nexedi/slapos.package/-/commit/00f70c3d06104dfc5940cbe4d2483e2e40282632playbook: Fix Debian 9 repository information2018-03-02T10:26:35+01:00Lukasz Nowakluke@nexedi.com
As currently Debian 9 key on OBS is not valid, we need to update apt
information with allowing insecure repositories.
Even if repository role uses debian9-aptconf as dependency, it does not
update repository information *after* adding the repository. So just
update it.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/42" data-original="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/42" data-link="false" data-link-reference="true" data-project="13" data-merge-request="1887" data-project-path="nexedi/slapos.package" data-iid="42" data-mr-title="playbook: Fix Debian 9 repository information" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!42</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/dc4e89f6b63e2a14aedc77b4d84b0fba474487b1playbook: Prompt for re6st config with defaults2018-03-01T17:23:39+01:00Lukasz Nowakluke@nexedi.com
As vars_files has higher precedence than vars_prompt, remove
re6st_registry_url and re6st_fingerprint from settings/vifib.yml.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/40" data-original="https://lab.nexedi.com/nexedi/slapos.package/merge_requests/40" data-link="false" data-link-reference="true" data-project="13" data-merge-request="1881" data-project-path="nexedi/slapos.package" data-iid="40" data-mr-title="playbook: Prompt for re6st config with defaults" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!40</a>https://lab.nexedi.com/nexedi/slapos.package/-/commit/5bc74ebfa5df3174467eb03b27409d0e447eb78dplaybook: Prompt for SlapOS master URLs2018-03-01T17:21:56+01:00Lukasz Nowakluke@nexedi.com
Defaults are kept, as in settings/vifib.ymlhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/09d5c04ac9e6b39b6d7215fbd2e34b9abdd4d7efplaybook: Extract SlapOS master URLs to separate setting2018-03-01T17:21:56+01:00Lukasz Nowakluke@nexedi.com
It is required in order to being able to use vars_prompt in slapos
playbook, while keeping compatiblity with other playbooks.https://lab.nexedi.com/nexedi/slapos.package/-/commit/8da6c799645778640252c1fca031999b47f83c2epacker: debian 9 boot with mem hotplug enabled2018-02-08T13:07:06+01:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/8a5753b6b94667dbbc52292942c61c68f71cf631playbook: auto online hotplugged CPU/Memory on ubuntu and debian>72018-02-08T13:05:30+01:00Alain Takoudjoualain.takoudjou@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.package/-/commit/953b4b58b203e6cc9d58feaf7470f3caba72fd25repo: Make install.sh able to upgrade2018-01-26T12:04:23+01:00Łukasz Nowakluke@nexedi.com
During upgrade process it is requried to stop for some time requesting
of exsiting software releases and remove them from slapproxy.
The ansible, which will run later, will take care of readding new
software release and crontabs.