Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Valentin Benozillo
slapos
Commits
3f1a8392
Commit
3f1a8392
authored
Jun 23, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Update file extension and clean up unused files
parent
80825610
Changes
30
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
63 additions
and
92 deletions
+63
-92
CHANGES.rst
CHANGES.rst
+0
-0
README.rst
README.rst
+0
-0
README.software.rst
README.software.rst
+0
-0
setup.py
setup.py
+3
-3
slapos/recipe/README.cloudooo.txt
slapos/recipe/README.cloudooo.txt
+0
-4
slapos/recipe/README.erp5.txt
slapos/recipe/README.erp5.txt
+0
-4
slapos/recipe/README.erp5testnode.txt
slapos/recipe/README.erp5testnode.txt
+0
-2
slapos/recipe/README.generic_varnish.rst
slapos/recipe/README.generic_varnish.rst
+0
-0
slapos/recipe/README.kumofs.txt
slapos/recipe/README.kumofs.txt
+0
-4
slapos/recipe/README.kvm.rst
slapos/recipe/README.kvm.rst
+0
-0
slapos/recipe/README.kvm_frontend.rst
slapos/recipe/README.kvm_frontend.rst
+1
-1
slapos/recipe/README.lamp.rst
slapos/recipe/README.lamp.rst
+53
-40
slapos/recipe/README.libcloud.rst
slapos/recipe/README.libcloud.rst
+0
-0
slapos/recipe/README.libcloudrequest.txt
slapos/recipe/README.libcloudrequest.txt
+0
-2
slapos/recipe/README.librecipe.rst
slapos/recipe/README.librecipe.rst
+0
-0
slapos/recipe/README.memcached.txt
slapos/recipe/README.memcached.txt
+0
-4
slapos/recipe/README.mkdirectory.rst
slapos/recipe/README.mkdirectory.rst
+0
-0
slapos/recipe/README.mysql.txt
slapos/recipe/README.mysql.txt
+0
-4
slapos/recipe/README.nbdserver.txt
slapos/recipe/README.nbdserver.txt
+0
-2
slapos/recipe/README.nosqltestbed.txt
slapos/recipe/README.nosqltestbed.txt
+0
-2
slapos/recipe/README.proactive.txt
slapos/recipe/README.proactive.txt
+0
-3
slapos/recipe/README.seleniumrunner.rst
slapos/recipe/README.seleniumrunner.rst
+6
-3
slapos/recipe/README.sheepdogtestbed.txt
slapos/recipe/README.sheepdogtestbed.txt
+0
-2
slapos/recipe/README.siptester.txt
slapos/recipe/README.siptester.txt
+0
-2
slapos/recipe/README.slaprunner.txt
slapos/recipe/README.slaprunner.txt
+0
-2
slapos/recipe/README.vifib.txt
slapos/recipe/README.vifib.txt
+0
-2
slapos/recipe/README.xwiki.txt
slapos/recipe/README.xwiki.txt
+0
-4
slapos/recipe/README.zabbixagent.txt
slapos/recipe/README.zabbixagent.txt
+0
-2
slapos/recipe/README.zero_knowledge.rst
slapos/recipe/README.zero_knowledge.rst
+0
-0
software/kvm/README.rst
software/kvm/README.rst
+0
-0
No files found.
CHANGES.
tx
t
→
CHANGES.
rs
t
View file @
3f1a8392
File moved
README.
tx
t
→
README.
rs
t
View file @
3f1a8392
File moved
README.software.
tx
t
→
README.software.
rs
t
View file @
3f1a8392
File moved
setup.py
View file @
3f1a8392
...
...
@@ -30,10 +30,10 @@ import os
version
=
'1.0.31'
name
=
'slapos.cookbook'
long_description
=
open
(
"README.
tx
t"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.
tx
t"
).
read
()
+
"
\
n
"
long_description
=
open
(
"README.
rs
t"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.
rs
t"
).
read
()
+
"
\
n
"
for
f
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
'slapos'
,
'recipe'
,
'README.*.
tx
t'
))):
for
f
in
sorted
(
glob
.
glob
(
os
.
path
.
join
(
'slapos'
,
'recipe'
,
'README.*.
rs
t'
))):
long_description
+=
'
\
n
'
+
open
(
f
).
read
()
+
'
\
n
'
# extras_requires are not used because of
...
...
slapos/recipe/README.cloudooo.txt
deleted
100644 → 0
View file @
80825610
cloudooo
=========
Instantiates CloudOOo instance.
slapos/recipe/README.erp5.txt
deleted
100644 → 0
View file @
80825610
erp5
====
Instantiates ERP5 instance.
slapos/recipe/README.erp5testnode.txt
deleted
100644 → 0
View file @
80825610
erp5testnode
============
slapos/recipe/README.generic_varnish.
tx
t
→
slapos/recipe/README.generic_varnish.
rs
t
View file @
3f1a8392
File moved
slapos/recipe/README.kumofs.txt
deleted
100644 → 0
View file @
80825610
kumofs
=========
Instantiates KumoFS instance.
slapos/recipe/README.kvm.
tx
t
→
slapos/recipe/README.kvm.
rs
t
View file @
3f1a8392
File moved
slapos/recipe/README.kvm_frontend.
tx
t
→
slapos/recipe/README.kvm_frontend.
rs
t
View file @
3f1a8392
kvm_frontend
===
===
==========
Introduction
------------
...
...
slapos/recipe/README.lamp.
tx
t
→
slapos/recipe/README.lamp.
rs
t
View file @
3f1a8392
...
...
@@ -11,18 +11,22 @@ How to use?
just add this part in your software.cfg to use the lamp.simple module
[instance-recipe]
egg = slapos.cookbook
module = lamp.simple
.. code-block::
[instance-recipe]
egg = slapos.cookbook
module = lamp.simple
you also need to extend lamp.cfg
extends =
.. code-block::
extends =
https://lab.nexedi.com/nexedi/slapos/raw/slapos-0.50/stack/lamp.cfg
lamp.runner
=====
=====
======
When you install some software (such as prestashop) you need to remove or rename folder, with slapos you can not
access to the www-data directory. to do this, you need to tell to lamp recipe to remove or/and it when software
...
...
@@ -37,31 +41,35 @@ How to use?
this part of lamp recipe work with slapos.toolbox, Therefore you must add it to your recipe.
in software.cfg, replace instance-recipe-egg part by
[instance-recipe-egg]
recipe = zc.recipe.egg
eggs =
.. code-block::
[instance-recipe-egg]
recipe = zc.recipe.egg
eggs =
${python-mysqlclient:egg}
${instance-recipe:egg}
slapos.toolbox[lampconfigure]
and add into your instance.cfg
lampconfigure_directory = ${buildout:bin-directory}/lampconfigure
.. code-block::
lampconfigure_directory = ${buildout:bin-directory}/lampconfigure
CONDITION
--------
--------
--
the action (delete, rename, script, chmod) only starts when the condition is filled.
in instance.cfg, add
in instance.cfg, add
::
file_token = path_of_file
file_token = path_of_file
and the action will begin when path_of_www-data/path_of_file will be created
you can also use database to check condition. add
you can also use database to check condition. add
::
table_name = name_of_table
constraint = sql_where_condition
table_name = name_of_table
constraint = sql_where_condition
name_of_table is the full or partial name(in some cases we can not know the prefix used to create tables) of table
into mariadb databse for example table_name = admin. if you use
...
...
@@ -74,11 +82,12 @@ you can't use file_token and table_name at the same time, otherwise file_token w
ACTION
-------
The action starts when condition is true
1- delete file or folder
into instance.cfg, use
delete = file_or_folder1, file_or_folder2, file_or_folder3 ...
1- delete file or folder into instance.cfg, use::
delete = file_or_folder1, file_or_folder2, file_or_folder3 ...
for example delete = admin
...
...
@@ -106,26 +115,30 @@ mode = mode_to_apply (ex= 0644)
use script = ${configure-script:location}/${configure-script:filename} into instance.cfg, add part configure-script
into software.cfg
parts = configure-script
.. code-block::
parts = configure-script
[configure-script]
recipe = hexagonit.recipe.download
ignore-existing = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
url = url_of_script_name.py
filename = script_name.py
download-only = True
[configure-script]
recipe = hexagonit.recipe.download
location = ${buildout:parts-directory}/${:_buildout_section_name_}
url = url_of_script_name.py
filename = script_name.py
download-only = True
The script_name.py should contain a main function, sys.argv is given to the main. you can write script_name.py like this
....
def setup(args):
The script_name.py should contain a main function, sys.argv is given to the main. you can write script_name.py like this::
...
def setup(args):
mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args
.......
if __name__ == '__main__':
if __name__ == '__main__':
setup(sys.argv[1:])
base_url: is the url of php software
htdocs: is the path of www-data directory
mysql_user, mysql_password, mysql_database, mysql_host: is the mariadb parameters
- base_url: is the url of php software
- htdocs: is the path of www-data directory
- mysql_user, mysql_password, mysql_database, mysql_host: is the mariadb parameters
you can also use "import MySQLdb" if you want to access to database via your python script
\ No newline at end of file
slapos/recipe/README.libcloud.
tx
t
→
slapos/recipe/README.libcloud.
rs
t
View file @
3f1a8392
File moved
slapos/recipe/README.libcloudrequest.txt
deleted
100644 → 0
View file @
80825610
libcloudrequest
===============
slapos/recipe/README.librecipe.
tx
t
→
slapos/recipe/README.librecipe.
rs
t
View file @
3f1a8392
File moved
slapos/recipe/README.memcached.txt
deleted
100644 → 0
View file @
80825610
memcached
=========
Instantiates Memcached instance.
slapos/recipe/README.mkdirectory.
tx
t
→
slapos/recipe/README.mkdirectory.
rs
t
View file @
3f1a8392
File moved
slapos/recipe/README.mysql.txt
deleted
100644 → 0
View file @
80825610
mysql
=========
Instantiates MySQL instance.
slapos/recipe/README.nbdserver.txt
deleted
100644 → 0
View file @
80825610
nbdserver
=========
slapos/recipe/README.nosqltestbed.txt
deleted
100644 → 0
View file @
80825610
nosqltestbed
============
slapos/recipe/README.proactive.txt
deleted
100644 → 0
View file @
80825610
proactive
=========
Instantiate an proactive environment.
slapos/recipe/README.seleniumrunner.
tx
t
→
slapos/recipe/README.seleniumrunner.
rs
t
View file @
3f1a8392
seleniumrunner
==========
==============
Allows to run selenium tests through browser and xvfb. Posts the results on
Nexedi ERP5.
Parameters
=====
==========
* project : name of the project inside of ERP5 test result instance
* user : username to use in ERP5 instance to test
* password : password to use in ERP5 instance to test
...
...
@@ -12,7 +14,8 @@ Parameters
* url : url to portal_test of ERP5 isntance to test
* test_report_instance_url : url of test_result_module to put results
* Example :
* Example::
<?xml version="1.0" encoding="utf-8"?>
<instance>
<parameter id="project">Vifib</parameter>
...
...
slapos/recipe/README.sheepdogtestbed.txt
deleted
100644 → 0
View file @
80825610
sheepdogtestbed
===============
slapos/recipe/README.siptester.txt
deleted
100644 → 0
View file @
80825610
siptester
=========
slapos/recipe/README.slaprunner.txt
deleted
100644 → 0
View file @
80825610
slaprunner
==========
slapos/recipe/README.vifib.txt
deleted
100644 → 0
View file @
80825610
vifib
=====
slapos/recipe/README.xwiki.txt
deleted
100644 → 0
View file @
80825610
xwiki
=====
Instantiates an xwiki environment.
slapos/recipe/README.zabbixagent.txt
deleted
100644 → 0
View file @
80825610
zabbixagent
===========
slapos/recipe/README.zero_knowledge.
tx
t
→
slapos/recipe/README.zero_knowledge.
rs
t
View file @
3f1a8392
File moved
software/kvm/README.
tx
t
→
software/kvm/README.
rs
t
View file @
3f1a8392
File moved
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